Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux rpm错误-无法运行任何程序包_Linux_Linux Kernel_Rpm_Centos6_Yum - Fatal编程技术网

Linux rpm错误-无法运行任何程序包

Linux rpm错误-无法运行任何程序包,linux,linux-kernel,rpm,centos6,yum,Linux,Linux Kernel,Rpm,Centos6,Yum,我尝试使用yum安装一些软件包,但有一个大问题,我不知道如何解决。请帮帮我,非常感谢^^ 这是一个错误: [root@localhost rpm]# yum rpmdb: /var/lib/rpm/__db.001: Input/output error error: db3 error(5) from dbenv->open: Input/output error error: cannot open Packages index using db3 - Input/output error

我尝试使用yum安装一些软件包,但有一个大问题,我不知道如何解决。请帮帮我,非常感谢^^

这是一个错误:

[root@localhost rpm]# yum
rpmdb: /var/lib/rpm/__db.001: Input/output error
error: db3 error(5) from dbenv->open: Input/output error
error: cannot open Packages index using db3 - Input/output error (5)
error: cannot open Packages database in /var/lib/rpm
CRITICAL:yum.main:

Error: rpmdb open failed
[root@localhost rpm]#
之后,我尝试重新构建rpmdb,但:

[root@localhost rpm]# rm -rf /var/lib/rpm/__db.00*
rm: cannot remove `/var/lib/rpm/__db.001': Input/output error
rm: cannot remove `/var/lib/rpm/__db.002': Input/output error
rm: cannot remove `/var/lib/rpm/__db.003': Input/output error
rm: cannot remove `/var/lib/rpm/__db.004': Input/output error
[root@localhost rpm]#
这是列表文件和权限:

[root@localhost rpm]# ls -l
ls: cannot access __db.001: Input/output error
ls: cannot access __db.004: Input/output error
ls: cannot access __db.002: Input/output error
ls: cannot access __db.003: Input/output error
total 52456
-rw-r--r-- 1 root root  2887680 May 26  2016 Basenames
-rw-r--r-- 1 root root    12288 May 26  2016 Conflictname
-????????? ? ?    ?           ?            ? __db.001
-????????? ? ?    ?           ?            ? __db.002
-????????? ? ?    ?           ?            ? __db.003
-????????? ? ?    ?           ?            ? __db.004
-rw-r--r-- 1 root root  1368064 May 26  2016 Dirnames
-rw-r--r-- 1 root root  5251072 May 26  2016 Filedigests
-rw-r--r-- 1 root root    16384 May 26  2016 Group
...
[root@localhost rpm]#

我想问题出在硬盘上。检查HDDI是否同意@MeiramChuzhenbayev这似乎是一个磁盘错误。我建议把这当作系统即将面临故障来处理。谢谢你的评论。只是重新启动,它工作正常,我仍然不知道确切的原因^^我想问题出在硬盘上。检查HDDI是否同意@MeiramChuzhenbayev这似乎是一个磁盘错误。我建议把这当作系统即将面临故障来处理。谢谢你的评论。只是重新启动,它工作正常,我仍然不知道确切的原因^^