我是靠谱客的博主 坚定小刺猬,这篇文章主要介绍有效解决CentOS 8 AppStream报错以及makecache报错等问题解决CentOS8 AppStream报错以及makecache报错等问题,现在分享给大家,希望可以做个参考。
解决CentOS8 AppStream报错以及makecache报错等问题
使用CentOS 8 yum安装java11,遇到一系列问题。
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
Error:Failed yo synchronize cache for repo ‘AppStream’
1.备份
首先备份原有的repo文件
cd /etc/yum.repos.d && mkdir bak && mv *.repo ./bak
看到一些其他教程只修改CentOS-Base.repo
这个文件,会出现以下提示
2.换阿里云源
有些教程给出的换源网址已经不能再使用,建议查看官网
https://developer.aliyun.com/mirror/centos
2022年3月如下方式有效
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo
本来是想下载java jdk 11,换腾讯云后查看发现没有11的版本,所以使用的阿里云。
3.清理、生成缓存
yum clean all
yum makecache
4.安装java
yum install java-11-openjdk -y
即可成功安装
最后
以上就是坚定小刺猬最近收集整理的关于有效解决CentOS 8 AppStream报错以及makecache报错等问题解决CentOS8 AppStream报错以及makecache报错等问题的全部内容,更多相关有效解决CentOS内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复