Problem:
Apt update is not working anymore on Ubuntu20.04 servers. Every repo tells “W: Problem unlinking the file /var/lib/apt/lists/partial/_pulp_deb_Default%5fOrganization_Library_Affichage%5fUbuntu%5f20-04_custom_Produit%5fUbuntu%5f20%5f04__%253Fcomp%253Dmain%252Cmultiverse%252Crestricted%252Cuniverse%2526rel%253D_dists__main_i18n_Translation-en.lz4 - PrepareFiles (36: File name too long)”
then:
E: Failed to fetch katello:///pulp/deb/Default_Organization/Library/Affichage_Ubuntu_20-04/custom/Produit_Ubuntu_20_04//%3Fcomp%3Dmain%2Cmultiverse%2Crestricted%2Cuniverse%26rel%3D/dists/default/all/binary-amd64/Packages 404 Not Found
I have the same error with every repos (focal-security, apt.atix.de, packages microsoft 20.04, openvox8-ubuntu20.04, focal, docker_ubuntu2004, focal-backport)
It was working well previously
I tried resyncing the repos and publishing the content-view.
Expected outcome:
Foreman and Proxy versions:
Foreman 3.17
Katello 4.19
Pulpcore 3.85
pulp-deb 3.7
Foreman and Proxy plugin versions:
Distribution and version:
Ubuntu 20.04 - focal
Other relevant data:
My repos are configured as this in rhsm.sources with Suites: default Components: all
Those parameters are properly defined with the working distributions: Suites: jammy-updates Components: main multiverse restricted universe
I tried to edit the file manually with Suites: focal-security Components: main multiverse restricted universe, but I had the same errors
# cat /etc/apt/sources.list.d/rhsm.sources
name: focal
baseurl: https:///pulp/deb/Default_Organization/Library/Affichage_Ubuntu_20-04/custom/Produit_Ubuntu_20_04/focal/%3Fcomp%3Dmain%2Cmultiverse%2Crestricted%2Cuniverse%26rel%3Dfocal
enabled: 1
gpgcheck: 1
gpgkey: https:///katello/api/v2/repositories/2978/gpg_key_content
sslverify: 1
sslcacert: /etc/rhsm/ca/katello-server-ca.pem
sslclientkey: /etc/pki/entitlement/2855718853301657961-key.pem
sslclientcert: /etc/pki/entitlement/2855718853301657961.pem
metadata_expire: 1
enabled_metadata: 0
arches: amd64
Types: deb
URIs: katello://2855718853301657961@/pulp/deb/Default_Organization/Library/Affichage_Ubuntu_20-04/custom/Produit_Ubuntu_20_04/focal/%3Fcomp%3Dmain%2Cmultiverse%2Crestricted%2Cuniverse%26rel%3Dfocal
Suites: default
Components: all
Trusted: yes
Architectures: amd64
id: Default_Organization_Produit_Ubuntu_20_04_focal
I tried RFC: Transitioning Katello to "structured APT (deb) content"
But:
#foreman-rake katello:enable_structured_content_for_deb[true]
rake aborted!
Don’t know how to build task ‘katello:enable_structured_content_for_deb’ (See the list of available tasks with rake --tasks)
Did you mean? katello:refresh_alternate_content_sources
/usr/share/gems/gems/rake-13.0.3/exe/rake:27:in `<top (required)>’
(See full trace by running task with --trace)
I also saw someone having a similar problem in Ubuntu Suites and Components - #2 by quba42