I had mysql-server installed, wordpress was working fine then I tried to install cyberpanel which failed installing mariadb
So I manually tried to install mariadb to know why it failed, it failed again and also broke my mysql, couldn't remove/purge it, couldn't reinstall it either no matter what I did,
After trying a few things here and there including creating backups and removing mysql dirs, now I cannot install anything, culprit being /tmp dir:
apt install x E: Unable to mkstemp /tmp/clearsigned.message.PdV08H - GetTempFile (74: Bad message) E: The package lists or status file could not be parsed or opened.
and more interestingly:
ls /tmp ls: reading directory '/tmp': Bad message
I cannot install something to pull my data like vsftpd will also fail to install
Server is running Ubuntu 20.04
Update: checked dmesg and
EXT4-fs error (device loop0): __ext4_find_entry:1541: inode #2: comm lswsctrl: checksumming directory block 0
fsck? Compare this question.
findmnt -T /tmp?
e2fsck) the filesystem must not be mounted. See
man 8 fsck.ext4. That's why the accepted answer to the linked question used a live USB. Before you unmount or reboot, let's investigate what
/dev/loop0is. What is the output of
losetup -l /dev/loop0?