Proxmox 7 apt proxy problem

Hyien

Member
Jun 18, 2021
95
2
13
34
I'm experiencing this weird issue with Apt when using a http proxy (tinyproxy).

I have the following configured:
/etc/apt/apt.conf.d/99myproxy
Acquire::http::Proxy "http://myproxy.XXXX:8080";

then when i run
apt clean
apt update
apt -y dist-upgrade

i get the following error on the first run.
note this happens only on the first run.
subsequent invocation of apt -y dist-upgrade runs properly.
but when i reboot the box after the first invocation and run it again, the error comes back.

Hit:1 http://security.debian.org bullseye-security InRelease Hit:2 http://ftp.debian.org/debian bullseye InRelease Hit:3 http://ftp.debian.org/debian bullseye-updates InRelease Reading package lists... Done Building dependency tree... Done Reading state information... Done 12 packages can be upgraded. Run 'apt list --upgradable' to see them. root@pve:/var# apt -y dist-upgrade Reading package lists... Done Building dependency tree... Done Reading state information... Done Calculating upgrade... Done The following packages will be upgraded: curl debconf debconf-i18n libcurl3-gnutls libcurl4 libicu67 libuv1 python-apt-common python3-debconf python3-pkg-resources python3-urllib3 python3-yaml 12 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 10.6 MB of archives. After this operation, 2,048 B of additional disk space will be used. Get:1 http://ftp.debian.org/debian bullseye/main amd64 python3-debconf all 1.5.77 [4,012 B] Get:2 http://ftp.debian.org/debian bullseye/main amd64 debconf-i18n all 1.5.77 [206 kB] Err:2 http://ftp.debian.org/debian bullseye/main amd64 debconf-i18n all 1.5.77 Error reading from server. Remote end closed connection [IP: X.X.X.X 8080] Get:3 http://ftp.debian.org/debian bullseye/main amd64 debconf all 1.5.77 [144 kB] Err:3 http://ftp.debian.org/debian bullseye/main amd64 debconf all 1.5.77 Error reading from server. Remote end closed connection [IP: X.X.X.X 8080] Get:4 http://ftp.debian.org/debian bullseye/main amd64 curl amd64 7.74.0-1.3+b1 [267 kB] Err:4 http://ftp.debian.org/debian bullseye/main amd64 curl amd64 7.74.0-1.3+b1 Error reading from server. Remote end closed connection [IP: X.X.X.X 8080] Get:5 http://ftp.debian.org/debian bullseye/main amd64 libcurl4 amd64 7.74.0-1.3+b1 [341 kB] Err:5 http://ftp.debian.org/debian bullseye/main amd64 libcurl4 amd64 7.74.0-1.3+b1 Error reading from server. Remote end closed connection [IP: X.X.X.X 8080] Get:6 http://ftp.debian.org/debian bullseye/main amd64 libcurl3-gnutls amd64 7.74.0-1.3+b1 [338 kB] Err:6 http://ftp.debian.org/debian bullseye/main amd64 libcurl3-gnutls amd64 7.74.0-1.3+b1 Error reading from server. Remote end closed connection [IP: X.X.X.X 8080] Get:7 http://ftp.debian.org/debian bullseye/main amd64 libicu67 amd64 67.1-7 [8,622 kB] Err:7 http://ftp.debian.org/debian bullseye/main amd64 libicu67 amd64 67.1-7 Error reading from server. Remote end closed connection [IP: X.X.X.X 8080] Get:8 http://ftp.debian.org/debian bullseye/main amd64 libuv1 amd64 1.40.0-2 [132 kB] Err:8 http://ftp.debian.org/debian bullseye/main amd64 libuv1 amd64 1.40.0-2 Error reading from server. Remote end closed connection [IP: X.X.X.X 8080] Get:9 http://ftp.debian.org/debian bullseye/main amd64 python-apt-common all 2.2.1 [96.5 kB] Err:9 http://ftp.debian.org/debian bullseye/main amd64 python-apt-common all 2.2.1 Error reading from server. Remote end closed connection [IP: X.X.X.X 8080] Get:10 http://ftp.debian.org/debian bullseye/main amd64 python3-pkg-resources all 52.0.0-4 [190 kB] Err:10 http://ftp.debian.org/debian bullseye/main amd64 python3-pkg-resources all 52.0.0-4 Error reading from server. Remote end closed connection [IP: X.X.X.X 8080] Get:11 http://ftp.debian.org/debian bullseye/main amd64 python3-urllib3 all 1.26.5-1~exp1 [114 kB] Err:11 http://ftp.debian.org/debian bullseye/main amd64 python3-urllib3 all 1.26.5-1~exp1 Error reading from server. Remote end closed connection [IP: X.X.X.X 8080] Get:12 http://ftp.debian.org/debian bullseye/main amd64 python3-yaml amd64 5.3.1-5 [138 kB] Fetched 142 kB in 1s (94.8 kB/s) E: Failed to fetch http://ftp.debian.org/debian/pool/main/d/debconf/debconf-i18n_1.5.77_all.deb Error reading from server. Remote end closed connection [IP: X.X.X.X 8080] E: Failed to fetch http://ftp.debian.org/debian/pool/main/d/debconf/debconf_1.5.77_all.deb Error reading from server. Remote end closed connection [IP: X.X.X.X 8080] E: Failed to fetch http://ftp.debian.org/debian/pool/main/c/curl/curl_7.74.0-1.3%2bb1_amd64.deb Error reading from server. Remote end closed connection [IP: X.X.X.X 8080] E: Failed to fetch http://ftp.debian.org/debian/pool/main/c/curl/libcurl4_7.74.0-1.3%2bb1_amd64.deb Error reading from server. Remote end closed connection [IP: X.X.X.X 8080] E: Failed to fetch http://ftp.debian.org/debian/pool/main/c/curl/libcurl3-gnutls_7.74.0-1.3%2bb1_amd64.deb Error reading from server. Remote end closed connection [IP: X.X.X.X 8080] E: Failed to fetch http://ftp.debian.org/debian/pool/main/i/icu/libicu67_67.1-7_amd64.deb Error reading from server. Remote end closed connection [IP: X.X.X.X 8080] E: Failed to fetch http://ftp.debian.org/debian/pool/main/libu/libuv1/libuv1_1.40.0-2_amd64.deb Error reading from server. Remote end closed connection [IP: X.X.X.X 8080] E: Failed to fetch http://ftp.debian.org/debian/pool/main/p/python-apt/python-apt-common_2.2.1_all.deb Error reading from server. Remote end closed connection [IP: X.X.X.X 8080] E: Failed to fetch http://ftp.debian.org/debian/pool/main/s/setuptools/python3-pkg-resources_52.0.0-4_all.deb Error reading from server. Remote end closed connection [IP: X.X.X.X 8080] E: Failed to fetch http://ftp.debian.org/debian/pool/main/p/python-urllib3/python3-urllib3_1.26.5-1%7eexp1_all.deb Error reading from server. Remote end closed connection [IP: X.X.X.X 8080]
 
that sounds like your proxy is misbehaving ;)
 
  • Like
Reactions: Ben B
apt and the debian repositories ARE vanilla Debian though? the error also indicates that the proxy closes the connection, so you need to check on the proxy side what's going on..
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!