红旗7.0RC1版无法自动更新或提示路径有错的解决办法
4月16日,红旗放源,红旗7.0rc1版可以自动更新,很多朋友都已经更新了。但也有一些红友出现错误提示或无法更新。我当时也出现提示报告路径有错。后经向论坛管理员求助,得到解决办法,如下:
解决步骤:
1. 备份/etc/yum.repos.d下的“redflag.repo”文件。(以防意外)
2. 然后移除该文件
3. 在/etc/yum.repos.d下新建一个名为redflag.repo的空白文件
4. 复制以下内容到新建的空白文件中,保存
[base]
name=RedFlag 7.0 base – $basearch
mirrorlist=http://dtoem.redflag-linux.com/yum/dt70/mirrorlist.php?repo=redflag-base-7.0&arch=$basearch
enabled=1
#gpgcheck=1
#gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redflag file:///etc/pki/rpm-gpg/RPM-GPG-KEY[update]
name=RedFlag 7.0 update – $basearch
mirrorlist=http://dtoem.redflag-linux.com/yum/dt70/mirrorlist.php?repo=redflag-update-7.0&arch=$basearch
enabled=1
#gpgcheck=1
#gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redflag file:///etc/pki/rpm-gpg/RPM-GPG-KEY[extra]
name=RedFlag 7.0 extra – $basearch
mirrorlist=http://dtoem.redflag-linux.com/yum/dt70/mirrorlist.php?repo=redflag-extra-7.0&arch=$basearch
enabled=0
#gpgcheck=1
#gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redflag file:///etc/pki/rpm-gpg/RPM-GPG-KEY[development]
name=RedFlag 7.0 development – $basearch
failovermethod=priority
mirrorlist=http://dtoem.redflag-linux.com/yum/dt70/mirrorlist.php?repo=redflag-development-7.0&arch=$basearch
enabled=0
#gpgcheck=1
#gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redflag file:///etc/pki/rpm-gpg/RPM-GPG-KEY[redflag-debuginfo]
name=RedFlag 7.0 debuginfo – $basearch
failovermethod=priority
mirrorlist=http://dtoem.redflag-linux.com/yum/dt70/mirrorlist.php?repo=redflag-debuginfo-7.0&arch=$basearch
enabled=0
#gpgcheck=1
#gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redflag file:///etc/pki/rpm-gpg/RPM-GPG-KEY[redflag-source]
name=RedFlag 7.0 – Source
failovermethod=priority
mirrorlist=http://dtoem.redflag-linux.com/yum/dt70/mirrorlist.php?repo=redflag-sources-7.0&arch=$basearch
enabled=0
#gpgcheck=1
#gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redflag file:///etc/pki/rpm-gpg/RPM-GPG-KEY
(注:以上操作以root身份)
5. 然后打开终端。输入:yum update
6. 系统开始更新,等待……
7. 完成后,重启即可
本文地址:http://www.oshares.cn/231/a-way-to-resolve-auto-update-error-in-redflag-linux-dt7-rc1.html


最新评论