squid-deb-proxy squid-deb-proxy-client do not work out of the box
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
squid-deb-proxy (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
In my understanding, squid-deb-proxy and squid-deb-
Steps to reproduce:
- In VirtualBox install Ubuntu 21.10, Minimal installation.
- In Terminal run:
sudo apt install squid-deb-proxy squid-deb-
sudo apt update
After the last step, apt is trying to use the installed squid-deb-proxy, but it fails. This behaviour I confirmed also in a local network on distinct computers (squid-deb-proxy on one computer, squid-deb-
As a workaround, the proxy configuration can be changed to accept any connection:
in /etc/squid-
'http_access deny !to_archive_
with
'http_access allow all'
run 'sudo systemctl restart squid-deb-proxy'
Now, 'sudo apt update' will succeed, but obviously my "solution" is not correct.
The output of the failing sudo apt update (with IP addresses "anonymized"; the address 2a03:687:
Err:1 http://
403 Forbidden [IP: 2a03:687:
Err:2 http://
403 Forbidden [IP: 2a03:687:
Err:3 http://
403 Forbidden [IP: 2a03:687:
Ign:4 http://
Ign:4 http://
Ign:4 http://
Err:4 http://
Connection failed [IP: 2a03:687:
Reading package lists... Done
N: See apt-secure(8) manpage for repository creation and user configuration details.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
E: The repository 'http://
E: Failed to fetch http://
E: Failed to fetch http://
E: The repository 'http://
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://
E: The repository 'http://
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
summary: |
- apt uses proxy in order to access local resources + squid-deb-proxy squid-deb-proxy-client do not work out of the box |
This is a local configuration issue and not a bug in apt. APT does not know how your proxy configuration will interact with your sources.list.