关于centos:CentOS-的-YUM安装时卡死解决方案

37次阅读

共计 1308 个字符,预计需要花费 4 分钟才能阅读完成。

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:

解决方案一:

Solution 1:

删除 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

清空缓存后再从新缓存

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:

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

Test after deleting these two files

正文完
 0