当前位置:网站首页>Yum install XXX reports an error
Yum install XXX reports an error
2022-07-06 17:00:00 【Motorcycle loving program ape】
yum install xxx
Loaded plugins: fastestmirror
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock error was
14: curl#6 - “Could not resolve host: mirrorlist.centos.org; Temporary failure in name resolution”
One of the configured repositories failed (Unknown),
and yum doesn’t have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work “fix” this:
1. Contact the upstream for the repository and get them to fix the problem.
2. Reconfigure the baseurl/etc. for the repository, to point to a working
upstream. This is most often useful if you are using a newer
distribution release than is supported by the repository (and the
packages for the previous distribution release still work).
3. Disable the repository, so yum won't use it by default. Yum will then
just ignore the repository until you permanently enable it again or use
--enablerepo for temporary usage:
yum-config-manager --disable <repoid>
4. Configure the failing repository to be skipped, if it is unavailable.
Note that yum will try to contact the repo. when it runs most commands,
so will have to try and fail each time (and thus. yum will be be much
slower). If it is a very temporary problem though, this is often a nice
compromise:
yum-config-manager --save --setopt=<repoid>.skip_if_unavailable=true
Cannot find a valid baseurl for repo: base/7/x86_64
dns The problem of resolution , Treatment method :
vim /etc/resolv.conf Join in :
nameserver 8.8.8.8 The server IP
nameserver 8.8.4.4 gateway
search localdomain
边栏推荐
- ~75 background
- @RestController、@Controller
- LeetCode 1636. Sort the array in ascending order by frequency
- LeetCode 1545. Find the k-th bit in the nth binary string
- 服务器端渲染(SSR)和客户端渲染(CSR)的区别
- Mongodb在node中的使用
- Shell_ 03_ environment variable
- Eureka high availability
- The "advertising maniacs" in this group of programmers turned Tiktok advertisements into ar games
- koa中间件
猜你喜欢
redux使用说明
MySQL字符串函数
Which is more important for programming, practice or theory [there are some things recently, I don't have time to write an article, so I'll post an article on hydrology, and I'll fill in later]
字节跳动春招攻略:学长学姐笔经面经,还有出题人「锦囊」
LeetCode 1560. The sector with the most passes on the circular track
ByteDance 2022 school recruitment R & D advance approval publicity meeting, students' top 10 issues
Redis standalone startup
was unable to send heartbeat
TCP的三次握手和四次挥手
I'm "fixing movies" in ByteDance
随机推荐
Redis standalone startup
8086 内存
~85 transition
DS18B20數字溫度計系統設計
was unable to send heartbeat
Error: case label `15 'not within a switch statement
Solr new core
Activiti目录(一)重点介绍
Shell_ 03_ environment variable
控制转移指令
汇编课后作业
Shell_ 01_ data processing
Alibaba cloud server builds SVN version Library
LeetCode 1557. The minimum number of points that can reach all points
Description of project structure configuration of idea
LeetCode 1558. Get the minimum number of function calls of the target array
LeetCode1556. Thousand separated number
LeetCode 1552. Magnetic force between two balls
LeetCode 1447. Simplest fraction
The daemon thread starts redis and modifies the configuration file