我正在本地网络中运行squid-deb-proxy服务器。在运行所有APT命令时,它可以很好地处理所有包下载。它被配置为所有可能已知的镜像URL,包括旧版本。Ubuntu19.10客户端已经安装了客户端-- squid-deb-proxy-client包。
$ dpkg -l squid-deb-proxy-client | tail -n1
ii squid-deb-proxy-client 0.8.14+nmu2 all automatic proxy discovery for APT based on Avahi
$ sudo apt update
Hit:1 http://archive.ubuntu.com/ubuntu eoan InRelease
Hit:2 http://archive.ubuntu.com/ubuntu eoan-updates InRelease
Hit:3 http://archive.ubuntu.com/ubuntu eoan-backports InRelease
Hit:4 http://security.ubuntu.com/ubuntu eoan-security InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.但是,当我尝试启动升级进程以获得20.04LTS-在终端中使用sudo do-release-upgrade时,我得到了以下错误消息:
$ sudo do-release-upgrade
Checking for a new Ubuntu release
Your Ubuntu release is not supported anymore.
For upgrade information, please visit:
http://www.ubuntu.com/releaseendoflife
Get:1 Upgrade tool signature [1 554 B]
Get:2 Upgrade tool [1 342 kB]
Fetched 1 343 kB in 0s (0 B/s)
authenticate 'focal.tar.gz' against 'focal.tar.gz.gpg'
Authentication failed
Authenticating the upgrade failed. There may be a problem with the network or with the server. 在squid-deb-proxy服务器端的日志中,我没有看到任何特殊的内容:
==> /var/log/squid-deb-proxy/access.log <==
1595069772.862 212 192.168.3.47 TCP_MISS/200 3349 CONNECT changelogs.ubuntu.com:443 - HIER_DIRECT/91.189.95.15 -
1595069774.726 2 192.168.3.47 TCP_MEM_HIT/200 1950 GET http://archive.ubuntu.com/ubuntu/dists/focal-updates/main/dist-upgrader-all/current/focal.tar.gz.gpg - HIER_NONE/- application/x-gzip
1595069775.410 681 192.168.3.47 TCP_HIT/200 1342082 GET http://archive.ubuntu.com/ubuntu/dists/focal-updates/main/dist-upgrader-all/current/focal.tar.gz - HIER_NONE/- application/x-gzip如何解决身份验证无法正常通过代理服务器运行升级的问题?我不希望关闭代理服务器(或将其配置从客户端中排除)关闭,以解决问题。
备注:
sudo do-release-upgrade -d将18.04LTS升级到20.04LTS时,也会发生同样的情况。squid-deb-proxy-client deb包并由Acquire::http::Proxy "http://192.168.12.34:8000";在/etc/apt/apt.conf中指定代理不会改变任何事情。发布于 2020-07-28 16:53:54
这里的问题是由于我的代理有旧版本的安装程序文件造成的。
因此,我通过通过客户机上的命令触发手动缓存更新来解决这个问题:
cd /tmp
http_proxy=http://192.168.12.34:8000 wget --no-cache -c http://archive.ubuntu.com/ubuntu/dists/focal-updates/main/dist-upgrader-all/current/focal.tar.gz
http_proxy=http://192.168.12.34:8000 wget -c http://archive.ubuntu.com/ubuntu/dists/focal-updates/main/dist-upgrader-all/current/focal.tar.gz在服务器上:
sudo service squid3 restart
sudo service squid-deb-proxy restart然后升级运行良好。
发布于 2020-07-24 08:34:48
这个问题与您的squid代理无关。它无法将下载的文件“focal.tar.gz”与文件“ocal.tar.gz.gpg”中的GPG键匹配。
这个问题是在:https://stackoverflow.com/a/62463184/1525392中解决的
其中,正如Hiren所建议的,您必须用下面的
/etc/apt/sources.list但是在替换之前一定要备份这个文件。
deb http://in.archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse
deb-src http://in.archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse
deb http://in.archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src http://in.archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse
deb http://in.archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
deb-src http://in.archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
deb http://in.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
deb-src http://in.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
deb http://archive.canonical.com/ubuntu focal partner
deb-src http://archive.canonical.com/ubuntu focal partner然后,
sudo apt-get install --reinstall ubuntu-keyringhttps://askubuntu.com/questions/1260089
复制相似问题