When I enter: sudo extrepo enable librewolf
in the Debian template I get the following message:
extrepo enable librewolf
Could not download index YAML file:
500 Can’t connect to extrepo-team.pages.debian.net:443 (Temporary name resolution error) at /usr/share/perl5/Debian/ExtRepo/Data.pm line 27.
sudo http_proxy=http://127.0.0.1:8082 https_proxy=http://127.0.0.1:8082 extrepo enable librewolf
Could not download index YAML file:
500 establishing SSL tunnel failed: 403 CONNECT denied (ask the admin to allow HTTPS tunnels) at /usr/share/perl5/Debian/ExtRepo/Data.pm line 27.
@kryptopunk could you please share all the code lines you entered? What template did you use, any modification? Thank you
This is very odd. I found a typo in my apt-cacher configuration, fixed it. Rerun my apt-cacher auto-creation script and get it working. But just once! I redo the librewolf qube creation and it failed again with the same (old) error message.
May I ask you to briefly run these 6 code lines (Qubes OS 4.2, apt-cacher installed and configured):
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Could not download index YAML file:
500 establishing SSL tunnel failed: 403 CONNECT denied (ask the admin to allow HTTPS tunnels) at /usr/share/perl5/Debian/ExtRepo/Data.pm line 27.
It worked for me.
What’s the net qube of your cacher qube?
Maybe your IP is blocked by the repository?
I’m using sys-whonix as a net qube for cacher qube.
The request to https://debian.org is passthrough in cacher qube for me withour caching and it works without error.
I’m not sure what’s different in my case, I’m using debian-12-minimal template with apt-cacher-ng installed and the only things I’ve changed in the config are Port and AllowUserPorts.
I don’t have PassThroughPattern in my apt-cacher-ng config.
I get exactly the same but I remember an apt-cacher setting during the installation. It asked for HTTP tunnels …
I will reinstall my apt-cacher and select this option to check if this will fix it.
I’ve missed this, it was configured by the package manager during installation in another file /etc/apt-cacher-ng/zz_debconf.conf:
PassThroughPattern: .*
You can reconfigure apt-cacher-ng by running dpkg-reconfigure apt-cacher-ng in the template and PassThroughPattern is configured at this step:
+----------------------+ Configuring apt-cacher-ng +-----------------------+
| |
| Apt-Cacher NG can be configured to allow users to create HTTP tunnels, |
| which can be used to access remote servers that might otherwise be |
| blocked by (for instance) a firewall filtering HTTPS connections. |
| |
| This feature is usually disabled for security reasons; enable it only |
| for trusted LAN environments. |
| |
| Allow HTTP tunnels through Apt-Cacher NG? |
| |
| <Yes> <No> |
| |
+--------------------------------------------------------------------------+
But now, I have the question: How can I define the PassThroughPattern that it will allows the exception for this special (extrepo librewolf) case only and for all other connection use https only?