老师好,我有一台虚拟机 版本是 redhat 6.5,配置外网yum源,发现网易,阿里的yum源都失效了,请指导
来源:6-12 ad-hoc常用模块场景演练--代码部署
sunshinebao
2018-05-11
2回答
-
sunshinebao
提问者
2018-05-12
Last login: Fri May 11 16:17:43 2018 from 192.168.226.128
[root@localhost ~]# cat /etc/issue
Red Hat Enterprise Linux Server release 6.5 (Santiago)
Kernel \r on an \m[root@localhost ~]# git
-bash: git: command not found
[root@localhost ~]# yum install -y git
Loaded plugins: fastestmirror, product-id, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Loading mirror speeds from cached hostfile
http://vault.centos.org/centos/%246/os/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again
[root@localhost ~]# more /etc/yum.repos.d/
CentOS6-Base-163.repo CentOS6-Base-163.repobak local-base.repobak nginx.repo rhel-source.repobak
[root@localhost ~]# more /etc/yum.repos.d/CentOS6-Base-163.repo
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#[base]
name=CentOS-$6 - Base - 163.com
baseurl=http://vault.centos.org/centos/$6/os
#mirrorlist=http://mirrorlist.centos.org/?release=$6&arch=$basearch&repo=os
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6#released updates
[updates]
name=CentOS-$6 - Updates - 163.com
baseurl=http://vault.centos.org/centos/6/updates
#mirrorlist=http://mirrorlist.centos.org/?release=$6&arch=$basearch&repo=updates
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6#additional packages that may be useful
[extras]
name=CentOS-$6 - Extras - 163.com
baseurl=http://vault.centos.org/centos/6/extras
#mirrorlist=http://mirrorlist.centos.org/?release=$6&arch=$basearch&repo=extras
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$6 - Plus - 163.com
baseurl=http://vault.centos.org/centos/6/centosplus
#mirrorlist=http://mirrorlist.centos.org/?release=$6&arch=$basearch&repo=centosplus
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6#contrib - packages by Centos Users
[contrib]
name=CentOS-$6 - Contrib - 163.com
baseurl=http://vault.centos.org/centos/6/contrib
#mirrorlist=http://mirrorlist.centos.org/?release=$6&arch=$basearch&repo=contrib
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
[root@localhost ~]#00 -
Jeson
2018-05-12
你好,这个问题,你发下yum 安装时候具体的错误截图
00
相似问题