fscarmen / warp-sh

WARP script is move to: https://gitlab.com/fscarmen/warp
947 stars 204 forks source link

貌似buster-backports仓库挂了导致无法正常安装wireguard-tools #46

Closed Micah123321 closed 6 months ago

Micah123321 commented 7 months ago
======================================================================================================================

 1.  为 IPv4 only 添加 WARP IPv4 网络接口 (bash menu.sh 4) 
 2.  为 IPv4 only 添加 WARP IPv6 网络接口 (bash menu.sh 6) 
 3.  为 IPv4 only 添加 WARP 双栈网络接口 (bash menu.sh d) 
 4.  打开 WARP (warp o) 
 5.  安装 CloudFlare Client 并设置为 Proxy 模式 (bash menu.sh c) 
 6.  更换支持 Netflix 的 IP (warp i) 
 7.  永久关闭 WARP 网络接口,并删除 WARP、 Linux Client 和 WireProxy (warp u) 
 8.  刷 WARP+ 流量 (warp p) 
 9.  升级内核、安装BBR、DD脚本 (warp b) 
 10. 同步最新版本 (warp v) 
 11. WARP 解锁 Netflix 等流媒体专业一键(支持多平台、多方式和 TG 通知) 
 12. 安装 iptable + dnsmasq + ipset,让 WARP IPv4 only 接管流媒体流量 (不适用于 IPv6 only VPS) (bash menu.sh e) 
 13. 安装 wireproxy,让 WARP 在本地创建一个 socks5 代理 (bash menu.sh w) 
 14. 安装 CloudFlare Client 并设置为 WARP 模式 (bash menu.sh l) 
 0.  退出脚本 

 请选择: 2

 只能使用 wireguard-go with reserved 运行 

 工作模式:
 1. 全局 (默认)
 2. 非全局 

 请选择: 

 如有 WARP+ 或 Teams 账户请选择
 1. 使用免费账户 (默认)
 2. WARP+
 3. Teams 

 请选择: 

 请选择优先级别:
 1. IPv4
 2. IPv6
 3. 使用 VPS 初始设置 (默认) 

 请选择: 

 进度 1/3: 安装系统依赖…… 

Hit:1 http://deb.debian.org/debian buster InRelease
Hit:2 http://deb.debian.org/debian-security buster/updates InRelease
Hit:3 http://deb.debian.org/debian buster-updates InRelease
Ign:4 http://deb.debian.org/debian buster-backports InRelease
Err:5 http://deb.debian.org/debian buster-backports Release
  404  Not Found [IP: 151.101.78.132 80]
Reading package lists... 0%
 进度 2/3: 已安装 WARP 

Reading package lists... Done
E: The repository 'http://deb.debian.org/debian buster-backports Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
iptables is already the newest version (1.8.2-4).
net-tools is already the newest version (1.60+git20180626.aebd88e-1).
openresolv is already the newest version (3.8.0-1).
dnsutils is already the newest version (1:9.11.5.P4+dfsg-5.1+deb10u10).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package wireguard-tools
./menu.sh: line 2120: wg: command not found
--2024-04-17 23:13:18--  https://gitlab.com/fscarmen/warp/-/raw/main/wireguard-go/wireguard-go-linux-amd64-20201118
Resolving gitlab.com (gitlab.com)... 172.65.251.78
Connecting to gitlab.com (gitlab.com)|172.65.251.78|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2523136 (2.4M) [application/octet-stream]
Saving to: ‘/usr/bin/wireguard-go’

/usr/bin/wireguard-go            100%[=======================================================>]   2.41M  --.-KB/s    in 0.04s   

2024-04-17 23:13:18 (62.6 MB/s) - ‘/usr/bin/wireguard-go’ saved [2523136/2523136]

grep: /usr/bin/wg-quick: No such file or directory
sed: can't read /usr/bin/wg-quick: No such file or directory

 进度 3/3: 寻找 MTU 最优值和优选 endpoint 地址已完成 

 创建快捷 warp 指令成功 
 运行 WARP 
 没有安装 WireGuard tools 或者找不到配置文件 warp.conf,请重新安装。
Micah123321 commented 7 months ago

系统升级成debian11就正常了

fscarmen commented 7 months ago

官方的都挂?不知道换个源是否可以,多等两天看看

Micah123321 commented 7 months ago

官方的都挂?不知道换个源是否可以,多等两天看看

我现在是正常安装,但是无法正常使用

1.  WARP IPv4 转为 WARP IPv6 (warp 6) 
 2.  WARP IPv4 转为 WARP 双栈 (warp d) 
 3.  变更 WARP 账户 (warp a) 
 4.  打开 WARP (warp o) 
 5.  安装 CloudFlare Client 并设置为 Proxy 模式 (bash menu.sh c) 
 6.  更换支持 Netflix 的 IP (warp i) 
 7.  永久关闭 WARP 网络接口,并删除 WARP、 Linux Client 和 WireProxy (warp u) 
 8.  刷 WARP+ 流量 (warp p) 
 9.  升级内核、安装BBR、DD脚本 (warp b) 
 10. 同步最新版本 (warp v) 
 11. WARP 解锁 Netflix 等流媒体专业一键(支持多平台、多方式和 TG 通知) 
 12. 安装 iptable + dnsmasq + ipset,让 WARP IPv4 only 接管流媒体流量 (不适用于 IPv6 only VPS) (bash menu.sh e) 
 13. 安装 wireproxy,让 WARP 在本地创建一个 socks5 代理 (bash menu.sh w) 
 14. 安装 CloudFlare Client 并设置为 WARP 模式 (bash menu.sh l) 
 0.  退出脚本 

 请选择: 2
Job for wg-quick@warp.service failed because the control process exited with error code.
See "systemctl status wg-quick@warp.service" and "journalctl -xe" for details.
 后台获取 WARP IP 中,最大尝试5次……
 第1次尝试 
 第2次尝试 
 第3次尝试 
 第4次尝试 
 第5次尝试 
 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓
 当前操作系统: Debian GNU/Linux 11 (bullseye)

 内核:4.9.0-13-amd64 

 (text 40): 2.  WARP IPv4 转为 WARP 双栈 (warp d) 

 Warning: `/etc/wireguard/warp.conf' is world accessible
┌──────────────────────────────────────────────────────┐
│                                                      │
│   Running wireguard-go is not required because this  │
│   kernel has first class support for WireGuard. For  │
│   information on installing the kernel module,       │
│   please visit:                                      │
│         https://www.wireguard.com/install/           │
│                                                      │
└──────────────────────────────────────────────────────┘
[#] wg setconf warp /dev/fd/63
[#] ip -4 address add 172.16.0.2/32 dev warp
[#] ip -6 address add 2606:4700:110:82fb:c53d:91e5:cb5b:bb22/128 dev warp
[#] ip link set mtu 1420 up dev warp
[#] resolvconf -a warp -m 0 -x
[#] wg set warp fwmark 51820
[#] ip -6 route add ::/0 dev warp table 51820
[#] ip -6 rule add not fwmark 51820 table 51820
[#] ip -6 rule add table main suppress_prefixlength 0
[#] nft -f /dev/fd/63
/dev/fd/63:5:1-130: Error: Could not process rule: No such file or directory

/dev/fd/63:6:1-117: Error: Could not process rule: No such file or directory

[#] resolvconf -d warp -f
[#] ip -6 rule delete table 51820
[#] ip -6 rule delete table main suppress_prefixlength 0
[#] ip link delete dev warp
 ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑ 
 失败已超过5次,脚本中止,附上以上错误提示,问题反馈:[https://github.com/fscarmen/warp-sh/issues]
fscarmen commented 6 months ago

已经更新脚本了,下次直接安装可以了。