mack-a / v2ray-agent

Xray、Tuic、hysteria2、sing-box 八合一一键脚本
https://www.v2ray-agent.com
GNU Affero General Public License v3.0
13.38k stars 4.42k forks source link

ubuntu 22.04 LTS 安装失败 #749

Closed fscarmen2 closed 11 months ago

fscarmen2 commented 11 months ago

不按照模版提交,一律关闭,反馈之前请仔细翻阅此文章、建议使用21卸载后重新尝试

1.问题描述

新系统 ubuntu 22.04 LTS 安装失败

2.安装失败的log或者截图

root@root:~# wget -P /root -N --no-check-certificate "https://raw.githubusercontent.com/mack-a/v2ray-agent/master/install.sh" && chmod 700 /root/install.sh && /root/install.sh
--2023-08-12 14:45:07--  https://raw.githubusercontent.com/mack-a/v2ray-agent/master/install.sh
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.108.133, 185.199.110.133, 185.199.111.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.108.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 292645 (286K) [text/plain]
Saving to: ‘/root/install.sh’

install.sh                             100%[=========================================================================>] 285.79K  --.-KB/s    in 0.01s   

Last-modified header missing -- time-stamps turned off.
2023-08-12 14:45:07 (26.7 MB/s) - ‘/root/install.sh’ saved [292645/292645]

============================================================== 
作者:mack-a 
当前版本:v2.10.11 
Github:https://github.com/mack-a/v2ray-agent 
描述:八合一共存脚本
=========================== 推广区============================ 

推广请联系TG:@mackaff

VPS选购攻略:https://www.v2ray-agent.com/archives/1679975663984 
年付10美金低价VPS AS4837:https://www.v2ray-agent.com/archives/racknerdtao-can-zheng-li-nian-fu-10mei-yuan 
============================================================== 
1.安装 
2.任意组合安装 
4.Hysteria管理 
5.REALITY管理 
6.Tuic管理 
-------------------------工具管理----------------------------- 
7.账号管理 
8.更换伪装站 
9.更新证书 
10.更换CDN节点 
11.分流工具 
12.添加新端口 
13.BT下载管理 
14.切换alpn 
15.域名黑名单 
-------------------------版本管理----------------------------- 
16.core管理 
17.更新脚本 
18.安装BBR、DD脚本 
-------------------------脚本管理----------------------------- 
19.查看日志 
20.卸载脚本 
============================================================== 
快捷方式创建成功,可执行[vasma]重新打开脚本 
请选择:1

功能 1/1 : 选择核心安装 

============================================================== 
1.Xray-core 
2.v2ray-core 
============================================================== 
请选择:1

进度  2/13 : 安装工具 
 ---> 检查、安装更新【新机器会很慢,如长时间无反应,请手动停止后重新执行】 
 ---> 安装unzip 
 ---> 安装socat 
 ---> 安装jq 
 ---> 安装binutils 
 ---> 安装qrencode 
 ---> 安装lsb-release 
 ---> 安装nginx 
Synchronizing state of nginx.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable nginx
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
 ---> 安装semanage 
 ---> 安装acme.sh 

进度  3/13 : 初始化Nginx申请证书配置 

请输入要配置的域名 例: www.v2ray-agent.com ---> 
域名:it.formyvmess.tk

请输入端口[默认: 443],可自定义端口[回车使用默认] 
端口:
Rule added
Rule added (v6)
 ---> 443端口开放成功 

 ---> 端口: 443 
 ---> 域名IP校验通过 
 ---> 删除Nginx默认配置 
 ---> Nginx启动成功 
 ---> Nginx关闭成功 
 ---> 检测到443端口已开放 

 ---> 检查域名ip中 
 ---> 检查当前域名IP正确 
 ---> Xray关闭成功 

进度  4/13 : 申请TLS证书

 ---> 安装TLS证书,需要依赖80端口 
Rule added
Rule added (v6)
 ---> 80端口开放成功 

============================================================== 
1.letsencrypt[默认] 
2.zerossl 
3.buypass[不支持DNS申请] 
============================================================== 
请选择[回车]使用默认:

 ---> 生成证书中 
 ---> TLS生成成功 

进度  5/13 : 生成随机路径 
请输入自定义路径[例: alone],不需要斜杠,[回车]随机路径 
路径:wget -P /root -N --no-check-certificate "https://raw.githubusercontent.com/mack-a/v2ray-agent/master/install.sh" && chmod 700 /root/install.sh && /root/install.sh

 path:wget -P /root -N --no-check-certificate "https://raw.githubusercontent.com/mack-a/v2ray-agent/master/install.sh" && chmod 700 /root/install.sh && /root/install.sh 

---------------------------- 

进度  6/13 : 安装Xray 
mak ---> Xray-core版本:v1.8.3 
Xray-linux-64.zip                      100%[=========================================================================>]  11.42M  14.6MB/s    in 0.8s    
------------------------Version------------------------------- 
version:202308112208
geosite.dat                            100%[=========================================================================>]   3.89M  6.79MB/s    in 0.6s    
geoip.dat                              100%[=========================================================================>]   9.94M  17.5MB/s    in 0.6s    

进度  7/13 : 配置Xray开机自启 
Created symlink /etc/systemd/system/multi-user.target.wants/xray.service → /etc/systemd/system/xray.service.
 ---> 配置Xray开机自启成功 

进度 8/13 : 添加cloudflare自选CNAME 

============================================================== 
# 注意事项 

教程地址: 
https://www.v2ray-agent.com/archives/cloudflarezi-xuan-ip 

如对Cloudflare优化不了解,请不要使用 

 1.CNAME www.digitalocean.com 
 2.CNAME who.int 
 3.CNAME blog.hostmonit.com 
---------------------------- 
请选择[回车不使用]:192.203.230.173

 ---> 不使用 

进度 9/13 : 初始化Xray配置 

请输入自定义UUID[需合法],[回车]随机UUID 
UUID:68fe8d27-cbc8-4e72-90b7-70d3bb69dfd3

 68fe8d27-cbc8-4e72-90b7-70d3bb69dfd3 

===================== 配置VLESS+Reality =====================

是否使用TLS+Vision端口 ?[y/n]:y

 ---> 端口: 443 

 ---> 客户端可用域名: "it.formyvmess.tk"

========================== 生成key ==========================

 privateKey:sECORxxNelT62XM4VH1cmAGxB1LjRTqx8S8MeMI73lw 

 publicKey:Tp0pH49oHZpYJ5zT4z0uqvaol8uX5_yehWLuUWo6jG4 
parse error: Invalid numeric literal at line 22, column 61
parse error: Invalid numeric literal at line 20, column 79
parse error: Invalid numeric literal at line 24, column 83
parse error: Invalid numeric literal at line 17, column 133
parse error: Invalid numeric literal at line 22, column 63

进度 10/13 : 添加定时维护证书 

 ---> 添加定时维护证书成功 

进度 11/13 : 添加伪装站点 
 ---> 添加伪装站点成功 
 ---> Xray关闭成功 
Xray启动失败 
请手动执行以下的命令后【/etc/v2ray-agent/xray/xray -confdir /etc/v2ray-agent/xray/conf】将错误日志进行反馈 
root@root:~# /etc/v2ray-agent/xray/xray -confdir /etc/v2ray-agent/xray/conf
Xray 1.8.3 (Xray, Penetrates Everything.) Custom (go1.20.5 linux/amd64)
A unified platform for anti-censorship.
2023/08/12 14:48:53 Using confdir from arg: /etc/v2ray-agent/xray/conf
Failed to start: main: failed to load config files: [/etc/v2ray-agent/xray/conf/00_log.json /etc/v2ray-agent/xray/conf/02_VLESS_TCP_inbounds.json /etc/v2ray-agent/xray/conf/03_VLESS_WS_inbounds.json /etc/v2ray-agent/xray/conf/04_trojan_TCP_inbounds.json /etc/v2ray-agent/xray/conf/04_trojan_gRPC_inbounds.json /etc/v2ray-agent/xray/conf/05_VMess_WS_inbounds.json /etc/v2ray-agent/xray/conf/06_VLESS_gRPC_inbounds.json /etc/v2ray-agent/xray/conf/07_VLESS_vision_reality_inbounds.json /etc/v2ray-agent/xray/conf/08_VLESS_reality_fallback_grpc_inbounds.json /etc/v2ray-agent/xray/conf/09_routing.json /etc/v2ray-agent/xray/conf/10_ipv4_outbounds.json /etc/v2ray-agent/xray/conf/11_dns.json /etc/v2ray-agent/xray/conf/12_policy.json] > infra/conf/serial: failed to decode config: /etc/v2ray-agent/xray/conf/02_VLESS_TCP_inbounds.json > infra/conf/serial: failed to read config file > EOF
root@root:~# cat /etc/v2ray-agent/xray/conf/
00_log.json                                   05_VMess_WS_inbounds.json                     10_ipv4_outbounds.json
02_VLESS_TCP_inbounds.json                    06_VLESS_gRPC_inbounds.json                   11_dns.json
03_VLESS_WS_inbounds.json                     07_VLESS_vision_reality_inbounds.json         12_policy.json
04_trojan_TCP_inbounds.json                   08_VLESS_reality_fallback_grpc_inbounds.json  
04_trojan_gRPC_inbounds.json                  09_routing.json              

3.系统版本

root@root:~# cat /etc/os-release 
PRETTY_NAME="Ubuntu 22.04 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy

4.脚本版本

当前版本:v2.10.11

mack-a commented 11 months ago

你这个path感觉有问题 卸载后重新安装

fscarmen2 commented 11 months ago

你这个path感觉有问题 卸载后重新安装

晕倒,的确是复制错了,这么低级的错误居然没有发现,重新安装后已经可以了,谢谢!