I'm in a bit of a situation here and quite a Ubuntu/linux newbie, plus I didn't find any working solution for us in other posts facing similar problem, hence every help is more than welcome.
In summary: I tried to update our production server but it started to give an error related with info_silent folder
Followed this procedure:
sudo mv /var/lib/dpkg/info /var/lib/dpkg/info_silent
sudo mkdir /var/lib/dpkg/info
sudo apt-get update
sudo apt-get -f install
Till here everything good, the server started to upgrade again but lost traces of old upgrades (before the problem the OS was signaling 1 update, after more than 600, more than 800 running apt update
).
The big issue came when I did the following and restarted the system
sudo mv /var/lib/dpkg/info/* /var/lib/dpkg/info_silent
sudo rm -rf /var/lib/dpkg/info
sudo mv /var/lib/dpkg/info_silent /var/lib/dpkg/info
It restarted in emergency mode and every command is gone, not even mount
or umount
are available.
mount error, the message is always the same changing only the name of the resource fired
I tried to recover the folders as they where (/var/lib/dpkg/info
folder is still here with all the files) by following the same first three cmds above but I got stucked in the "Read-only file system".
I tried to restart in recovery mode but the behavior is the same plus it often request root pwd messing with the GUI.
I tried fsck to unlock the file system but w/out success, always says the dev is in use (and I cannot unmount).
Ubuntu version is: Ubuntu Server 20.04 LTS 64bit with no desktop, full command line.
I hope there is a solution other than formatting the whole system, not so much for the data (we have yesterday's backup) as for all the configurations...