Solved
This question has been asked many times and I have been trying all the solutions I found on askubuntu/stackoverflow/random forum since yesterday but nothing works.
I downloaded a mysql deb bundle from the official website and I followed this official tutorial to install a mysql server but it ended up breaking my apt. Now, any command results in a variation of this message:
The following packages have unmet dependencies: libmysqlclient21 : Depends: mysql-community-client-plugins (= 8.0.28-1ubuntu20.04) but it is not installable mysql-community-client : Depends: mysql-community-client-core (= 8.0.28-1ubuntu20.04) but it is not installable mysql-community-server : Depends: mysql-community-server-core (= 8.0.28-1ubuntu20.04) but it is not installable E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
And apt --fix-broken install
outputs this:
Correcting dependencies... failed. The following packages have unmet dependencies: libmysqlclient21 : Depends: mysql-community-client-plugins (= 8.0.28-1ubuntu20.04) but it is not installable mysql-community-client : Depends: mysql-community-client-core (= 8.0.28-1ubuntu20.04) but it is not installable mysql-community-server : Depends: mysql-community-server-core (= 8.0.28-1ubuntu20.04) but it is not installable E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages. E: Unable to correct dependencies
I have tried a lot of commands (dpkg -r, purge, clean, autoremove, autoclean...) but to no avail. Is there a radical way to save my apt without reinstalling Ubuntu?
Any help would be appreciated.
PS: I'm running Ubuntu 20.04