sudo dpkg --configure -a
gave this error below
dpkg: error: database directory cannot be accessed dpkg / var / lib / dpkg: There is no such file or directory
sudo rm /var/lib/dpkg
ps aux | grep -i apt
lsof /var/lib/dpkg/lock-frontend as well…
I have restored a mysqldump database and the restored database and the data is there. Unfortunately, the database files are missing in / var / lib / mysql. /Etc/my.conf shows that this is the directory. This is causing problems because remote queries get a database not found. Is there any way to fix this problem? I tried to create a new database and restore the previous database, but again the files do not appear in / var / lib / mysql.