chunqq牛人大佬:

具体过程:

# yum clean all                                                 Repository AppStream is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository PowerTools is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
43 files removed
# yum install -y git                                            Repository AppStream is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository PowerTools is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
CentOS-8 – AppStream                            159 kB/s | 5.8 MB     00:37   
CentOS-8 – Base – mirrors.aliyun.com            1.5 MB/s | 2.2 MB     00:01   
CentOS-8 – Extras – mirrors.aliyun.com          6.0 kB/s | 8.6 kB     00:01   
Docker CE Stable – x86_64                        11 kB/s |  25 kB     00:02   
Extra Packages for Enterprise Linux Modular 8 – 219 kB/s |  98 kB     00:00   
Extra Packages for Enterprise Linux 8 – x86_64  1.8 MB/s | 8.4 MB     00:04   
Node.js Packages for Enterprise Linux 8 – x86_6  82  B/s | 162  B     00:01   
Errors during downloading metadata for repository ‘nodesource’:
  – Status code: 404 for https://rpm.nodesource.com/pub_6.x/el/8/x86_64/repodata/repomd.xml (IP: 23.32.236.168)
Error: Failed to download metadata for repo ‘nodesource’: Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
#

CentOS-Base.repo全部内容:

# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client.  You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#


name=CentOS-$releasever – Base – mirrors.aliyun.com
failovermethod=priority
baseurl=https://mirrors.aliyun.com/centos/8/BaseOS/$basearch/os/
gpgcheck=1
gpgkey=https://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-Official

#additional packages that may be useful

name=CentOS-$releasever – Extras – mirrors.aliyun.com
failovermethod=priority
baseurl=https://mirrors.aliyun.com/centos/8/extras/$basearch/os/
gpgcheck=1
gpgkey=https://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-Official

#additional packages that extend functionality of existing packages

name=CentOS-$releasever – Plus – mirrors.aliyun.com
failovermethod=priority
baseurl=https://mirrors.aliyun.com/centos/8/centosplus/$basearch/os/
gpgcheck=1
enabled=0
gpgkey=https://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-Official


name=CentOS-$releasever – PowerTools – mirrors.aliyun.com
failovermethod=priority
baseurl=https://mirrors.aliyun.com/centos/$releasever/PowerTools/$basearch/os/
gpgcheck=1
enabled=0
gpgkey=https://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-Official


name=CentOS-$releasever – AppStream – mirrors.aliyun.com
failovermethod=priority
baseurl=https://mirrors.aliyun.com/centos/$releasever/AppStream/$basearch/os/
gpgcheck=1
gpgkey=https://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-Official

源换了阿里云了,yum无论执行啥(install ***,makecache,update)都一样的报错

他报404的repo在/etc/yum.repos.d/nodesource-el8.repo里,应该换成啥?

rooney牛人大佬:
把那个repo文件删掉吧

Floppy牛人大佬:
操作系统解决99%的问题

Ais2019牛人大佬:
不是dnf吗…

Ais2019牛人大佬:
把yum换成dnf试试…

chunqq牛人大佬:


把yum换成dnf试试…

一样的报错。

ghostloc牛人大佬:
AppStream 等字段 有对应的 .repo 文件 重复了