新的一年已经开始,准备换工作。在此之前,我已经做好了升级准备,买了一台服务器。
[En]
The new year has begun, ready to change jobs. Before that, I was ready to upgrade and bought a server.
最近阿里在做活动,新人35块就可以买一台服务器一年,确实便宜。
不用说,购买服务器并直接将其烘干。
[En]
Needless to say, buy the server and dry it directly.
没想到,我在第一步就卡住了。当他开始打败魏伟杰的时候,他在部队里病逝了,真的很遗憾。
[En]
Unexpectedly, I got stuck in the first step. It was really “a pity that he fell ill and died in the army when he started to defeat Wei Weijie.”
安装软件并直接向我报告错误:
[En]
Install a software and report the error directly to me:
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
;
没有,新买的服务器什么都没碰,官网上也下载了软件安装包。
[En]
No, the newly bought server has not touched anything, and the software installation package is also downloaded on the official website.
没有办法,只能求助于无所不能的杜娘,寻找许多和我有同样问题的人,认为这样应该可以很快解决问题
[En]
There is no way, but to turn to the almighty du Niang, a search for many people with the same problems as me, thinking that this should be able to solve the problem quickly
是没再报原先的错误了,但是新的问题出现了
Error: Failed to synchronize cache for repo 'AppStream'
;
好吧,继续度娘
下载CentOS-Base.repo 到路径/etc/yum.repos.d/
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-8.repo
清除缓存
yum clean all
重建缓存
yum makecache
后来,我终于在某个角落的评论中看到了它。
[En]
Later, I finally saw it in the comments in some corner.
修改 $releasever 为$releasever-stream 可以解决
修改文件,再次运行并修复它。
[En]
Modify the file, run it again and fix it.
Original: https://www.cnblogs.com/Dewumu/p/15962383.html
Author: 德乌姆列特
Title: 关于Linux_CentOS8.0安装软件时遇到的坑
原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/524050/
转载文章受原作者版权保护。转载请注明原作者出处!