How to add and sync a Deb Debian 10 buster repositories?

Problem:
How to add and sync a Deb Debian 10 buster repositories?

Expected outcome:
Deb Debian buster 10 repositories added and synced

Foreman and Proxy versions:
2.4.1

Foreman and Proxy plugin versions:
Foreman 2.4.1 and Katello 4.0.1.2

Distribution and version:
RHEL7.9 (Maipo)

Other relevant data:

Hello,

I am trying to add Deb Debian 10 buster repositories, of all the repo urls I tried none of them are working, also I am not seeing repo type Deb in the drop down list under create a repository, do I need to enable Debian support on the Katello, if so how to do it?

Best regards,
Balaji Sankaran

Hi @Balaji_Arun_Kumar_Sa

It should be enabled out of the box on 4.0. Did you do a fresh install, or did you upgrade from 3.18?

Are you seeing any tracebacks in /var/log/foreman/production.log or /var/log/messages?

Hi Cintrix84,

I upgraded from 3.18 and migrated the from Pulp 2 to 3, but I had to run “foreman-installer --katello-use-pulp-2-for-deb=false --katello-enable-deb=false”, as there were errors. Would it disable the deb on 4.0? if so how can I enable deb?

Best regards,
Balaji Sankaran

@Balaji_Arun_Kumar_Sa

Can you run this command for me and see if it completes ok:

foreman-installer --foreman-proxy-content-enable-deb true

1 Like

Yes, it completed successfully. But I am still not seeing the Deb in the drop down list for the repository type.

Can you check to see if it the value is set to true under content_types in /etc/foreman/plugins/katello.yaml

I ran “foreman-installer --katello-enable-deb true” and now I see the Deb is in the drop down list for repository type, will add a repo, sync and update you.

2 Likes

Yes, it is set to true.
By any chance would it be possible for you to provide me Debian 10 Buster repository URL, I tried some of the URLs from google, but they are not failing to sync.

Thanks in advance!

Best regards,
Balaji Sankaran

These are the main repo urls I have found online:

deb http://deb.debian.org/debian buster main
deb-src http://deb.debian.org/debian buster main

deb http://deb.debian.org/debian-security/ buster/updates main
deb-src http://deb.debian.org/debian-security/ buster/updates main

deb http://deb.debian.org/debian buster-updates main
deb-src http://deb.debian.org/debian buster-updates main
1 Like

Sorry for the delay in replaying.
Those are the ones I tried and they are failing., when I specify the url for syncing as
deb Index of /debian buster main and Index of /debian buster main, it is highlights the url box as invalid url, but when I specify Index of /debian/dists/buster it does not complain and that is failing to sync.

Sorry for the delay in replaying.
Those are the ones I tried and they are failing., when I specify the url for syncing as
deb http://deb.debian.org/debian buster main and http://deb.debian.org/debian buster main, it is highlights the url box as invalid url, but when I specify http://ftp.debian.org/debian/dists/buster it does not complain and that is failing to sync.

You have to enter the information into the respective fields of the repository configuration:

Upstream URL: http://deb.debian.org/debian
Release: buster
Components: main

Hello gvde and cintrix84,

Thank you so much for the help, it is working now.

Best regards,
Balaji Sankaran