I’ve read a lot of topics about apt-cacher-ng and fedora and I still don’t understand why I can’t get it to work. So, this is my setup:
I followed the notes of unman, setting up a template for a test-cacher
VM, editing qrexec policy, I’ve got a fedora-38-test-cached-3
and a debian-11-test-cached-3
VM (yes, I made several attempts). I’ve changed https://
into http://HTTPS///
in the debian template and I can update it and see it in the test-cacher
logs.
With fedora, I used this command:
sudo sed -i "s^metalink=https://\(\S\+\)$basearch^metalink=http://HTTPS///\1$basearch\&protocol=http^" /etc/yum.repos.d/*.repo
sudo sed -i "s^https://^http://HTTPS///^" /etc/yum.repos.d/qubes-r4.repo
I copied the fedora_mirrors in test_cacher
Then, upgrading, I got this:
Error: Failed to download metadata for repo ‘fedora’: Cannot prepare internal mirrorlist: Status code: 403 for http://HTTPS///mirrors.fedoraproject.org/metalink?repo=fedora-38&arch=x86_64&protocol=http (IP: 127.0.0.1)
This is what I tried:
In fedora-38-cached-test-3
:
sudo dnf upgrade --refresh
In test-cacher
:
sudo rm -r /var/cache/apt-cacher-ng/fedora
Same error after adding some lines to acng.conf
in test-cacher
:
VfilePatternEx: .*fedora.*updateinfo.*xml.zck$
DontCache: .*fedora.*updates.*updateinfo.xml.zck
Copying the acng.conf
from shaker don’t change the problem…
So, I think there is something I don’t understand but what?