Tuesday, December 5, 2023
 Popular · Latest · Hot · Upcoming
rated 0 times [  0] [ 0]  / answers: 1 / hits: 4762  / 1 Year ago, tue, june 28, 2022, 1:11:42

I'm running squid-deb-proxy server in my local network. It works well for all package downloads while running all APT commands. It is configured for all possible known URLs of the mirrors including old-releases. The Ubuntu 19.10 client has installed client side - the squid-deb-proxy-client package.

$ 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.

But when I try to start upgrade process to get 20.04 LTS - using sudo do-release-upgrade in the terminal I got the following error message:

$ sudo do-release-upgrade 
Checking for a new Ubuntu release
Your Ubuntu release is not supported anymore.
For upgrade information, please visit:

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.

I do not see anything special in the logs on squid-deb-proxy server side:

==> /var/log/squid-deb-proxy/access.log <==
1595069772.862 212 TCP_MISS/200 3349 CONNECT changelogs.ubuntu.com:443 - HIER_DIRECT/ -
1595069774.726 2 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 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

How should I fix the problem with Authentication failed to run the upgrade through proxy server normally? I do not want to switch proxy server (or exclude its configuration from the client) off to fix the problem.


  1. For possible close-voters: the same happening when I try to upgrade 18.04 LTS to 20.04 LTS with sudo do-release-upgrade -d.

  2. I have reported bug 1888058 to launchpad.

  3. Removing squid-deb-proxy-client deb-package and specifying proxy by Acquire::http::Proxy ""; in /etc/apt/apt.conf does not change anything.

More From » apt


The problem here was caused by the fact that my proxy had old version of the installer files.

So I fixed the issue by triggering manual cache update by the commands on client:

cd /tmp
http_proxy= wget --no-cache -c http://archive.ubuntu.com/ubuntu/dists/focal-updates/main/dist-upgrader-all/current/focal.tar.gz
http_proxy= wget -c http://archive.ubuntu.com/ubuntu/dists/focal-updates/main/dist-upgrader-all/current/focal.tar.gz

and on server:

sudo service squid3 restart
sudo service squid-deb-proxy restart

And then upgrade ran well.

[#2994] Thursday, June 30, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.

Total Points: 214
Total Questions: 111
Total Answers: 116

Location: Sudan
Member since Thu, May 7, 2020
4 Years ago
ionash questions
Wed, Feb 2, 22, 12:57, 2 Years ago
Fri, May 5, 23, 19:21, 8 Months ago
Tue, Nov 9, 21, 21:29, 2 Years ago
Wed, May 11, 22, 18:09, 2 Years ago