I get the following errors when running the apt-get upgrade
:
dpkg: error processing package nfs-common (--remove)
cannot remove /sbin/umount.nfs4: Bad message
E: Sub-process /usr/bin/dpkg returned an error code (1)
When I run ls
command in /sbin
, I get the following errors:
ls: cannot access 'umount.nfs': Bad message
ls: cannot access 'mount.nfs4': Bad message
ls: cannot access 'umount.nfs4': Bad message
ls: cannot access 'start-statd': Bad message
When I run ls -l
command in /sbin
, it returns output like this:
l????????? ? ? ? ? ? mount.nfs4
which is the same for the other mentioned files (umount.nfs
, umount.nfs4
and start-statd
).
What can I do to repair this?
Ubuntu version: 20.04
ls -l
inside/sbin
and add the lines specific to those files (chances you'll see some????
) and a few other files from the output ... There is a chance that (most probable cause first) your filesystem is corrupt and need checking and fixing or your disk is dying with too many bad blocks or your data link between the disk and the motherboard is damaged. – Raffa Mar 17 '24 at 18:14???
after runningls -l
and looks like the following:l????????? ? ? ? ? ? mount.nfs4
, which is the same for the mentioned ones (umount.nfs
,umount.nfs4
andstart-statd
). What should I do to fix it? – Stefan Mar 18 '24 at 11:55