I tried many times to completely remove MySQL from my system without success. I get these errors:
I also tried other commands without success. What should I do?
Here is the output of apt list --installed | grep mysql
:
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
default-libmysqlclient-dev/focal,now 1.0.5ubuntu2 amd64 [installed]
libmysqlclient-dev/focal-updates,focal-security,now 8.0.28-0ubuntu0.20.04.3 amd64 [installed]
libmysqlclient21/focal-updates,focal-security,now 8.0.28-0ubuntu0.20.04.3 amd64 [installed]
libmysqlclient21/focal-updates,focal-security,now 8.0.28-0ubuntu0.20.04.3 i386 [installed]
libpocodatamysql62/focal,now 1.9.2-3ubuntu3 amd64 [installed]
mysql-client-8.0/focal-updates,focal-security,now 8.0.28-0ubuntu0.20.04.3 amd64 [installed]
mysql-client-core-8.0/focal-updates,focal-security,now 8.0.28-0ubuntu0.20.04.3 amd64 [installed]
mysql-common/focal,focal,now 5.8+1.0.5ubuntu2 all [installed]
mysql-server-8.0/now 8.0.27-0ubuntu0.20.04.1 amd64 [installed,upgradable to: 8.0.28-0ubuntu0.20.04.3]
mysql-server-core-8.0/focal-updates,focal-security,now 8.0.28-0ubuntu0.20.04.3 amd64 [installed]
Here I am inside /var/lib/dpkg/info/
and I searched for "mysql" and I see these files:
Should I delete them or is it a bad idea? If I delete them, will I be able to uninstall everything related to MySQL?
Using this command:
sudo apt purge mysql-server mysql-client mysql-common mysql-server-core-* mysql-client-core-*
I get this error: