Can't update fedora 36!

I received this message while trying to update fedora 36 :

Config error: Parsing file “/etc/dnf/dnf.conf” failed: Parsing file ‘/etc/dnf/dnf.conf’ failed: IniParser: Missing section header at line 1

Can you paste the content of /etc/dnf/dnf.conf?

1 Like

GNU nano 6.0 /etc/dnf/dnf.conf
^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^>

QUBES END

Well, if that’s really what you have then it’s not going to work.

Replace the file content with this:

# see `man dnf.conf` for defaults and possible options

[main]
gpgcheck=1
installonly_limit=3
clean_requirements_on_remove=True
best=False
skip_if_unavailable=True
### QUBES BEGIN ###
# This part of configuration, until QUBES END, is automatically generated by
# /usr/lib/qubes/update-proxy-configs. All changes here will be overriden.
# If you want to override any option set here, set it again to desired value,
# below this section

### QUBES END ###
deltarpm=False
1 Like

Because I lack technical expertise, what precise text should I copy?

Or I should copy all the text ?!

You need all of it. Just copy everything and paste it into the file.

[user@fedora-36 ~]$ sudo dnf update
Fedora 36 - x86_64 0.0 B/s | 0 B 00:00
Errors during downloading metadata for repository ‘fedora’:

  • Curl error (6): Couldn’t resolve host name for ttps://mirrors.fedoraproject.org/metalink?repo=fedora-36&arch=x86_64&countme=3 [Could not resolve host:mirrors.fedoraproject.org
  • Curl error (6): Couldn’t resolve host name for ttps://mirrors.fedoraproject.org/metalink?repo=fedora-36&arch=x86_64 [Could not resolve host mirrors. fedoraproject.o rg]
    Error: Failed to download metadata for repo ‘fedora’: Cannot prepare internal mirrorlist: Curl error (6): Couldn’t resolve host name for https://mirrors.fedoraproject.org/metalink?repo=fedora-36&arch=x86_64 [Could not resolve host: mirrors.fedoraproject.or g]
    [user@fedora-36 ~]$

Your template seems messed up for some reason. I think you have no other choice than installing it again.

1 Like

My fedora template updated successfully .

But I Can’t connect to network while browsing from my VM using Firefox

How I can reinstall fedora 36!