“错误设置证书验证位置:CAfile:/etc/pki/tls/certs/ca-bundle.crt CApath:无”

问题描述 投票:0回答:0

我正在尝试安装 certbot,但出现以下错误:

[ec2-user@ip-myip ~]$ sudo yum update
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
Could not retrieve mirrorlist https://amazonlinux-2-repos-eu-south-1.s3.dualstack.eu-south-1.amazonaws.com/2/core/latest/x86_64/mirror.list error was
14: curl#77 - "error setting certificate verify locations:  CAfile: /etc/pki/tls/certs/ca-bundle.crt CApath: none"
Could not retrieve mirrorlist https://amazonlinux-2-repos-eu-south-1.s3.dualstack.eu-south-1.amazonaws.com/2/extras/docker/latest/x86_64/mirror.list error was
14: curl#77 - "error setting certificate verify locations:  CAfile: /etc/pki/tls/certs/ca-bundle.crt CApath: none"
Could not retrieve mirrorlist https://amazonlinux-2-repos-eu-south-1.s3.dualstack.eu-south-1.amazonaws.com/2/extras/epel/latest/x86_64/mirror.list error was
14: curl#77 - "error setting certificate verify locations:  CAfile: /etc/pki/tls/certs/ca-bundle.crt CApath: none"
Could not retrieve mirrorlist https://amazonlinux-2-repos-eu-south-1.s3.dualstack.eu-south-1.amazonaws.com/2/extras/kernel-5.10/latest/x86_64/mirror.list error was
14: curl#77 - "error setting certificate verify locations:  CAfile: /etc/pki/tls/certs/ca-bundle.crt CApath: none"
Could not get metalink https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=x86_64 error was
14: curl#77 - "error setting certificate verify locations:  CAfile: /etc/pki/tls/certs/ca-bundle.crt CApath: none"
https://repo.mongodb.org/yum/amazon/2/mongodb-org/5.0/x86_64/repodata/repomd.xml: [Errno 14] curl#77 - "error setting certificate verify locations:  CAfile: /etc/pki/tls/certs/ca-bundle.crt CApath: none"
Trying other mirror.
222 packages excluded due to repository priority protections
Resolving Dependencies
--> Running transaction check
---> Package epel-release.noarch 0:7-11 will be updated
---> Package epel-release.noarch 0:7-14 will be an update
---> Package mongodb-database-tools.x86_64 0:100.6.1-1 will be updated
---> Package mongodb-database-tools.x86_64 0:100.7.0-1 will be an update
---> Package mongodb-mongosh.x86_64 0:1.7.1-1.el8 will be updated
---> Package mongodb-mongosh.x86_64 0:1.8.0-1.el8 will be an update
--> Finished Dependency Resolution

Total size: 94 M
Total download size: 94 M
Is this ok [y/d/N]: y
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
mongodb-database-tools-100.7.0 FAILED
https://repo.mongodb.org/yum/amazon/2/mongodb-org/5.0/x86_64/RPMS/mongodb-database-tools-100.7.0.x86_64.rpm: [Errno 14] curl#77 - "error setting certificate verify locations:  CAfile: /etc/pki/tls/certs/ca-bundle.crt CApath: none"
Trying other mirror.
mongodb-mongosh-1.8.0.x86_64.r FAILED
https://repo.mongodb.org/yum/amazon/2/mongodb-org/5.0/x86_64/RPMS/mongodb-mongosh-1.8.0.x86_64.rpm: [Errno 14] curl#77 - "error setting certificate verify locations:  CAfile: /etc/pki/tls/certs/ca-bundle.crt CApath: none"
Trying other mirror.


Error downloading packages:
  mongodb-database-tools-100.7.0-1.x86_64: [Errno 256] No more mirrors to try.
  mongodb-mongosh-1.8.0-1.el8.x86_64: [Errno 256] No more mirrors to try.

如果我查看文件夹,文件在这里:

[ec2-user@ip-myip ~]$ cd /etc/pki/tls/certs/
[ec2-user@ip-myip certs]$ ls -a
.  ..  ca-bundle.crt  ca-bundle.trust.crt  make-dummy-cert  Makefile  newcsr.pem  renew-dummy-cert 

每当我尝试使用 yum 做某事时都会出现同样的情况,我也无法更新和安装任何东西。

linux curl yum
© www.soinside.com 2019 - 2024. All rights reserved.