Solved

Hosting an Internal Cumulus Linux Repository


I was following: https://support.cumulusnetworks.com/hc/en-us/articles/201787436-Hosting-an-Internal-Cumulus-Linux-Repository and it seems that repo is not fully mirrored and some packages are missing:

umulus@seamgmtswh12:~$ sudo apt-get update
[sudo] password for cumulus:
Hit http://10.220.1.161 CumulusLinux-3 InRelease
Hit http://10.220.1.161 CumulusLinux-3-security-updates InRelease
Hit http://10.220.1.161 CumulusLinux-3-updates InRelease
Err http://10.220.1.161 CumulusLinux-3/cumulus Sources
404 Not Found
Err http://10.220.1.161 CumulusLinux-3/upstream Sources
404 Not Found
Hit http://10.220.1.161 CumulusLinux-3/cumulus armel Packages
Hit http://10.220.1.161 CumulusLinux-3/upstream armel Packages
Err http://10.220.1.161 CumulusLinux-3-security-updates/cumulus Sources
404 Not Found
Err http://10.220.1.161 CumulusLinux-3-security-updates/upstream Sources
404 Not Found
Hit http://10.220.1.161 CumulusLinux-3-security-updates/cumulus armel Packages
Hit http://10.220.1.161 CumulusLinux-3-security-updates/upstream armel Packages
Err http://10.220.1.161 CumulusLinux-3-updates/cumulus Sources
404 Not Found
Err http://10.220.1.161 CumulusLinux-3-updates/upstream Sources
404 Not Found
Hit http://10.220.1.161 CumulusLinux-3-updates/cumulus armel Packages
Hit http://10.220.1.161 CumulusLinux-3-updates/upstream armel Packages
Ign http://10.220.1.161 CumulusLinux-3/cumulus Translation-en
Ign http://10.220.1.161 CumulusLinux-3/upstream Translation-en
Ign http://10.220.1.161 CumulusLinux-3-security-updates/cumulus Translation-en
Ign http://10.220.1.161 CumulusLinux-3-security-updates/upstream Translation-en
Ign http://10.220.1.161 CumulusLinux-3-updates/cumulus Translation-en
Ign http://10.220.1.161 CumulusLinux-3-updates/upstream Translation-en
W: Failed to fetch http://10.220.1.161/dists/CumulusLinux-3/cumulus/source/Sources 404 Not Found

W: Failed to fetch http://10.220.1.161/dists/CumulusLinux-3/upstream/source/Sources 404 Not Found

W: Failed to fetch http://10.220.1.161/dists/CumulusLinux-3-security-updates/cumulus/source/Sources 404 Not Found

W: Failed to fetch http://10.220.1.161/dists/CumulusLinux-3-security-updates/upstream/source/Sources 404 Not Found

W: Failed to fetch http://10.220.1.161/dists/CumulusLinux-3-updates/cumulus/source/Sources 404 Not Found

W: Failed to fetch http://10.220.1.161/dists/CumulusLinux-3-updates/upstream/source/Sources 404 Not Found

Files/folders are really missing on the server.

Any idea how to fix that?

Thanks,

Ondrej
icon

Best answer by smccroskey 13 July 2018, 20:38

Hi Ondrej,

The docs you linked have the source entries commented out in the mirror.list file:

code:
deb http://repo3.cumulusnetworks.com/repo CumulusLinux-3 cumulus upstream
#deb-src http://repo3.cumulusnetworks.com/repo CumulusLinux-3 cumulus upstream

deb http://repo3.cumulusnetworks.com/repo CumulusLinux-3-security-updates cumulus upstream
#deb-src http://repo3.cumulusnetworks.com/repo CumulusLinux-3-security-updates cumulus upstream

So if you used those verbatim you end up with a mirror with no source packages (and thus no index files for source packages, which is what's failing to download here).

You have two paths forward:
  • If you aren't interested in mirroring the source packages (most people probably aren't, which is why the docs are this way), you can comment out the deb-src entries in your sources.list which reference your mirror, and apt will stop looking for these files on update.
  • If you are interested in mirroring them, you'll have to uncomment the deb-src entries in mirror.list and re-run apt-mirror.
Thanks for working with the repo!

-Silas

View original

2 replies

Hi Ondrej,

The docs you linked have the source entries commented out in the mirror.list file:
code:
deb http://repo3.cumulusnetworks.com/repo CumulusLinux-3 cumulus upstream
#deb-src http://repo3.cumulusnetworks.com/repo CumulusLinux-3 cumulus upstream

deb http://repo3.cumulusnetworks.com/repo CumulusLinux-3-security-updates cumulus upstream
#deb-src http://repo3.cumulusnetworks.com/repo CumulusLinux-3-security-updates cumulus upstream

So if you used those verbatim you end up with a mirror with no source packages (and thus no index files for source packages, which is what's failing to download here).

You have two paths forward:
  • If you aren't interested in mirroring the source packages (most people probably aren't, which is why the docs are this way), you can comment out the deb-src entries in your sources.list which reference your mirror, and apt will stop looking for these files on update.
  • If you are interested in mirroring them, you'll have to uncomment the deb-src entries in mirror.list and re-run apt-mirror.
Thanks for working with the repo!

-Silas
Hi Silas,

Thank you very much.

It fixed my issue.

Ondrej

Reply