当前位置:论坛首页 > Linux面板 > 求助

【已解答】安装过程中出现证书错误

发表在 Linux面板2023-8-25 19:39 [复制链接] 1 2448

本帖最后由 堡塔运维小林 于 2023-8-25 20:02 编辑

为了能快速了解并处理您的问题,请提供以下基础信息:
面板、插件版本:免费版 8.0.1  

系统版本:Ubuntu 20.04.1 LTS x86_64(Py3.7.9)

问题描述:
在软件商店安装时均会出现错误。

相关截图(日志、错误):
2023-08-25 19:34:10 (693 MB/s) - ‘exif.sh’ saved [4420/4420]正在选择下载节点...https://download.bt.cn正在选择下载节点...--2023-08-25 19:34:27--  https://dg1.bt.cn/install/ext/ext-81.zipResolving dg1.bt.cn (dg1.bt.cn)... 36.133.1.8, 240e:a5:4200:89::256Connecting to dg1.bt.cn (dg1.bt.cn)|36.133.1.8|:443... connected.ERROR: cannot verify dg1.bt.cn's certificate, issued by ‘CN=sslTrus (RSA) OV CA,O=sslTrus,C=CN’:  Unable to locally verify the issuer's authority.To connect to dg1.bt.cn insecurely, use `--no-check-certificate'.  End-of-central-directory signature not found.  Either this file is not  a zipfile, or it constitutes one disk of a multi-part archive.  In the  latter case the central directory and zipfile comment will be found on  the last disk(s) of this archive.unzip:  cannot find zipfile directory in one of ext-81.zip or        ext-81.zip.zip, and cannot find ext-81.zip.ZIP, period.mv: cannot stat '/www/server/php/81/src/ext-81': No such file or directorycat: /etc/redhat-release: No such file or directoryexif.sh: line 79: cd: /www/server/php/81/src/ext/exif: No such file or directoryCannot find config.m4. Make sure that you run '/www/server/php/81/bin/phpize' in the top level source directory of the moduleexif.sh: line 81: ./configure: No such file or directorysed: can't read Makefile: No such file or directorymake: *** No targets specified and no makefile found.  Stop.ERROR!|-Successify --- 命令已执行! ---

捕获1.PNG

使用道具 举报 只看该作者 回复
发表于 2023-8-25 20:01:52 | 显示全部楼层
您好,您所提供的软件安装执行过程的日志信息内提示 `--no-check-certificate`错误,是因当前服务器系统根证书无法得到验证,所以导致提示此错误。您可以参考下面方法处理:
1.更换服务器系统根证书文件:
  1. curl --etag-compare etag.txt --etag-save etag.txt --remote-name <a href="https://curl.se/ca/cacert.pem" target="_blank">https://curl.se/ca/cacert.pem</a>
复制代码
如果提示不支持 etag,则使用这条命令
  1. curl --remote-name --time-cond cacert.pem <a href="https://curl.se/ca/cacert.pem" target="_blank">https://curl.se/ca/cacert.pem</a>
复制代码

2.如1的解决方法不行的话,则参考当前解决方法:
  1. update-ca-certificates --verbose --fresh
  2. export SSL_CERT_DIR=/etc/ssl/certs
复制代码

export是临时添加变量环境
如需永久添加,则修改~/.bashrc
添加:
  1. export SSL_CERT_DIR=/etc/ssl/certs
复制代码

执行source ~/.bashrc生效
3.如以上1和2无法解决,则参考当前解决方法:
修改 /etc/wgetrc的配置
  1. echo "check_certificate = off" >> /etc/wgetrc
复制代码

此设置是设置wget请求时不验证证书。
如以上方法都不能实现,则到服务器运营商做个快照设置,然后更新系统到最新版本。
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急运维服务

响应时间:3分钟

问题处理方式:宝塔专家1对1服务

工作时间:工作日:9:00 - 18:30

宝塔专业团队为您解决服务器疑难问题

点击联系技术免费分析

工作时间:09:00至18:30

快速回复 返回顶部 返回列表