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


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

# 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 ###
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:// [Could not resolve
  • Curl error (6): Couldn’t resolve host name for ttps:// [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 [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!