当前位置:网站首页>How to resolve errors in executing the yum makecache command
How to resolve errors in executing the yum makecache command
2022-07-22 18:51:00 【Xingwan road Mingyu Province】
Test environment :Docker Installed in Centos(docker pull centos)
Error description :”http://centos.mirror.iweb.ca/7/addons/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found”
Be careful : from docker Obtained from the official website centos The image is not installed by default wget command , We need to install it ourselves
To solve the process :
- install wget Installation package wget-1.14-15.el7.x86_64
Will download rpm Package copy to centos In the system , Copy command :
docker cp /home/download/wget-1.14-15.el7.x86_64.rpm container_name:/home/outdisk/
docker cp The command can copy files or folders between the local file system and the container , Standard usage :Usage: docker cp [OPTIONS] CONTAINER:SRC_PATH DEST_PATH|-
docker cp [OPTIONS] SRC_PATH|- CONTAINER:DEST_PATHCarry out orders , complete wget Command installation .
rpm -ivh wget-1.14-15.el7.x86_64.rpm
in addition , If there are already yum Source , You can go through yun Source command to install wget:
yum -y install wget
Get into yum Source configuration directory
cd /etc/yum.repos.d/
Carry out orders , obtain sohu Software sources
wget http://mirrors.sohu.com/help/CentOS-Base-sohu.repo
After downloading ,yum.repos.d There will be an extra file :CentOS-Base-sohu.repoUpdate play yum After source , Execute the following command to update yum To configure , Make the operation effective immediately
yum makecache
Be careful : In this step, the error message to be solved in this article will appear , terms of settlement :
Edit the file : /etc/yum.repos.dCentOS-Base-sohu.repo
The original text has such a paragraph
[addons]
name=CentOS-$releasever - Addons - sohu.com
mirrorlist=http://mirrorlist.centos.org/?release=releasever&arch= releasever&arch= basearch&repo=addons
baseurl=http://mirrors.sohu.com/centos/releasever/addons/ r e l e a s e v e r / a d d o n s / basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5It only needs a small change to solve ,addons–> os
[addons]
name=CentOS-$releasever - Addons - sohu.com
mirrorlist=http://mirrorlist.centos.org/?release=releasever&arch= releasever&arch= basearch&repo=addons
baseurl=http://mirrors.sohu.com/centos/releasever/os/ r e l e a s e v e r / o s / basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5Run again
yum makecache
, Without accident, the last order will be executed perfectly !
Resources for this article :
边栏推荐
- 03.单一职责原则(Simple Responsibility Pinciple)
- 6-2-深度优先搜索 地下迷宫探索 (30分)
- LeetCode 105. 从前序与中序遍历序列构造二叉树
- Recursively find the partial sum of simple alternating power series (15 points)
- ECSHOP prompts "the template file themesmobile/mo_paleng_mobile/index.dwt cannot be modified"?
- 周末和技术大咖们聚餐,聊到了软件测试行业的“金九银十”高峰【内卷之势已然形成】
- 1.针对QDate()的日期指向那边, 2.QT_VERSION的用法总结
- 【QT源代码复用】模拟QCompleter的弹窗方式
- Leetcode 2028. find out the missing observation data
- [STM32] STM32 SDIO SD card read / write test (IV) -- SD_ Transfer mode phase of test
猜你喜欢
[audio] analysis and summary of PCM audio data transmitted by I2S (I)
1.常量中有换行符Qt5-》vs的解决方案;2.同一份代码Qt和vs共同编译的问题和解决方案
ECSHOP configures wechat payment, and the wechat developer tool prompts "unbound web developer" when wechat payment pops up
1.QTableWidget的closable,2.pro/build_pass、member,3.QString&&
连接mysql8.0出现caching-sha2-password问题
六度空间
06. Liskov Substitution Principle (LSP)
[audio] transplant wm8978 audio codec driver based on STM32 I2S
LeetCode: 184. 部门工资最高的员工
Recursively find the partial sum of simple alternating power series (15 points)
随机推荐
Go concurrency mode: pipeline and cancellation
03. simple responsibility principle
数据湖简单记录
[Nordic] nrf52810 OTA upgrade (II) – how to use DFU
PTA search tree judgment
1.常量中有换行符Qt5-》vs的解决方案;2.同一份代码Qt和vs共同编译的问题和解决方案
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/mysqli.so'
06.里氏替换原则(Liskov Substitution Principle,LSP)
LeetCode 654. 最大二叉树
华为手机锁定应用
LeetCode:626. 换座位
1.QTableWidget插入按钮,灵活删除本行,一列显示行号
LeetCode 2039. 网络空闲的时刻
04. interface aggregation principle
1.雷点:mysql数据库转移到oracle,2.qt5.12.3 连接oracle 12c数据库
JSON序列化对象时,如何返回有空值的带属性名称json字符串?
Summary 20220118 (binary tree)
Summary 20220120
PCV、PIL、Pillow安装
总结20220208(kmp)