首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >CentOS 8旅-如何解决警告:装入失败/etc/yum.Storage.d/CentOS-AppStream.repo‘,跳过

CentOS 8旅-如何解决警告:装入失败/etc/yum.Storage.d/CentOS-AppStream.repo‘,跳过
EN

Server Fault用户
提问于 2022-02-08 11:48:10
回答 1查看 12K关注 0票数 0

在升级到流之前尝试更新我的CentOS Linux 8堆栈

CentOS Linux 8

代码语言:javascript
复制
[root@den yum.repos.d]# cat /etc/os-release
NAME="CentOS Linux"
VERSION="8 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="8"
PLATFORM_ID="platform:el8"
PRETTY_NAME="CentOS Linux 8 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:8"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-8"
CENTOS_MANTISBT_PROJECT_VERSION="8"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="8"
代码语言:javascript
复制
[root@den yum.repos.d]# uname -r
4.18.0-147.5.1.el8_1.x86_64

修复未能下载回购‘AppStream’的元数据

代码语言:javascript
复制
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*

下载元数据用于存储库“附加”

时发生的

错误百胜(

YUM

)

代码语言:javascript
复制
yum clean all
yum update -y
yum check-update
代码语言:javascript
复制
yum update -y

注意警告Warning: failed loading '/etc/yum.repos.d/CentOS-AppStream.repo', skipping.

代码语言:javascript
复制
Warning: failed loading '/etc/yum.repos.d/CentOS-AppStream.repo', skipping.
Repository extras is listed more than once in the configuration
CentOS-8 - Base 106 kB/s | 4.6 MB 00:44
CentOS-8 - Base 1.0 kB/s | 8.1 kB 00:08
Errors during downloading metadata for repository 'extras':
- Status code: 404 for https://vault.centos.org/centos/8/updates/x86_64/repodata/repomd.xml (IP: FILTERED)
Error: Failed to download metadata for repo 'extras': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried

DNF

代码语言:javascript
复制
rm -rf /var/cache/dnf
代码语言:javascript
复制
dnf update --refresh
代码语言:javascript
复制
Warning: failed loading '/etc/yum.repos.d/CentOS-AppStream.repo', skipping.
Repository extras is listed more than once in the configuration
CentOS-8 - Base                                                                                                                               10 kB/s | 3.9 kB     00:00
CentOS-8 - Base                                                                                                                               23 kB/s | 8.1 kB     00:00
Errors during downloading metadata for repository 'extras':
  - Status code: 404 for https://vault.centos.org/centos/8/updates/x86_64/repodata/repomd.xml (IP: FILTERED)
Error: Failed to download metadata for repo 'extras': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried

有关如何诊断和解决此问题的指示?

EN

回答 1

Server Fault用户

回答已采纳

发布于 2022-02-09 05:15:34

从CentOS 8切换到流8指令只需点击几下下载页面

代码语言:javascript
复制
# Converting from CentOS Linux 8 to CentOS Stream 8                               
dnf --disablerepo '*' --enablerepo extras swap centos-linux-repos centos-stream-repos
dnf distro-sync

升级事务可以在不完全更新的情况下工作。

不要启用保险库,它只用于存档。离开安装它会鼓励使用寿命终止软件的不良做法。

显然,额外的回购存活了8和那里有发布包的流(和SIGs)的生活。

票数 1
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/1093046

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档