DNF repair

Issues related to applications and software problems and general support
Post Reply
secetspaces
Posts: 10
Joined: 2020/11/13 12:15:09

DNF repair

Post by secetspaces » 2020/11/18 10:42:09

I stupidly deleted etc/dnf/vars/appstream
and get the following Error:
Failed to download metadata for repo 'appstream':
Cannot prepare internal mirrorlist: No URLs in mirrorlist

Can someone please copy and post the correct name and content of that file from their CentOS 8
or CentOS Stream system?

sml
Posts: 116
Joined: 2020/01/17 09:01:44

Re: DNF repair

Post by sml » 2020/11/19 16:33:42

Are you sure the variable you're looking for is named appstream? Look it up in /etc/yum.repos.d/CentOS-AppStream.repo
The variables there start with dollar sign ($). $releasever and $basearch are always defined. All the others are needed to be specified in /etc/dnf/vars.

If the variable you actually mean is stream, then its value should be 8-stream.

Post Reply

Return to “CentOS 8 - General Support”