yum安装glibc并提示破包

时间:2015-05-21 06:32:04

标签: linux rpm glibc yum

我想升级glibc,当我运行命令yum install 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

有没有人有类似的问题,知道如何解决它?

1 个答案:

答案 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工具: http://dev-at-cloud-docs.cloudbees.com/docs/dev-at-cloud-docs-1.1/Build+Tools.html