【问题标题】:Yum freezes on 'Loading mirror speeds' or 'Setting package sacks'Yum 在“加载镜像速度”或“设置包裹麻袋”时冻结
【发布时间】:2012-11-02 09:14:35
【问题描述】:
[root@LibertysLastArmy ~]# sudo yum -v update
Loading "fastestmirror" plugin
Config time: 0.067
Yum Version: 3.2.22
Setting up Package Sacks
Loading mirror speeds from cached hostfile


Exiting on user cancel
[root@LibertysLastArmy ~]# su root
[root@LibertysLastArmy ~]# su
[root@LibertysLastArmy ~]# su root
[root@LibertysLastArmy ~]# yum -v update
Loading "fastestmirror" plugin
Config time: 0.053
Yum Version: 3.2.22
Setting up Package Sacks
Loading mirror speeds from cached hostfile


Exiting on user cancel
[root@LibertysLastArmy ~]# yum --noplugins -v update
Config time: 0.076
Yum Version: 3.2.22
Setting up Package Sacks


Exiting on user cancel

每当我尝试使用 yum 时都会发生这种情况。我试过用 yum clear all,

我都试过了:

su -c 'rm -rf /var/lib/rpm/__db*' su -c 'rpm --rebuilddb' su -c 'yum 检查更新'

以及这些的变体。到目前为止,没有任何东西可以解决它。 我也试过重启VPS,但没有成功。

目前运行的是 CentOS 5.6 (Final)。任何帮助,将不胜感激。我的目标是最终安装 GCC,因为我缺少 gcc 源的编译器。

谢谢。

【问题讨论】:

    标签: linux centos yum


    【解决方案1】:

    您在 VPS 上有多少内存以及正在运行哪些进程? Yum 无法在内存不足的 VPS 上运行。会死的。

    【讨论】:

      猜你喜欢
      • 2013-03-04
      • 2021-10-20
      • 2014-07-29
      • 1970-01-01
      • 1970-01-01
      • 2014-07-28
      • 1970-01-01
      • 2020-02-26
      • 1970-01-01
      相关资源
      最近更新 更多