[CentOS] CentOS Stream 8 dnf fails

Mon Feb 14 12:36:17 UTC 2022
Bill Gee <bgee at campercaver.net>

Hmmmm.....  I thought I was already on stream, but apparently not.  /etc/redhat-release says it is not stream.

I looked for a method to upgrade.  Found some notes at techrepublic.  The first step is to install centos-release-stream, which fails.  So what is the method for doing an upgrade?

Bare metal reinstall is NOT an option.  If that is the only way to do it, then I will just let this system run for a few years with no updates.

========
Bill Gee


On Monday, February 14, 2022 6:15:52 AM CST Pete Biggs wrote:
> On Mon, 2022-02-14 at 05:55 -0600, Bill Gee wrote:
> > Every time I run dnf, I get this:
> > 
> > =========
> > [root at vmhost2 ~]# dnf upgrade 
> > CentOS Linux 8 - AppStream                                                               70  B/s |  38  B     00:00     
> > Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist
> > =========
> > 
> > I tried disabling the repository, but that only gives me exactly the
> > same error for the baseos repository.  I doubt it is a problem in the
> > .repo files.  Something else is going on.
> > 
> > Ping to mirrorlist.centos.org works on both ipv4 and ipv6, so I know
> > that both name resolution and network connectivity are working.
> > 
> That's because you are still on CentOS 8 not 8-stream.  The C8
> repositories are now empty. (The equivalent repo for 8-stream is
> labelled "CentOS Stream 8 - AppStream".)
> 
> To move to 8 Stream, see https://centos.org/download/
> 
> You will also probably soon get some recommendations to not move to 8
> stream and to use one of the other clone distros ...
> 
> P.
> 
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> https://lists.centos.org/mailman/listinfo/centos
>