2015-05-21 41 views
1

我想升級glibc,當我運行命令yum install glibc時,得到這樣的響應。yum安裝glibc並提示破包

Error: Package: libopencore-amrnb0-0.1.3-1.fc20.i686 (@/libopencore- amrnb0-0.1.3-1.fc20.i686) 
Requires: /usr/sbin/ldconfig 
Removing: glibc-2.18-16.fc20.i686 (@updates) 
      Not found 
     Updated By: glibc-2.18-19.fc20.i686 (updates) 
      Not found 


Error: Package: libx264_138-0.138-19_20130917.2245.fc20_80.i686 (@/libx264_138-0.138-19_20130917.2245.fc20_80.i686) 
     Requires: /usr/sbin/ldconfig 
     Removing: glibc-2.18-16.fc20.i686 (@updates) 
      Not found 
     Updated By: glibc-2.18-19.fc20.i686 (updates) 
      Not found 

Error: Package: libmad0-0.15.1b-4.fc20.i686 (@/libmad0-0.15.1b-4.fc20.i686) 
     Requires: /usr/sbin/ldconfig 
     Removing: glibc-2.18-16.fc20.i686 (@updates) 
      Not found 
     Updated By: glibc-2.18-19.fc20.i686 (updates) 
      Not found 

You could try using --skip-broken to work around the problem 
You could try running: rpm -Va --nofiles --nodigest 

然後

$ rpm -qv glibc 
glibc-2.18-16.fc20.i686 
glibc-2.18-16.fc20.x86_64 

然後

$ rpm -qp glibc 
error: open of glibc failed: No such file or directory 

有沒有人有類似的問題,並知道如何解決呢?

+0

顯示完整輸出。 –

回答

1

如果你想與yum升級包中,則必須使用upgrade命令,就像這樣:

yum upgrade glibc 

而且從yum手冊:

-p, --package PACKAGE_FILE 
    Query an (uninstalled) package PACKAGE_FILE. The PACKAGE_FILE may be specified as an ftp or http style URL, in which case the package header will be 
    downloaded and queried. 

所以,如果你使用-p選項,那麼需要完整的軟件包名稱。

(在最新的Fedora DIST推薦的升級方法是FedUp工具: https://fedoraproject.org/wiki/Upgrading_Fedora_using_yum