fedora-cloud / docker-brew-fedora

MIT License
176 stars 46 forks source link

Broken dnf.conf in latest rawhide image ? #109

Open alexmge opened 1 year ago

alexmge commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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