中標麒麟7.0默認軟件源配置是錯誤的,所以我們需要進行修改。流程如下:
1、進入源路徑 : cd /etc/yum.repos.d/
2、刪除所有原有源 : sudo rm -f *
3、查看當前路徑下是否還有文件 : ls
4、創建一個新的源文件 :sudo vim neokylin.repo
配置參數:
[neokylin] name= NeoKylin 7.0 baseurl=http://download.cs2c.com.cn/neokylin/desktop/releases/7.0/x86_64/zx/os/ enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-neokylin-$basearch [neokylin-32] name= NeoKylin 7.0 32-bit baseurl=http://download.cs2c.com.cn/neokylin/desktop/releases/7.0/i386/os/ enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-neokylin-i386
5. 查看配置信息: cat neokylin.repo
6. 檢查配置文件是否正確:yum repolist
7. 更新源緩存 : yum list ; yum clean all ; yum makecache
8. 創建更新源文件:sudo vim sneokylin-updates.repo
9. 配置參數:
[neokylin-updates] name= NeoKylin 7.0 Updates baseurl=http://download.cs2c.com.cn/neokylin/desktop/updates/7.0/x86_64/zx/os/ enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-neokylin-$basearch [neokylin-updates-32] name= NeoKylin 7.0 Updates 32-bit baseurl=http://download.cs2c.com.cn/neokylin/desktop/updates/7.0/i386/os/ enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-neokylin-i386
10. 查看配置信息: cat neokylin.repo
11. 更新源信息:yum -y update --skip-broken