我正在尝试将 Ubuntu 14.04 LTS 服务器升级到 16.04。但每次运行时都会返回以下错误:sudo http_proxy="http://usrid:[email protected]:8080" apt update
错误信息
Err http://apt.llvm.org llvm-toolchain-trusty-4.0/main amd64 Packages
server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
Err http://apt.llvm.org llvm-toolchain-trusty-4.0/main i386 Packages
server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
Err http://apt.llvm.org llvm-toolchain-trusty-5.0/main amd64 Packages
server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
Err http://apt.llvm.org llvm-toolchain-trusty-5.0/main i386 Packages
server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
: GPG error: http://extras.ubuntu.com trusty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 16126D3A3E5C1192
W: Failed to fetch http://apt.llvm.org/trusty/dists/llvm-toolchain-trusty-4.0/main/binary-amd64/Packages server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
W: Failed to fetch http://apt.llvm.org/trusty/dists/llvm-toolchain-trusty-4.0/main/binary-i386/Packages server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
W: Failed to fetch http://apt.llvm.org/trusty/dists/llvm-toolchain-trusty-5.0/main/binary-amd64/Packages server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
W: Failed to fetch http://apt.llvm.org/trusty/dists/llvm-toolchain-trusty-5.0/main/binary-i386/Packages server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
E: Some index files failed to download. They have been ignored, or old ones used instead.
解决方案已尝试但仍然没有成功:
- 更新
ca-certificates
; apt-get install --reinstall ca-certificates
;- 检查
sources.list
,它是默认的ubuntu信任源;
当前 Ubuntu 14.04
~$ cat /etc/os-release
NAME="Ubuntu"
VERSION="14.04.1 LTS, Trusty Tahr"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 14.04.1 LTS"
VERSION_ID="14.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
我想知道这个问题是否与我的代理设置有关。但我以前尝试过使用代理进行升级,效果很好。如果您有任何建议,请告诉我!我将不胜感激。