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

Broken dnf.conf in latest rawhide image ? #109

Open
alexmge opened this issue Jun 1, 2023 · 2 comments
Open

Broken dnf.conf in latest rawhide image ? #109

alexmge opened this issue Jun 1, 2023 · 2 comments

Comments

@alexmge
Copy link

alexmge commented Jun 1, 2023

Looks like the dnf.conf file located in /etc/dnf/dnf.conf is broken since the latest update of the rawhide image. Whenever trying to install something using dnf install I get the following error : Config error: Parsing file "/etc/dnf/dnf.conf" failed: Parsing file '/etc/dnf/dnf.conf' failed: IniParser: Missing section header at line 1. Indeed, it seems like the file is missing at least the [main] tag at the first line.

dnf.conf in fedora:latest image:

[main]
gpgcheck=True
i>nstallonly_limit=3
clean_requirements_on_remove=True
best=False
skip_if_unavailable=True
tsflags=nodocs

dnf.conf in fedora:rawhide image:

tsflags=nodocs

@schlomo
Copy link

schlomo commented Jun 2, 2023

Maybe you can add a test for this problem to not happen again? Just starting the image and running yum in it shows the problem.

@flatcap
Copy link

flatcap commented Jun 8, 2023

It seems to be fixed, now. Thanks!

$ docker pull fedora:rawhide
rawhide: Pulling from library/fedora
83fb1a35b0ac: Pull complete 
Digest: sha256:78c8f111a898e239660961ba0815782a866e55c3b88e5478e8b423e0872bf0cb
Status: Downloaded newer image for fedora:rawhide
docker.io/library/fedora:rawhide
$ docker images -a
REPOSITORY   TAG       IMAGE ID       CREATED        SIZE
fedora       rawhide   4e956bfeffc9   28 hours ago   191MB
$ docker run --interactive --tty --entrypoint bash fedora:rawhide
[root@6c9c950f9049 /]# cat /etc/dnf/dnf.conf
# see `man dnf.conf` for defaults and possible options

[main]
gpgcheck=True
installonly_limit=3
clean_requirements_on_remove=True
best=False
skip_if_unavailable=True
tsflags=nodocs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants