Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在最后开始安装时下载出错 #26

Closed
summerkangk opened this issue Mar 25, 2020 · 9 comments
Closed

在最后开始安装时下载出错 #26

summerkangk opened this issue Mar 25, 2020 · 9 comments

Comments

@summerkangk
Copy link

Press any key to start...or Press Ctrl+c to cancel
frps install path:/usr/local/frps
config file for frps ... done
download frps ...
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
mv: cannot stat 'frp_0.32.0_linux_amd64/frps': No such file or directory
failed

@MvsCode
Copy link
Owner

MvsCode commented Mar 25, 2020

Press any key to start...or Press Ctrl+c to cancel

frps install path:/usr/local/frps

config file for frps ... done

download frps ...

gzip: stdin: not in gzip format

tar: Child returned status 1

tar: Error is not recoverable: exiting now

mv: cannot stat 'frp_0.32.0_linux_amd64/frps': No such file or directory

failed

原因是这个压缩包没有用gzip格式压缩,所以不用加z指令。

在解压tar.gz文件的时候报错

百度可以查到

@wongsyrone
Copy link

并不是,FRPS_INIT 打成了 FRPS.INIT,另外fun_getVer 打成了 fun_get_version

@MvsCode
Copy link
Owner

MvsCode commented Mar 25, 2020

并不是,FRPS_INIT 打成了 FRPS.INIT,另外fun_getVer 打成了 fun_get_version

按照你的报错日志是 解压方式不一致

@wongsyrone
Copy link

你自己看 https://github.com/MvsCode/frps-onekey/blob/master/install-frps.sh#L173

首先如果直接回车,默认设置会到187行,走gitee的下载链接
另外 github_download_url 打成了 gitub_download_url, 导致github的链接不完整,根本就下不来那个文件,后面的命令肯定失败,和gzip半毛钱关系都没有

@MvsCode
Copy link
Owner

MvsCode commented Mar 26, 2020

你自己看 https://github.com/MvsCode/frps-onekey/blob/master/install-frps.sh#L173

首先如果直接回车,默认设置会到187行,走gitee的下载链接
另外 github_download_url 打成了 gitub_download_url, 导致github的链接不完整,根本就下不来那个文件,后面的命令肯定失败,和gzip半毛钱关系都没有

嗯嗯,看到了,现在再试试

@wongsyrone
Copy link

我自己修好了,另外还改了两处

@@ -821,8 +822,8 @@ update_program_server_clang(){
         checkos
         check_centosversion
         check_os_bit
-    fun_get_version
-        remote_init_version=`wget  -qO- ${FRPS.INIT} | sed -n '/'^version'/p' | cut -d\" -f2`
+    fun_getVer
+        remote_init_version=`wget  -qO- ${FRPS_INIT} | sed -n '/'^version'/p' | cut -d\" -f2`
         local_init_version=`sed -n '/'^version'/p' ${program_init} | cut -d\" -f2`
         install_shell=${strPath}
         if [ ! -z ${remote_init_version} ];then

@summerkangk
Copy link
Author

我是复制粘贴的命令(也可能是谷歌自动翻译的原因没仔细看)

@wongsyrone
Copy link

我是在脚本最前加了 set -x 看出来的

@MvsCode
Copy link
Owner

MvsCode commented Mar 26, 2020

我自己修好了,另外还改了两处

@@ -821,8 +822,8 @@ update_program_server_clang(){
         checkos
         check_centosversion
         check_os_bit
-    fun_get_version
-        remote_init_version=`wget  -qO- ${FRPS.INIT} | sed -n '/'^version'/p' | cut -d\" -f2`
+    fun_getVer
+        remote_init_version=`wget  -qO- ${FRPS_INIT} | sed -n '/'^version'/p' | cut -d\" -f2`
         local_init_version=`sed -n '/'^version'/p' ${program_init} | cut -d\" -f2`
         install_shell=${strPath}
         if [ ! -z ${remote_init_version} ];then

Thx

MvsCode added a commit that referenced this issue Mar 26, 2020
@MvsCode MvsCode closed this as completed Apr 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants