V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
fuckyoudolphin
V2EX  ›  Linux

求助一下 centos7 该如何去更换已有的包

  •  
  •   fuckyoudolphin · 2020-08-19 08:55:44 +08:00 · 1856 次点击
    这是一个创建于 1317 天前的主题,其中的信息可能已经有所发展或是发生改变。

    在安装过程中发现了这么一个问题:

    --> Finished Dependency Resolution
    Error: Package: glibc-2.17-260.el7.i686 (base)
               Requires: glibc-common = 2.17-260.el7
               Installed: glibc-common-2.17-260.el7_6.6.x86_64 (@updates)
                   glibc-common = 2.17-260.el7_6.6
               Available: glibc-common-2.17-260.el7.x86_64 (base)
                   glibc-common = 2.17-260.el7
               Available: glibc-common-2.17-260.el7_6.3.x86_64 (updates)
                   glibc-common = 2.17-260.el7_6.3
               Available: glibc-common-2.17-260.el7_6.4.x86_64 (updates)
                   glibc-common = 2.17-260.el7_6.4
     You could try using --skip-broken to work around the problem
     You could try running: rpm -Va --nofiles --nodigest
    

    看上去似乎是 glibc-common 的版本问题 但这个 glibc-common 被很多包依赖着

    机器是 centos7 执行 yum list glibc-common --showduplicates:的结果

    Loaded plugins: fastestmirror, versionlock
    Loading mirror speeds from cached hostfile
    Installed Packages
    glibc-common.x86_64               2.17-260.el7_6.6             @updates
    Available Packages
    glibc-common.x86_64                   2.17-260.el7                base
    glibc-common.x86_64                    2.17-260.el7_6.3                      updates
    
    
    

    请问一下这种情况该怎么把 glibc-common 的 2.17-260.el7_6.6 版本换成 2.17-260.el7 这个版本呢?非常感谢

    ragnaroks
        1
    ragnaroks  
       2020-08-19 09:04:35 +08:00
    downgrade

    不过你这种情况,多半是正在安装的包没有把 el7_x 加入可选
    araraloren
        2
    araraloren  
       2020-08-19 09:06:21 +08:00
    一不小心就搞坏了,glibc 还是不要乱动了。。
    Lax
        3
    Lax  
       2020-08-19 09:11:16 +08:00   ❤️ 1
    你要装的这个包是 i686 的?系统上已经有 x86_64 的包。
    你是想装什么包,感觉是下载错了版本
    crystom
        4
    crystom  
       2020-08-19 09:27:06 +08:00
    yum install glibc.i686
    xiaooloong
        5
    xiaooloong  
       2020-08-19 10:59:45 +08:00   ❤️ 1
    看起来像是 yum repo 的缓存不一致,试试重建一下缓存

    ```bash
    yum clean all
    yum makecache
    ```
    PerFectTime
        6
    PerFectTime  
       2020-08-19 11:03:59 +08:00   ❤️ 1
    重建一下缓存试试?
    yum-complete-transaction --cleanup-only
    package-cleanup --dupes
    package-cleanup --problems
    msg7086
        7
    msg7086  
       2020-08-19 11:28:39 +08:00   ❤️ 1
    你要装 32 位的 glibc,然后 32 位 glibc 必须和 64 位 glibc 版本相同。
    这里你 64 位是从 updates 里装的,所以 32 位也从 updates 里装就行了。
    Firxiao
        8
    Firxiao  
       2020-08-19 15:01:58 +08:00   ❤️ 1
    OK. 先不管你之前说的那么多,最后一句的答案是
    yum install <package name>-<version info>

    https://unix.stackexchange.com/questions/151689/how-can-i-instruct-yum-to-install-a-specific-version-of-package-x
    fuckyoudolphin
        9
    fuckyoudolphin  
    OP
       2020-08-19 15:44:34 +08:00
    多谢 ls 提供帮助的各位
    现在问题找到了 这台虚拟机镜像有问题 被手脚不太干净的同事动过了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   958 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 21:19 · PVG 05:19 · LAX 14:19 · JFK 17:19
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.