I recently setup a server for apt-mirror with Ubuntu 20.04 server in our network. The mirror-sync itself works without any error.
After that i changed the Repository path on one of my Ubuntu 20.04 test servers in /etc/apt/sources.list
.
When running apt-get update on the test-server i receive the following errors:
Err:7 http://repository.XXX.XXXXX.XX/ubuntu/mirror/archive.ubuntu.com/ubuntu focal-updates/main amd64 c-n-f Metadata
404 Not Found [IP: XXX.XX.XX.XX 80]
Err:19 http://repository.XXX.XXXXX.XX/ubuntu/mirror/archive.ubuntu.com/ubuntu focal-backports/main amd64 c-n-f Metadata
404 Not Found [IP: XXX.XX.XX.XX 80]
Err:27 http://repository.XXX.XXXXX.XX/ubuntu/mirror/archive.ubuntu.com/ubuntu focal-security/main amd64 c-n-f Metadata
404 Not Found [IP: XX.XX.XX.XX 80]
Ign:16 http://repository.XXX.XXXXX.XX/ubuntu/mirror/archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 c-n-f Metadata
E: Failed to fetch http://repository.XXX.XXXXX.XX/ubuntu/mirror/archive.ubuntu.com/ubuntu/dists/focal-updates/main/cnf/Commands-amd64 404 Not Found [IP: XX.XX.XX.XX 80]
E: Failed to fetch http://repository.XXX.XXXXX.XX/ubuntu/mirror/archive.ubuntu.com/ubuntu/dists/focal-backports/main/cnf/Commands-amd64 404 Not Found [IP: XX.XX.XX.XX 80]
E: Failed to fetch http://repository.XXX.XXXXX.XX/ubuntu/mirror/archive.ubuntu.com/ubuntu/dists/focal-security/main/cnf/Commands-amd64 404 Not Found [IP: XX.XX.XX.XX 80]
W: Some index files failed to download. They have been ignored, or old ones used instead.
i already tried running sudo rm -rf /var/lib/apt/lists/*
on the server receiving update and deleting all mirror-files and running apt-mirror on the repo-server again.
I'm relative new to linux and i couldn' find any existing posts about this. thanks for helping
Image of /etc/apt/sources.list
:
cat /etc/apt/sources.list
in your question - it most likely has errors. Thanks. – Artur Meinild Nov 16 '22 at 13:01/etc/apt/sources.list
- it probably gives the error. – Artur Meinild Nov 16 '22 at 13:35