跳到主內容

CentOS 7 yum 更新出現錯誤

BUBU 在更新 CentOS 7 時發現系統上有報錯誤系統,以下是解決方式

 

更新系統


執行 「 yum update 」更新系統出現下面的錯誤訊息

[root@CentOS7-phpIPAM ~]# yum update 
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
epel/x86_64/metalink                                                                                                                             | 7.8 kB  00:00:00     
 * base: free.nchc.org.tw
 * epel: fedora.cs.nctu.edu.tw
 * extras: free.nchc.org.tw
 * updates: free.nchc.org.tw
base                                                                                                                                             | 3.6 kB  00:00:00     
epel                                                                                                                                             | 5.4 kB  00:00:00     
extras                                                                                                                                           | 3.4 kB  00:00:00     
updates                                                                                                                                          | 3.4 kB  00:00:00     
(1/2): epel/x86_64/updateinfo                                                                                                                    | 993 kB  00:00:00     
epel/x86_64/primary_db         FAILED                                          
http://mirror01.idc.hinet.net/EPEL/7/x86_64/repodata/b1517ca85ea700857c0226b7fe4584cc248c92e6289881e6306f8b78c72638e8-primary.sqlite.bz2: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
To address this issue please refer to the below wiki article 

https://wiki.centos.org/yum-errors

If above article doesn't help to resolve this issue please use https://bugs.centos.org/.

(2/2): epel/x86_64/primary_db                                                                                                                    | 6.8 MB  00:00:00     
No packages marked for update

發現在更新某個套件造成訊息如下,那我試用這一段的網址去連線結果也是一樣出現錯誤

http://mirror01.idc.hinet.net/EPEL/7/x86_64/repodata/b1517ca85ea700857c0226b7fe4584cc248c92e6289881e6306f8b78c72638e8-primary.sqlite.bz2: [Errno 14] HTTP Error 404 - Not Found

 

解決方式


BUBU 針對此問去所查到的解決方式如下,只要下這兩個指令就可以正常更新了

yum clean all
yum update

執行完結果如下:

[root@CentOS7-phpIPAM ~]# yum clean all
Loaded plugins: fastestmirror
Cleaning repos: base epel extras updates
Cleaning up list of fastest mirrors
[root@CentOS7-phpIPAM ~]# sudo yum update
Loaded plugins: fastestmirror
Determining fastest mirrors
epel/x86_64/metalink                                          | 7.8 kB  00:00:00     
 * base: ftp.twaren.net
 * epel: fedora.cs.nctu.edu.tw
 * extras: ftp.twaren.net
 * updates: ftp.twaren.net
base                                                          | 3.6 kB  00:00:00     
epel                                                          | 5.4 kB  00:00:00     
extras                                                        | 3.4 kB  00:00:00     
updates                                                       | 3.4 kB  00:00:00     
(1/7): base/7/x86_64/group_gz                                 | 166 kB  00:00:00     
(2/7): base/7/x86_64/primary_db                               | 6.0 MB  00:00:00     
(3/7): epel/x86_64/group_gz                                   |  88 kB  00:00:00     
(4/7): epel/x86_64/updateinfo                                 | 993 kB  00:00:00     
(5/7): extras/7/x86_64/primary_db                             | 215 kB  00:00:00     
(6/7): updates/7/x86_64/primary_db                            | 7.4 MB  00:00:00     
(7/7): epel/x86_64/primary_db                                 | 6.8 MB  00:00:00     
No packages marked for update

 

補充狀況


如果更新還有問題的話,請再下這一套指令

yum clean all
yum makecache
yum update

更新前狀況

[root@CentOS7-Laravel ~]# yum update 
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
epel/x86_64/metalink                                                                                                                             | 7.4 kB  00:00:00     
 * base: ftp.stu.edu.tw
 * epel: fedora.cs.nctu.edu.tw
 * extras: ftp.stu.edu.tw
 * remi-php73: mirror.xeonbd.com
 * remi-safe: mirror.xeonbd.com
 * updates: ftp.stu.edu.tw
base                                                                                                                                             | 3.6 kB  00:00:00     
epel                                                                                                                                             | 4.7 kB  00:00:00     
http://fedora.cs.nctu.edu.tw/epel/7/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml does not match metalink for epel
Trying other mirror.
epel                                                                                                                                             | 5.4 kB  00:00:00     
extras                                                                                                                                           | 3.4 kB  00:00:00     
mariadb                                                                                                                                          | 2.9 kB  00:00:00     
remi-php73                                                                                                                                       | 3.0 kB  00:00:00     
remi-safe                                                                                                                                        | 3.0 kB  00:00:00     
updates                                                                                                                                          | 3.4 kB  00:00:00     
epel/x86_64/updateinfo         FAILED                                          
http://fedora.cs.nctu.edu.tw/epel/7/x86_64/repodata/fc6c78ad7eb5af33ffb35b3102c8dd67bc1f5e10e9cf54187382ca56cad68741-updateinfo.xml.bz2: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
To address this issue please refer to the below wiki article 

https://wiki.centos.org/yum-errors

If above article doesn't help to resolve this issue please use https://bugs.centos.org/.

epel/x86_64/primary_db         FAILED                                          
http://fedora.cs.nctu.edu.tw/epel/7/x86_64/repodata/8f8a15417b2ac82dff0cbef4e7d9df4dd34a093d632ffeb370f07c13e53242e8-primary.sqlite.bz2: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
(1/4): remi-php73/primary_db                                                                                                                     | 202 kB  00:00:00     
(2/4): remi-safe/primary_db                                                                                                                      | 1.6 MB  00:00:00     
(3/4): epel/x86_64/updateinfo                                                                                                                    | 998 kB  00:00:03     
(4/4): epel/x86_64/primary_db                                                                                                                    | 6.8 MB  00:00:02     
No packages marked for update

執行過的狀況

[root@CentOS7-Laravel ~]# yum clean all
yum updateLoaded plugins: fastestmirror
Cleaning repos: base epel extras mariadb remi-php73 remi-safe updates
Cleaning up list of fastest mirrors
Other repos take up 1.0 M of disk space (use --verbose for details)
[root@CentOS7-Laravel ~]# yum update
Loaded plugins: fastestmirror
Determining fastest mirrors
epel/x86_64/metalink                                                                                                                             | 7.4 kB  00:00:00     
 * base: ftp.twaren.net
 * epel: fedora.cs.nctu.edu.tw
 * extras: ftp.twaren.net
 * remi-php73: ftp.riken.jp
 * remi-safe: ftp.riken.jp
 * updates: ftp.twaren.net
base                                                                                                                                             | 3.6 kB  00:00:00     
epel                                                                                                                                             | 4.7 kB  00:00:00     
http://fedora.cs.nctu.edu.tw/epel/7/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml does not match metalink for epel
Trying other mirror.
epel                                                                                                                                             | 5.4 kB  00:00:00     
extras                                                                                                                                           | 3.4 kB  00:00:00     
mariadb                                                                                                                                          | 2.9 kB  00:00:00     
remi-php73                                                                                                                                       | 3.0 kB  00:00:00     
remi-safe                                                                                                                                        | 3.0 kB  00:00:00     
updates                                                                                                                                          | 3.4 kB  00:00:00     
(1/10): base/7/x86_64/group_gz                                                                                                                   | 166 kB  00:00:00     
(2/10): epel/x86_64/group_gz                                                                                                                     |  88 kB  00:00:00     
epel/x86_64/updateinfo         FAILED                                          
http://fedora.cs.nctu.edu.tw/epel/7/x86_64/repodata/fc6c78ad7eb5af33ffb35b3102c8dd67bc1f5e10e9cf54187382ca56cad68741-updateinfo.xml.bz2: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
To address this issue please refer to the below wiki article 

https://wiki.centos.org/yum-errors

If above article doesn't help to resolve this issue please use https://bugs.centos.org/.

epel/x86_64/primary_db         FAILED                                          
http://fedora.cs.nctu.edu.tw/epel/7/x86_64/repodata/8f8a15417b2ac82dff0cbef4e7d9df4dd34a093d632ffeb370f07c13e53242e8-primary.sqlite.bz2: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
(3/10): extras/7/x86_64/primary_db                                                                                                               | 215 kB  00:00:00     
(4/10): base/7/x86_64/primary_db                                                                                                                 | 6.0 MB  00:00:00     
(5/10): updates/7/x86_64/primary_db                                                                                                              | 7.4 MB  00:00:00     
(6/10): remi-php73/primary_db                                                                                                                    | 202 kB  00:00:00     
(7/10): remi-safe/primary_db                                                                                                                     | 1.6 MB  00:00:00     
(8/10): mariadb/primary_db                                                                                                                       |  52 kB  00:00:01     
(9/10): epel/x86_64/updateinfo                                                                                                                   | 998 kB  00:00:03     
(10/10): epel/x86_64/primary_db                                                                                                                  | 6.8 MB  00:00:01     
No packages marked for update

再次執行修正指令狀況如下

[root@CentOS7-Laravel ~]# yum clean all
Loaded plugins: fastestmirror
Cleaning repos: base epel extras mariadb remi-php73 remi-safe updates
Cleaning up list of fastest mirrors
Other repos take up 1.0 M of disk space (use --verbose for details)
[root@CentOS7-Laravel ~]# yum makecache
Loaded plugins: fastestmirror
Determining fastest mirrors
epel/x86_64/metalink                                                                                                                             | 7.4 kB  00:00:00     
 * base: ftp.tc.edu.tw
 * epel: fedora.cs.nctu.edu.tw
 * extras: ftp.tc.edu.tw
 * remi-php73: mirror.xeonbd.com
 * remi-safe: mirror.xeonbd.com
 * updates: ftp.tc.edu.tw
base                                                                                                                                             | 3.6 kB  00:00:00     
epel                                                                                                                                             | 4.7 kB  00:00:00     
http://fedora.cs.nctu.edu.tw/epel/7/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml does not match metalink for epel
Trying other mirror.
epel                                                                                                                                             | 5.4 kB  00:00:00     
extras                                                                                                                                           | 3.4 kB  00:00:00     
mariadb                                                                                                                                          | 2.9 kB  00:00:00     
remi-php73                                                                                                                                       | 3.0 kB  00:00:00     
remi-safe                                                                                                                                        | 3.0 kB  00:00:00     
updates                                                                                                                                          | 3.4 kB  00:00:00     
(1/28): base/7/x86_64/group_gz                                                                                                                   | 166 kB  00:00:00     
(2/28): base/7/x86_64/filelists_db                                                                                                               | 7.1 MB  00:00:00     
(3/28): base/7/x86_64/primary_db                                                                                                                 | 6.0 MB  00:00:00     
(4/28): base/7/x86_64/other_db                                                                                                                   | 2.6 MB  00:00:00     
(5/28): epel/x86_64/group_gz                                                                                                                     |  88 kB  00:00:00     
epel/x86_64/filelists_db       FAILED                                          
http://fedora.cs.nctu.edu.tw/epel/7/x86_64/repodata/7e223d5e4213bacc5e0e2c66531072860d9eb712ddf06e68769f0d4937e386e8-filelists.sqlite.bz2: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
To address this issue please refer to the below wiki article 

https://wiki.centos.org/yum-errors

If above article doesn't help to resolve this issue please use https://bugs.centos.org/.

epel/x86_64/updateinfo         FAILED                                          
http://fedora.cs.nctu.edu.tw/epel/7/x86_64/repodata/fc6c78ad7eb5af33ffb35b3102c8dd67bc1f5e10e9cf54187382ca56cad68741-updateinfo.xml.bz2: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
epel/x86_64/prestodelta        FAILED                                          
http://fedora.cs.nctu.edu.tw/epel/7/x86_64/repodata/a1c67f8d2fb5506cb91713f8718e3abe8da0e3de3c0f256750e248577b44ac10-prestodelta.xml.gz: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
epel/x86_64/primary_db         FAILED                                          
http://fedora.cs.nctu.edu.tw/epel/7/x86_64/repodata/8f8a15417b2ac82dff0cbef4e7d9df4dd34a093d632ffeb370f07c13e53242e8-primary.sqlite.bz2: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
epel/x86_64/other_db           FAILED                                          
http://fedora.cs.nctu.edu.tw/epel/7/x86_64/repodata/ec702508d62183cca489765769bff016405dbb3575030d2634131c4966d12ed7-other.sqlite.bz2: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
(6/28): extras/7/x86_64/filelists_db                                                                                                             | 249 kB  00:00:00     
epel/x86_64/updateinfo_zck     FAILED                                          
http://fedora.cs.nctu.edu.tw/epel/7/x86_64/repodata/43a82318a95142f4939989ccf2be8391e7a04f9a8c492889cf660f763d6ee752-updateinfo.xml.zck: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
(7/28): extras/7/x86_64/primary_db                                                                                                               | 215 kB  00:00:00     
(8/28): extras/7/x86_64/other_db                                                                                                                 | 131 kB  00:00:00     
(9/28): extras/7/x86_64/prestodelta                                                                                                              |  73 kB  00:00:00     
(10/28): mariadb/primary_db                                                                                                                      |  52 kB  00:00:00     
(11/28): mariadb/other_db                                                                                                                        |  10 kB  00:00:00     
(12/28): remi-php73/filelists_db                                                                                                                 | 118 kB  00:00:00     
(13/28): remi-php73/primary_db                                                                                                                   | 202 kB  00:00:00     
(14/28): remi-php73/other_db                                                                                                                     |  38 kB  00:00:00     
(15/28): mariadb/filelists_db                                                                                                                    | 308 kB  00:00:01     
(16/28): remi-safe/filelists_db                                                                                                                  | 1.2 MB  00:00:00     
(17/28): remi-safe/primary_db                                                                                                                    | 1.6 MB  00:00:00     
(18/28): updates/7/x86_64/prestodelta                                                                                                            | 945 kB  00:00:00     
(19/28): remi-safe/other_db                                                                                                                      | 429 kB  00:00:00     
(20/28): updates/7/x86_64/primary_db                                                                                                             | 7.4 MB  00:00:00     
(21/28): updates/7/x86_64/other_db                                                                                                               | 764 kB  00:00:00     
(22/28): updates/7/x86_64/filelists_db                                                                                                           | 5.2 MB  00:00:00     
(23/28): epel/x86_64/filelists_db                                                                                                                |  12 MB  00:00:05     
(24/28): epel/x86_64/updateinfo                                                                                                                  | 998 kB  00:00:00     
(25/28): epel/x86_64/prestodelta                                                                                                                 |  10 kB  00:00:00     
(26/28): epel/x86_64/primary_db                                                                                                                  | 6.8 MB  00:00:00     
(27/28): epel/x86_64/other_db                                                                                                                    | 3.3 MB  00:00:00     
(28/28): epel/x86_64/updateinfo_zck                                                                                                              | 1.5 MB  00:00:00     
Metadata Cache Created
[root@CentOS7-Laravel ~]# yum update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: ftp.tc.edu.tw
 * epel: fedora.cs.nctu.edu.tw
 * extras: ftp.tc.edu.tw
 * remi-php73: mirror.xeonbd.com
 * remi-safe: mirror.xeonbd.com
 * updates: ftp.tc.edu.tw
No packages marked for update

 

 

 

參考相關網頁: