What is a purpose of 95proxy & Unable to connect to 127.0.0.1:8082

Hello, I stuck with Unable to connect to 127.0.0.1:8082. It din’t bothered me much, i seen that error for a long time after for ex: sudo apt update, but things get installed somehow. I now were stuck with flatpak.

sudo apt install flatpak
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
libappstream4 libmalcontent-0-0 libostree-1-1 libstemmer0d libxmlb2
Suggested packages:
malcontent-gui
The following NEW packages will be installed:
flatpak libappstream4 libmalcontent-0-0 libostree-1-1 libstemmer0d libxmlb2
0 upgraded, 6 newly installed, 0 to remove and 8 not upgraded.
Need to get 2,119 kB of archives.
After this operation, 10.2 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Ign:1 https://deb.debian.org/debian bookworm/main amd64 libstemmer0d amd64 2.2.0-2
Ign:2 https://deb.debian.org/debian bookworm/main amd64 libxmlb2 amd64 0.3.10-2
Ign:3 https://deb.debian.org/debian bookworm/main amd64 libappstream4 amd64 0.16.1-2
Ign:4 https://deb.debian.org/debian bookworm/main amd64 libmalcontent-0-0 amd64 0.11.0-4
Ign:5 https://deb.debian.org/debian bookworm/main amd64 libostree-1-1 amd64 2022.7-2+deb12u1
Ign:6 https://deb.debian.org/debian bookworm/main amd64 flatpak amd64 1.14.10-1~deb12u1
Ign:1 https://deb.debian.org/debian bookworm/main amd64 libstemmer0d amd64 2.2.0-2
Ign:2 https://deb.debian.org/debian bookworm/main amd64 libxmlb2 amd64 0.3.10-2
Ign:3 https://deb.debian.org/debian bookworm/main amd64 libappstream4 amd64 0.16.1-2
Ign:4 https://deb.debian.org/debian bookworm/main amd64 libmalcontent-0-0 amd64 0.11.0-4
Ign:5 https://deb.debian.org/debian bookworm/main amd64 libostree-1-1 amd64 2022.7-2+deb12u1
Ign:6 https://deb.debian.org/debian bookworm/main amd64 flatpak amd64 1.14.10-1~deb12u1
Ign:1 https://deb.debian.org/debian bookworm/main amd64 libstemmer0d amd64 2.2.0-2
Ign:2 https://deb.debian.org/debian bookworm/main amd64 libxmlb2 amd64 0.3.10-2
Ign:3 https://deb.debian.org/debian bookworm/main amd64 libappstream4 amd64 0.16.1-2
Ign:4 https://deb.debian.org/debian bookworm/main amd64 libmalcontent-0-0 amd64 0.11.0-4
Ign:5 https://deb.debian.org/debian bookworm/main amd64 libostree-1-1 amd64 2022.7-2+deb12u1
Ign:6 https://deb.debian.org/debian bookworm/main amd64 flatpak amd64 1.14.10-1~deb12u1
Err:1 https://deb.debian.org/debian bookworm/main amd64 libstemmer0d amd64 2.2.0-2
Could not connect to 127.0.0.1:8082 (127.0.0.1). - connect (111: Connection refused)
Err:2 https://deb.debian.org/debian bookworm/main amd64 libxmlb2 amd64 0.3.10-2
Unable to connect to 127.0.0.1:8082:
Err:3 https://deb.debian.org/debian bookworm/main amd64 libappstream4 amd64 0.16.1-2
Unable to connect to 127.0.0.1:8082:
Err:4 https://deb.debian.org/debian bookworm/main amd64 libmalcontent-0-0 amd64 0.11.0-4
Unable to connect to 127.0.0.1:8082:
Err:5 https://deb.debian.org/debian bookworm/main amd64 libostree-1-1 amd64 2022.7-2+deb12u1
Unable to connect to 127.0.0.1:8082:
Ign:6 https://deb.debian.org/debian bookworm/main amd64 flatpak amd64 1.14.10-1~deb12u1
Err:6 https://deb.debian.org/debian bookworm/main amd64 flatpak amd64 1.14.10-1~deb12u1
Unable to connect to 127.0.0.1:8082:
E: Failed to fetch https://deb.debian.org/debian/pool/main/s/snowball/libstemmer0d_2.2.0-2_amd64.deb Could not connect to 127.0.0.1:8082 (127.0.0.1). - connect (111: Connection refused)
E: Failed to fetch https://deb.debian.org/debian/pool/main/libx/libxmlb/libxmlb2_0.3.10-2_amd64.deb Unable to connect to 127.0.0.1:8082:
E: Failed to fetch https://deb.debian.org/debian/pool/main/a/appstream/libappstream4_0.16.1-2_amd64.deb Unable to connect to 127.0.0.1:8082:
E: Failed to fetch https://deb.debian.org/debian/pool/main/m/malcontent/libmalcontent-0-0_0.11.0-4_amd64.deb Unable to connect to 127.0.0.1:8082:
E: Failed to fetch https://deb.debian.org/debian/pool/main/o/ostree/libostree-1-1_2022.7-2%2bdeb12u1_amd64.deb Unable to connect to 127.0.0.1:8082:
E: Failed to fetch https://deb.debian.org/debian-security/pool/updates/main/f/flatpak/flatpak_1.14.10-1%7edeb12u1_amd64.deb Unable to connect to 127.0.0.1:8082:
E: Unable to fetch some archives, maybe run apt-get update or try with –fix-missing?

After bashing ChatGPT i managed to grasp:

/etc/apt/apt.conf.d/95proxy
Acquire::http::Proxy "http://127.0.0.1:8082/";

What is it intended purpose? Because getting around it updated my version, and ofc that isn’t my first time running update on this AppVM

sudo apt -o Acquire::http::Proxy=flase update
Get:1 https://brave-browser-apt-release.s3.brave.com stable InRelease [7,546 B]
Get:2 https://deb.debian.org/debian bookworm InRelease [151 kB]                                                                
Get:3 https://deb.qubes-os.org/r4.2/vm bookworm InRelease [4,739 B]                                                            
Get:4 https://repo.protonvpn.com/debian stable InRelease [2,967 B]                          
Get:5 https://deb.debian.org/debian-security bookworm-security InRelease [48.0 kB]
Get:6 https://deb.debian.org/debian bookworm-backports InRelease [59.4 kB]
Get:7 https://brave-browser-apt-release.s3.brave.com stable/main amd64 Packages [30.8 kB]
Get:8 https://deb.qubes-os.org/r4.2/vm bookworm/main amd64 Packages [38.3 kB]
Get:9 https://repo.protonvpn.com/debian stable/main all Packages [226 kB]
Get:10 https://repo.protonvpn.com/debian stable/main amd64 Packages [10.6 kB]
Get:11 https://deb.debian.org/debian bookworm/main i386 Packages [8,681 kB]
Get:12 https://deb.debian.org/debian bookworm/main amd64 Packages [8,790 kB]
Get:13 https://deb.debian.org/debian bookworm/main Translation-en [6,107 kB]
Get:14 https://deb.debian.org/debian bookworm/contrib amd64 Packages [53.5 kB]
Get:15 https://deb.debian.org/debian bookworm/contrib i386 Packages [46.0 kB]
Get:16 https://deb.debian.org/debian bookworm/contrib Translation-en [48.4 kB]
Get:17 https://deb.debian.org/debian bookworm/non-free-firmware i386 Packages [5,904 B]
Get:18 https://deb.debian.org/debian bookworm/non-free-firmware amd64 Packages [6,368 B]
Get:19 https://deb.debian.org/debian-security bookworm-security/main amd64 Packages [312 kB]
Get:20 https://deb.debian.org/debian-security bookworm-security/main i386 Packages [305 kB]
Get:21 https://deb.debian.org/debian-security bookworm-security/main Translation-en [191 kB]
Get:22 https://deb.debian.org/debian bookworm-backports/main amd64 Packages.diff/Index [63.3 kB]
Ign:22 https://deb.debian.org/debian bookworm-backports/main amd64 Packages.diff/Index
Get:23 https://deb.debian.org/debian bookworm-backports/main Translation-en.diff/Index [63.3 kB]
Get:24 https://deb.debian.org/debian-security bookworm-security/contrib i386 Packages [508 B]
Get:25 https://deb.debian.org/debian-security bookworm-security/non-free-firmware amd64 Packages [688 B]
Get:26 https://deb.debian.org/debian-security bookworm-security/non-free-firmware i386 Packages [692 B]
Get:27 https://deb.debian.org/debian bookworm-backports/main i386 Packages [297 kB]
Get:28 https://deb.debian.org/debian bookworm-backports/contrib i386 Packages [5,728 B]
Get:29 https://deb.debian.org/debian bookworm-backports/non-free-firmware i386 Packages [3,644 B]
Get:30 https://deb.debian.org/debian bookworm-backports/main amd64 Packages [311 kB]
Get:31 https://deb.debian.org/debian bookworm-backports/main Translation-en T-2026-06-06-2000.59-F-2025-10-18-0207.43.pdiff [21.6 kB]                                                        
Get:31 https://deb.debian.org/debian bookworm-backports/main Translation-en T-2026-06-06-2000.59-F-2025-10-18-0207.43.pdiff [21.6 kB]
Fetched 25.9 MB in 33s (788 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
279 packages can be upgraded. Run 'apt list --upgradable' to see them.
N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'https://brave-browser-apt-release.s3.brave.com stable InRelease' doesn't support architecture 'i386'
N: Repository 'https://deb.debian.org/debian bookworm InRelease' changed its 'Version' value from '12.12' to '12.14'
sudo apt -o Acquire::http::Proxy=flase install flatpak
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
libappstream4 libmalcontent-0-0 libostree-1-1 libstemmer0d libxmlb2
Suggested packages:
malcontent-gui
The following NEW packages will be installed:
flatpak libappstream4 libmalcontent-0-0 libostree-1-1 libstemmer0d libxmlb2
0 upgraded, 6 newly installed, 0 to remove and 279 not upgraded.
Need to get 1,405 kB/2,125 kB of archives.
After this operation, 10.3 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 https://deb.debian.org/debian bookworm/main amd64 flatpak amd64 1.14.10-1~deb12u2 [1,405 kB]
Fetched 1,405 kB in 0s (2,879 kB/s)
Selecting previously unselected package libstemmer0d:amd64.
(Reading database ... 212220 files and directories currently installed.)
Preparing to unpack .../0-libstemmer0d_2.2.0-2_amd64.deb ...
Unpacking libstemmer0d:amd64 (2.2.0-2) ...
Selecting previously unselected package libxmlb2:amd64.
Preparing to unpack .../1-libxmlb2_0.3.10-2_amd64.deb ...
Unpacking libxmlb2:amd64 (0.3.10-2) ...
Selecting previously unselected package libappstream4:amd64.
Preparing to unpack .../2-libappstream4_0.16.1-2_amd64.deb ...
Unpacking libappstream4:amd64 (0.16.1-2) ...
Selecting previously unselected package libmalcontent-0-0:amd64.
Preparing to unpack .../3-libmalcontent-0-0_0.11.0-4_amd64.deb ...
Unpacking libmalcontent-0-0:amd64 (0.11.0-4) ...
Selecting previously unselected package libostree-1-1:amd64.
Preparing to unpack .../4-libostree-1-1_2022.7-2+deb12u1_amd64.deb ...
Unpacking libostree-1-1:amd64 (2022.7-2+deb12u1) ...
Selecting previously unselected package flatpak.
Preparing to unpack .../5-flatpak_1.14.10-1~deb12u2_amd64.deb ...
Unpacking flatpak (1.14.10-1~deb12u2) ...
Setting up libxmlb2:amd64 (0.3.10-2) ...
Setting up libostree-1-1:amd64 (2022.7-2+deb12u1) ...
Setting up libstemmer0d:amd64 (2.2.0-2) ...
Setting up libmalcontent-0-0:amd64 (0.11.0-4) ...
Setting up libappstream4:amd64 (0.16.1-2) ...
Setting up flatpak (1.14.10-1~deb12u2) ...
Processing triggers for man-db (2.11.2-2) ...
Processing triggers for dbus (1.14.10-1~deb12u1) ...
Processing triggers for libc-bin (2.36-9+deb12u13) …

Since templates are supposed to be offline but still need to install packages, they make use of a proxy service.

That is the local service on 8082 which is enabled by the service updates-proxy-setup

The other end of this proxy is usually running on your sys-firewall via the service qubes-updates-proxy

Since it is a plain http proxy, you can also do shenanigans on the client side by hinting the http_proxy +s environment variables

2 Likes

127.0.0.1:8082 is expected inside a template: it is the local Qubes update proxy endpoint, so the template can stay without normal networking while apt still reaches repositories through another qube.

I’d check the two ends separately: in the template, qvm-service TEMPLATE updates-proxy-setup should be enabled; on the update proxy qube (usually sys-firewall), qvm-service sys-firewall qubes-updates-proxy should be enabled and that qube needs working network. If those look right, restart the template completely before retrying apt update, because stale template state can make this error look inconsistent.