我无法删除包。
[sudo] password for admin:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
webmin
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 173 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 143102 files and directories currently installed.)
Removing webmin (1.900) ...
dpkg: error processing package webmin (--remove):
cannot remove '/usr/share/webmin/qmailadmin/stop.cgi': Bad message
Errors were encountered while processing:
webmin
E: Sub-process /usr/bin/dpkg returned an error code (1)
当我查看权限时,我看到以下内容:
ls: cannot access '/usr/share/webmin/qmailadmin/stop.cgi': Bad message
total 16
drwxr-xr-x 2 root root 4096 Jan 29 21:50 .
drwxr-xr-x 111 root root 12288 Jan 29 20:54 ..
-????????? ? ? ? ? ? stop.cgi
如何解决这个问题。
答案1
尝试包含umount
损坏文件的文件系统并使用fsck
(或可能e2fsck
,取决于您的文件系统类型)进行检查。
如果由于文件系统正在使用而无法umount
访问该文件系统,则可能需要从 CD/DVD/USB 启动实时系统才能执行以下操作fsck