CentOS 的 YUM安装时卡死解决方案
  5H7iM81WQWq4 2023年11月13日 29 0


YUM是基于RPM的软件包管理器

YUM is an RPM-based package manager


补充说明

Supplementary note


yum命令 是在Fedora和RedHat以及SUSE中基于rpm的软件包管理器,它可以使系统管理人员交互和自动化地更新与管理RPM软件包,能够从指定的服务器自动下载RPM包并且安装,可以自动处理依赖性关系,并且一次安装所有依赖的软体包,无须繁琐地一次次下载、安装。yum提供了查找、安装、删除某一个、一组甚至全部软件包的命令,而且命令简洁而又好记。

    The yum command is a rpm-based package manager in Fedora, RedHat and SUSE. It enables system administrators to interactively and automatically update and manage RPM packages. It can automatically download and install RPM packages from a specified server, and can be processed automatically Dependency relationship, and install all dependent software packages at one time, no need to download and install tediously again and again. Yum provides commands to find, install, delete a certain, a group or even all packages, and the commands are concise and easy to remember.


问题:

    在使用yum安装时,卡死并且无法Ctrl+c终止,需要将其杀死才能停止。

如下图:

    When using yum to install, it is stuck and cannot be terminated by Ctrl+c. You need to kill it to stop.

As shown below:

CentOS 的 YUM安装时卡死解决方案_sed


解决方案一:

Solution 1:


CentOS 的 YUM安装时卡死解决方案_数据文件_02

   

    删除rpm数据文件后再重建rpm数据文件:

    Rebuild the rpm data file after deleting the rpm data file:


    删除rpm数据文件

    Delete rpm data file

rm -f /var/lib/rpm/__db.00*


重建rpm数据文件

Rebuild rpm data file

rpm -vv --rebuilddb

CentOS 的 YUM安装时卡死解决方案_数据文件_03


清空缓存后再重新缓存

Re-cache after clearing the cache

yum clean all 
yum makecache


执行完一般情况就可以正常使用了,若依旧无法使用请参考以下方式二

After executing the general situation, it can be used normally, if it still cannot be used, please refer to the following method two


解决方案二:

Solution two:

CentOS 的 YUM安装时卡死解决方案_数据文件_04


将这俩个文件删除后在进行测试

Test after deleting these two files


CentOS 的 YUM安装时卡死解决方案_数据文件_05



CentOS 的 YUM安装时卡死解决方案_数据文件_06


【版权声明】本文内容来自摩杜云社区用户原创、第三方投稿、转载,内容版权归原作者所有。本网站的目的在于传递更多信息,不拥有版权,亦不承担相应法律责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@moduyun.com

  1. 分享:
最后一次编辑于 2023年11月13日 0

暂无评论

推荐阅读
  sX9JkgY3DY86   2023年11月13日   42   0   0 idesedImage
  sX9JkgY3DY86   2023年11月13日   42   0   0 idesedflutter
  sX9JkgY3DY86   2023年11月13日   37   0   0 ideTextsed
  nQkVcpdWfLDr   2023年11月13日   28   0   0 cisedLua
  sX9JkgY3DY86   2023年11月13日   32   0   0 Textsed
5H7iM81WQWq4