【已回应】6.6.1测试版本 卸载apche后安装Nginx 装不上
返回代码如下:Traceback (most recent call last):
File "C:\Program Files\python\lib\site-packages\unrar\rarfile.py", line 315, in _extract_members
handle, constants.RAR_EXTRACT, targetpath)
File "C:\Program Files\python\lib\site-packages\unrar\rarfile.py", line 144, in _process_current
unrarlib.RARProcessFileW(handle, op, dest_path, dest_name)
File "C:\Program Files\python\lib\site-packages\unrar\unrarlib.py", line 191, in _check_process_result
raise UnrarException("File create error")
unrar.unrarlib.UnrarException: File create error
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\BtSoft\panel\install\panel_nginx.py", line 47, in install_soft
rar.extractall(path)
File "C:\Program Files\python\lib\site-packages\unrar\rarfile.py", line 296, in extractall
self._extract_members(members, path, pwd)
File "C:\Program Files\python\lib\site-packages\unrar\rarfile.py", line 320, in _extract_members
raise BadRarFile("Bad RAR archive data.")
unrar.rarfile.BadRarFile: Bad RAR archive data.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Program Files\python\lib\site-packages\unrar\rarfile.py", line 315, in _extract_members
handle, constants.RAR_EXTRACT, targetpath)
File "C:\Program Files\python\lib\site-packages\unrar\rarfile.py", line 144, in _process_current
unrarlib.RARProcessFileW(handle, op, dest_path, dest_name)
File "C:\Program Files\python\lib\site-packages\unrar\unrarlib.py", line 191, in _check_process_result
raise UnrarException("File create error")
unrar.unrarlib.UnrarException: File create error
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "install_soft.py", line 36, in <module>
module.install_soft(downurl)
File "D:\BtSoft\panel\install\panel_nginx.py", line 51, in install_soft
rar.extractall(path)
File "C:\Program Files\python\lib\site-packages\unrar\rarfile.py", line 296, in extractall
self._extract_members(members, path, pwd)
File "C:\Program Files\python\lib\site-packages\unrar\rarfile.py", line 320, in _extract_members
raise BadRarFile("Bad RAR archive data.")
unrar.rarfile.BadRarFile: Bad RAR archive data.
后面直接看了下,下载下来的NGINX程序压缩包,解压会报错不知道是不是这个问题导致的
解压错误? 宝塔用户_fzgjlx 发表于 2020-4-20 11:43
解压错误?
好像事下载下来的安装压缩包有问题 子牙84 发表于 2020-4-20 11:45
好像事下载下来的安装压缩包有问题
删掉重新安装几次试试 宝塔用户_fzgjlx 发表于 2020-4-20 11:46
删掉重新安装几次试试
感觉是宝塔服务器上的包压缩得有问题,刚刚试了试apche重装也是遇到同样问题了,压缩包电脑双击无法打开,可以用其他解压软件打开。 子牙84 发表于 2020-4-20 11:50
感觉是宝塔服务器上的包压缩得有问题,刚刚试了试apche重装也是遇到同样问题了,压缩包电脑双击无法打开 ...
那去找管理员吧 本帖最后由 子牙84 于 2020-4-20 12:48 编辑
最新的错误代码Traceback (most recent call last):
File "install_soft.py", line 36, in <module>
module.install_soft(downurl)
File "D:\BtSoft\panel\install\panel_nginx.py", line 46, in install_soft
zip_file = zipfile.ZipFile(temp)
File "C:\Program Files\python\lib\zipfile.py", line 1108, in __init__
self._RealGetContents()
File "C:\Program Files\python\lib\zipfile.py", line 1175, in _RealGetContents
raise BadZipFile("File is not a zip file")
zipfile.BadZipFile: File is not a zip file
看了下安装py代码,发现下载的py安装代码中有问题,下载的包是rar压缩的且包有问题,解压用了zip
子牙84 发表于 2020-4-20 12:44
最新的错误代码
看了下安装py代码,发现下载的py安装代码中有问题,下载的包是rar压缩的且包有问题,解压 ...
重新安装即可,部分系统rar解压会出问题,以更改为zip格式 沐沐 发表于 2020-4-20 14:02
重新安装即可,部分系统rar解压会出问题,以更改为zip格式
我已经手工安装了并解决问题了。之前看到修改为zip解压了,但服务器下载的还是rar。就修改了安装的py禁止下载安装用的py,修改了原来的py命令指向安装文件,然后安装成功了。你们在测试下吧
页:
[1]