fscarmen / warp-sh

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

Issue #122

Open TrivCodez opened 2 weeks ago

TrivCodez commented 2 weeks ago

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ Operating System: Ubuntu 24.04.1 LTS

Kernel:6.10.10

Menu choose:

Warning: /etc/wireguard/warp.conf' is world accessible [#] ip link add warp type wireguard [#] wg setconf warp /dev/fd/63 Line unrecognized:PrivateKey=' Configuration parsing error [#] ip link delete dev warp ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑ There have been more than 5 failures. The script is aborted. Attach the above error message. Feedback: [https://github.com/fscarmen/warp-sh/issues]

fscarmen commented 2 weeks ago

Fix and try again.

root@instance-20241107-003416:~# bash menu.sh

 Language:
 1. English (default) 
 2. 简体中文 

 Choose: 1

 All dependencies already exist and do not need to be installed additionally. 

 Checking VPS infomation... 
======================================================================================================================

 Version:3.1.3
 New features:The Linux Client adds the MASQUE protocol option, available in both Proxy mode (menu 5) and WarpProxy mode (menu 14).
 System infomation:
         Operating System:Ubuntu 24.04.1 LTS
         Kernel:6.8.0-1015-gcp
         Architecture:amd64
         Virtualization:google 
         IPv4: 34.145.106.127 United States  Google LLC 
         IPv6:     
         WARP Interface is off 
         Client is not installed. 
         WireProxy is not installed. 

======================================================================================================================

 1.  Add WARP IPv4 interface to IPv4 only VPS (bash menu.sh 4) 
 2.  Add WARP IPv6 interface to IPv4 only VPS (bash menu.sh 6) 
 3.  Add WARP dualstack interface to IPv4 only VPS (bash menu.sh d) 
 4.  Turn on WARP (warp o) 
 5.  Install CloudFlare Client and set mode to Proxy (bash menu.sh c) 
 6.  Change the WARP IP to support Netflix (warp i) 
 7.  Turn off, uninstall WARP interface, Linux Client and WireProxy (warp u) 
 8.  Getting WARP+ quota by scripts (warp p) 
 9.  Upgrade kernel, turn on BBR, change Linux system (warp b) 
 10. Sync the latest version (warp v) 
 11. Professional one-click script for WARP to unblock streaming media (Supports multi-platform, multi-mode and TG push) 
 12. Install iptable + dnsmasq + ipset. Let WARP only take over the streaming media traffic (Not available for ipv6 only) (bash menu.sh e) 
 13. Install wireproxy. Wireguard client that exposes itself as a socks5 proxy or tunnels (bash menu.sh w) 
 14. Install CloudFlare Client and set mode to WARP (bash menu.sh l) 
 0.  Exit 

 Choose: 3

 Install using:
 1. wireguard kernel (default)
 2. wireguard-go with reserved 

 Choose: 

 Working mode:
 1. Global (default)
 2. Non-global 

 Choose: 

 Is there a WARP+ or Teams account?
 1. Use free account (default)
 2. WARP+
 3. Teams 

 Choose: 

 Please choose the priority:
 1. IPv4
 2. IPv6
 3. Use initial settings (default) 

 Choose: 

 Step 1/3: Install dependencies... 

Hit:1 http://us-west1.gce.archive.ubuntu.com/ubuntu noble InRelease
Hit:2 http://us-west1.gce.archive.ubuntu.com/ubuntu noble-updates InRelease
Hit:3 http://us-west1.gce.archive.ubuntu.com/ubuntu noble-backports InRelease
Hit:4 http://security.ubuntu.com/ubuntu noble-security InRelease

 Step 2/3: WARP is ready 

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
24 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package openresolv is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'openresolv' has no installation candidate
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  wireguard-tools
0 upgraded, 1 newly installed, 0 to remove and 24 not upgraded.
Need to get 89.1 kB of archives.
After this operation, 330 kB of additional disk space will be used.
Get:1 http://us-west1.gce.archive.ubuntu.com/ubuntu noble/main amd64 wireguard-tools amd64 1.0.20210914-1ubuntu4 [89.1 kB]
Fetched 89.1 kB in 0s (548 kB/s)     
Selecting previously unselected package wireguard-tools.
(Reading database ... 67953 files and directories currently installed.)
Preparing to unpack .../wireguard-tools_1.0.20210914-1ubuntu4_amd64.deb ...
Unpacking wireguard-tools (1.0.20210914-1ubuntu4) ...
Setting up wireguard-tools (1.0.20210914-1ubuntu4) ...
wg-quick.target is a disabled or a static unit not running, not starting it.
Processing triggers for man-db (2.12.0-4build2) ...
Scanning processes...                                                                                                 
Scanning linux images...                                                                                              

Running kernel seems to be up-to-date.

No services need to be restarted.

No containers need to be restarted.

No user sessions are running outdated binaries.

No VM guests are running outdated hypervisor (qemu) binaries on this host.

 Step 3/3: Searching for the best MTU value and endpoint address are ready. 

 Create shortcut [warp] successfully 
 Running WARP 
 Maximum 5 attempts to get WARP IP...
 Try 1 
 Got the WARP Free IP successfully, Working mode: Global 

==============================================================

 IPv4: 104.28.237.249 United States  Cloudflare, Inc. 
 IPv6: 2a09:bac5:b043:1537::21d:37 United States  Cloudflare, Inc. 
 Congratulations! WARP Free is turned on. Spend time:22 seconds.
 The script runs today: 1837. Total:33809099 
 IPv6 priority , Working mode: Global 

==============================================================

 Run again with warp [option] [lisence], such as 

 warp h (help)
 warp n (Get the WARP IP)
 warp o (Turn off WARP temporarily)
 warp u (Turn off and uninstall WARP interface and Socks5 Linux Client)
 warp b (Upgrade kernel, turn on BBR, change Linux system)
 warp a (Change account to Free, WARP+ or Teams)
 warp p (Getting WARP+ quota by scripts)
 warp v (Sync the latest version)
 warp r (Connect/Disconnect WARP Linux Client)
 warp 4/6 (Add WARP IPv4/IPv6 interface)
 warp d (Add WARP dualstack interface IPv4 + IPv6)
 warp c (Install WARP Linux Client and set to proxy mode)
 warp l (Install WARP Linux Client and set to WARP mode)
 warp i (Change the WARP IP to support Netflix)
 warp e (Install Iptables + dnsmasq + ipset solution)
 warp w (Install WireProxy solution)
 warp y (Connect/Disconnect WireProxy socks5)
 warp k (Switch between kernel and wireguard-go-reserved)
 warp g (Switch between warp global and non-global)
 warp s 4/6/d (Set stack proiority: IPv4 / IPv6 / VPS default)