jinwyp / one_click_script

install latest or LTS linux kernel and enable BBR or BBR plus
MIT License
4.73k stars 1.42k forks source link

Potterli20的trojan-go无法安装,trojan-go-fork-linux-amd64.zip损坏无法解压 #218

Closed wkingnet closed 1 year ago

wkingnet commented 1 year ago

Steps to reproduce the behavior: 2,安装trogan-go和nginx。 2.4,安装Potterli20的trojan-go 剩下步骤选项随意,到下载下载并解压zip文件: trojan-go-fork-linux-amd64.zip

OS and Terminal:
OS info: CentOS Linux, centos, 7.9.2009, 7, , intel CPU amd64, bash, yum, /usr/lib/systemd/system/

To Reproduce 复现方法
正常安装Potterli20的trojan-go

Log Info 日志信息: 请提供安装出错的信息

===== 下载并解压zip文件:  trojan-go-fork-linux-amd64.zip 
--2023-02-14 12:52:17--  https://github.com/Potterli20/trojan-go-fork/releases/download/V2023.01.30/trojan-go-fork-linux-amd64.zip
Resolving github.com (github.com)... 140.82.114.4
Connecting to github.com (github.com)|140.82.114.4|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/437504501/5602266e-49cc-43a4-98ff-94b5d6904411?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230214%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230214T045219Z&X-Amz-Expires=300&X-Amz-Signature=f335cb00abf3a04fcacd13a62e4c139bacf113cdbd04d76cf8e1b8c5f435b85f&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=437504501&response-content-disposition=attachment%3B%20filename%3Dtrojan-go-fork-linux-amd64.zip&response-content-type=application%2Foctet-stream [following]
--2023-02-14 12:52:17--  https://objects.githubusercontent.com/github-production-release-asset-2e65be/437504501/5602266e-49cc-43a4-98ff-94b5d6904411?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230214%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230214T045219Z&X-Amz-Expires=300&X-Amz-Signature=f335cb00abf3a04fcacd13a62e4c139bacf113cdbd04d76cf8e1b8c5f435b85f&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=437504501&response-content-disposition=attachment%3B%20filename%3Dtrojan-go-fork-linux-amd64.zip&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.110.133, 185.199.109.133, 185.199.108.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.110.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 15781516 (15M) [application/octet-stream]
Saving to: '/root/temp/trojan-go-fork-linux-amd64.zip'

100%[=============================================================================>] 15,781,516  5.68MB/s   in 2.6s   

2023-02-14 12:52:20 (5.68 MB/s) - '/root/temp/trojan-go-fork-linux-amd64.zip' saved [15781516/15781516]

Archive:  /root/temp/trojan-go-fork-linux-amd64.zip

caution:  zipfile comment truncated
error [/root/temp/trojan-go-fork-linux-amd64.zip]:  missing 3250124828 bytes in zipfile
  (attempting to process anyway)
error [/root/temp/trojan-go-fork-linux-amd64.zip]:  start of central directory not found;
  zipfile corrupt.
  (please check that you have transferred or created the zipfile in the
  appropriate BINARY mode and that you have compiled UnZip properly)
mv: cannot stat '/root/trojan-go/trojan-go-fork': No such file or directory

安装完成nginx 是否启动成功,域名的网站是否能正常打开,如果打不开说明nginx安装有问题,请给出nginx安装时输出日志 nginx可以启动,网站可以浏览,trojan无法启动

wkingnet commented 1 year ago

顺便还有一个bug,比如上面只安装好了nginx没装好trogan,选第4项卸载,提示系统没有安装 Trojan / Trojan-go, 退出卸载 Trojan or Trojan-go not install, exit。建议增加单独卸载nginx

jinwyp commented 1 year ago

https://github.com/Potterli20/trojan-go-fork/issues/50

该问题我之前已经反馈给作者了

Potterli20 commented 1 year ago

Steps to reproduce the behavior: 2,安装trogan-go和nginx。 2.4,安装Potterli20的trojan-go 剩下步骤选项随意,到下载下载并解压zip文件: trojan-go-fork-linux-amd64.zip

OS and Terminal:
OS info: CentOS Linux, centos, 7.9.2009, 7, , intel CPU amd64, bash, yum, /usr/lib/systemd/system/

To Reproduce 复现方法
正常安装Potterli20的trojan-go

Log Info 日志信息: 请提供安装出错的信息

===== 下载并解压zip文件:  trojan-go-fork-linux-amd64.zip 
--2023-02-14 12:52:17--  https://github.com/Potterli20/trojan-go-fork/releases/download/V2023.01.30/trojan-go-fork-linux-amd64.zip
Resolving github.com (github.com)... 140.82.114.4
Connecting to github.com (github.com)|140.82.114.4|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/437504501/5602266e-49cc-43a4-98ff-94b5d6904411?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230214%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230214T045219Z&X-Amz-Expires=300&X-Amz-Signature=f335cb00abf3a04fcacd13a62e4c139bacf113cdbd04d76cf8e1b8c5f435b85f&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=437504501&response-content-disposition=attachment%3B%20filename%3Dtrojan-go-fork-linux-amd64.zip&response-content-type=application%2Foctet-stream [following]
--2023-02-14 12:52:17--  https://objects.githubusercontent.com/github-production-release-asset-2e65be/437504501/5602266e-49cc-43a4-98ff-94b5d6904411?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230214%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230214T045219Z&X-Amz-Expires=300&X-Amz-Signature=f335cb00abf3a04fcacd13a62e4c139bacf113cdbd04d76cf8e1b8c5f435b85f&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=437504501&response-content-disposition=attachment%3B%20filename%3Dtrojan-go-fork-linux-amd64.zip&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.110.133, 185.199.109.133, 185.199.108.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.110.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 15781516 (15M) [application/octet-stream]
Saving to: '/root/temp/trojan-go-fork-linux-amd64.zip'

100%[=============================================================================>] 15,781,516  5.68MB/s   in 2.6s   

2023-02-14 12:52:20 (5.68 MB/s) - '/root/temp/trojan-go-fork-linux-amd64.zip' saved [15781516/15781516]

Archive:  /root/temp/trojan-go-fork-linux-amd64.zip

caution:  zipfile comment truncated
error [/root/temp/trojan-go-fork-linux-amd64.zip]:  missing 3250124828 bytes in zipfile
  (attempting to process anyway)
error [/root/temp/trojan-go-fork-linux-amd64.zip]:  start of central directory not found;
  zipfile corrupt.
  (please check that you have transferred or created the zipfile in the
  appropriate BINARY mode and that you have compiled UnZip properly)
mv: cannot stat '/root/trojan-go/trojan-go-fork': No such file or directory

安装完成nginx 是否启动成功,域名的网站是否能正常打开,如果打不开说明nginx安装有问题,请给出nginx安装时输出日志 nginx可以启动,网站可以浏览,trojan无法启动

你会编译吗?你试试编译,因为我这边手动编译很正常,不知道是不是github打包问题

jinwyp commented 1 year ago

顺便还有一个bug,比如上面只安装好了nginx没装好trogan,选第4项卸载,提示系统没有安装 Trojan / Trojan-go, 退出卸载 Trojan or Trojan-go not install, exit。建议增加单独卸载nginx

已经更新解决你这个问题了, 脚本默认换回原版trojan-go , trojan-go-fork只能等作者解决