Ubuntuサーバー - パッケージを削除できません。

Ubuntuサーバー - パッケージを削除できません。

パッケージを削除できません。

[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

おすすめ記事