Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

config-manager addrepo fails to add docker repository config #1603

Closed
liemeldert opened this issue Jul 31, 2024 · 2 comments · Fixed by #1671
Closed

config-manager addrepo fails to add docker repository config #1603

liemeldert opened this issue Jul 31, 2024 · 2 comments · Fixed by #1671
Assignees
Labels
Priority: HIGH Triaged Someone on the DNF 5 team has read the issue and determined the next steps to take
Milestone

Comments

@liemeldert
Copy link

Following https://docs.docker.com/engine/install/fedora/ and updating commands to DNF5 causes this error when adding their repository:

❯ sudo dnf config-manager addrepo --from-repofile=https://download.docker.com/linux/fedora/docker-ce.repo

https://download.docker.com/linux/fedora/docker-ce.repo                                                 100% |  20.6 KiB/s |   1.9 KiB |  00m00s
Error in added repository configuration file. Cannot set repository option "#1= ": Option "#1" not found

Importing the repo from dnf4 and then installing with dnf5 works without issues.

I'm facing this issue on Ultramarine (Fedora) 40, dnf5 version 5.1.17, config-manager 0.1.0, kernel 6.9.11-200.fc40.x86_64.

@jan-kolarik jan-kolarik added Priority: HIGH Triaged Someone on the DNF 5 team has read the issue and determined the next steps to take labels Aug 6, 2024
@jan-kolarik jan-kolarik added this to the Fedora 41 milestone Aug 6, 2024
@github-project-automation github-project-automation bot moved this to Backlog in DNF team Aug 6, 2024
@jan-kolarik
Copy link
Member

Hi, thanks for the report and simple reproducer. I confirm the issue persist with the latest upstream dnf5 version. With dnf4 config-manager it works correctly.

@thaJeztah
Copy link

👋 hi, docker maintainer here; I was just working on updating some scripts to work with dnf5, and ran into this issue, and indeed discovered that the problem was with the empty lines; looks like you beat me to it here 😂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: HIGH Triaged Someone on the DNF 5 team has read the issue and determined the next steps to take
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

4 participants