昨天安装第五步的时候:开始是没有网,,,居然ping不通 网 ,服务器也ping不通,,,,,可能和我前几天删除了网络适配器有关,,把linux桥接对应的适配器给删了,,,
解决办法是打开虚拟网络编辑器 ,以管理员身份运行 删除vmnet0 再添加vmnet0 ,设置桥接方式,正常情况都会解决,,若还不行,,果断卸载VM,重装,,,避免时间浪费,
一切设置好后,再来不签名的安装glibc的调试包,,,结果报错!!
yum --nogpgcheck --enablerepo=debug install glibc-debuginfo
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
------------------------------------------------------------
经过研究发现,其实如果使用redhat的yum源需注册付费,费时费力,
解决办法一(未验证)删除RHEL 6.7 的RHN注册和订阅提示
------------------------------------------------------------------------------------
subscription-manager-1.14.10-1.el6.x86_64
subscription-manager-migration-1.14.10-1.el6.x86_64
subscription-manager-migration-data-2.0.22-1.el6.noarch
subscription-manager-firstboot-1.14.10-1.el6.x86_64
rhn-check-1.0.0.1-32.el6.noarch
rhn-setup-gnome-1.0.0.1-32.el6.noarch
rhn-setup-1.0.0.1-32.el6.noarch
rhn-client-tools-1.0.0.1-32.el6.noarch
rhnlib-2.5.22-15.el6.noarch
yum-rhn-plugin-0.9.1-58.el6.noarch
正在删除 : subscription-manager-migration-1.14.10-1.el6.x86_64 2/4
正在删除 : subscription-manager-gui-1.14.10-1.el6.x86_64 3/4
正在删除 : subscription-manager-1.14.10-1.el6.x86_64 4/4
正在删除 : rhn-check-1.0.0.1-32.el6.noarch 2/5
正在删除 : yum-rhn-plugin-0.9.1-58.el6.noarch 3/5
正在删除 : rhn-setup-1.0.0.1-32.el6.noarch 4/5
正在删除 : rhnsd-4.9.3-2.el6.x86_64 5/5
这里不用rpm -e来删除程序是因为在执行删除任务的过程中会出现由于程序的相互依赖关系而无法删除的错误。
第一步下载相关安装包
可以通过http://mirrors.163.com/centos下载,
第二步卸载Redhat自带的yum
#rpm -qa | grep yum | xargs rpm -e --nodeps
第三步安装下载的安装包
#rpm -ivh python-iniparse-0.3.1-2.1.el6.noarch.rpm
#rpm -ivh yum-metadata-parser-1.1.2-16.el6.x86_64.rpm
#rpm -ivh yum-3.2.29-40.el6.centos.noarch.rpm yum-plugin-fastestmirror-1.1.30-14.el6.noarch.rpm
第四步到http://mirrors.163.com的 centos帮助文档
中下载CentOS6-Base-163.repo文件,存放到/etc/yum.repos.d中
#wget http://mirrors.163.com/.help/CentOS6-Base-163.repo
第五步将Centos6-Base-163.repo中的$releasever改为Centos的版本号即可
为了防止错误,也可使用我已修改好的文件http://pan.baidu.com/s/1o6AZ23o
文件修改成如下即可:
# 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://mirrors.163.com/centos/6/os/$basearch/
#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://mirrors.163.com/centos/6/updates/$basearch/
#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://mirrors.163.com/centos/6/extras/$basearch/
#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://mirrors.163.com/centos/6/centosplus/$basearch/
#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://mirrors.163.com/centos/6/contrib/$basearch/
#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
第六步 yum clean all 清除原有缓存
第七步 yum makecache 获取yum列表
等待,大约三分钟后出现下面提示,表示yum更改完成:
Metadata Cache Created
----------------------------------------------------------------------------------------
其实也不用这么麻烦,
1.卸载redhat自带的yum组件 rpm -qa|grep yum|xargs rpm -e --nodeps