当前位置:网站首页>Problems encountered in configuring Yum source
Problems encountered in configuring Yum source
2022-07-24 05:17:00 【Agricultural garden】
zero Configuration environment
centos
One Problems encountered
Question 1 : Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again
http://mirrors.aliyun.com/centos/6/os/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
http://mirrors.aliyuncs.com/centos/6/os/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 7 - "couldn't connect to host"
Trying other mirror.
http://mirrors.cloud.aliyuncs.com/centos/6/os/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.cloud.aliyuncs.com'"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again
resolvent :
cd /etc/yum.repos.d vi CentOS-Base.repo :%s/$releasever/7/g # Put... In the file $releasever All changed 7 yum clean all && yum makecache # Clear and cache
among $releasever It's about getting you centos Version number of , For example, I centos Is the version number 6.7, What we get is 6, But it's gone , So the whole situation is changed to 7 that will do .
Question two : Tips No more mirrors to try
Error Downloading Packages: binutils-2.27-44.base.el7.x86_64: failure: Packages/binutils-2.27-44.base.el7.x86_64.rpm from base: [Errno 256] No more mirrors to try.resolvent : Re Download
Question 3 :Public key for glibc-common-2.17-317.el7.x86_64.rpm is not installed
resolvent :
1 Import GPG keys:
#rpm -- import /etc/pki/rpm-gpg/PRM-GPG-KEY -*2 modify yum Source file , skip gpg check( Not recommended )
hold repo The file is set to gpgcheck =0
Use yum install Add a parameter to it -no gpgcheck
3 Download the latest signature ( recommend )
cd /etc/pki/rpm-gpg
wget http://mirrors.163.com/centos/RPM-KEY-CentOS-6
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6Question 4 :ERROR with rpm_check_debug vs depsolve
ERROR with rpm_check_debug vs depsolve:
/sbin/new-kernel-pkg is needed by (installed) kernel-2.6.32-431.el6.x86_64
/sbin/new-kernel-pkg is needed by (installed) kernel-2.6.32-431.el6.x86_64
You could try running: rpm -Va --nofiles --nodigest
Your transaction was saved, rerun it with: yum load-transaction /tmp/yum_save_tx-2020-12-24-08-20xUyYyL.yumtxresolvent : To be added
Two Download new CentOS-Base.repo To /etc/yum.repos.d/
Centos-6
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-6.repo
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-6.repoCentos-7
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repoCentos-8
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-8.repo
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-8.reposed -i -e '/mirrors.cloud.aliyuncs.com/d' -e '/mirrors.aliyuncs.com/d' /etc/yum.repos.d/CentOS-Base.repo3、 ... and yum Common operation commands of source
1 Clean cache :yum clean all
2 Generate new cache :yum makecache
3 perform yum to update :yum update
边栏推荐
- Support complex T4 file systems such as model group monitoring and real-time alarm. e
- Jetson device failed to download repository information use tips to record
- 智能指针、左值引用右值引用、lambda表达式
- C#表格数据去重
- Globally and locally consistent image completion paper notes
- 1、基于增量式生成遮挡与对抗抑制的行人再识别
- Embedded system transplantation [2] - Construction of cross development environment
- Introduction to 51 single chip microcomputer (dedicated to the most understandable article for beginners)
- MGRE and OSPF comprehensive experiment
- Illustration and text demonstrate the movable range of the applet movable view
猜你喜欢

The world's first large aerospace model came out. Wenxin's second supplement "Fuchun Mountain Residence map" is Baidu Pratt Whitney AI's perseverance

OSS文件上传
![Knowledge record of College Physics C in advance in summer [update]](/img/c4/76b669c3229a365a5e2567f7fb824e.png)
Knowledge record of College Physics C in advance in summer [update]

Learning pyramid context encoder network for high quality image painting paper notes

PPPoE网关模拟环境搭建

Smart pointer, lvalue reference, lvalue reference, lambda expression

Chapter V communication training

mapreduce概念

Blue Bridge Cup 31 day sprint 21 day (C language)

FRP intranet penetration service usage
随机推荐
Ben, reducing online importance is the same. Abnormal instance CP operation found
Jiang Xingqun, senior vice president of BOE: aiot technology enables enterprise IOT transformation
PXE efficient batch network installation
In his early 30s, he became a doctoral director of Fudan University. Chen Siming: I want to write both codes and poems
MapReduce介绍
View progress!!! RPM installation!!!
Hcip day 3 - mGRE experiment
Crazy God redis notes 09
Wang Qing, director of cloud infrastructure software research and development of Intel (China): Intel's technology development and prospects in cloud native
The world's first large aerospace model came out. Wenxin's second supplement "Fuchun Mountain Residence map" is Baidu Pratt Whitney AI's perseverance
PSO and mfpso
XML schema
PPPoE gateway simulation environment setup
利用a*启发式搜索解决迷宫寻路问题
[basic 7] - exceptions, capture and customize exceptions
The fourth job: about the usage of cat, grep, cut, sort, uniq, VIM, TR and other commands
ssm的整合
How to set up an internal wiki for your enterprise?
This article takes you to understand C string functions and memory functions in simple terms
Pointer learning diary (II)