By S0ulf3re
I was trying to do some maintenance on my new droplet, but every time I try to upgrade mysql, I get this error from APT:
The following packages have unmet dependencies:
mysql-client : Depends: mysql-client-8.0 but it is not going to be installed
mysql-community-server : Depends: mysql-client (= 8.0.26-1ubuntu20.04) but 8.0.28-0ubuntu0.20.04.3 is to be installed
E: Broken packages
How can I upgrade these? --fix-broken-install isn’t working either
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi @s0ulf3re,
Try forcing the MySQL upgrade with the following:
- sudo apt install -f mysql-client=8.0.26-1ubuntu20.04
Before that do a backup of your databases:
- mysqldump --user root --password --all-databases > all-databases.sql
Lastly if the above doesn’t help, you can always reinstall the MySQL and import all the databases inside again.
Ok, so here’s what I did to solve it.
First, I typed:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 467B942D3A79BD29
Then, I proceeded to use apt update and then I was able to update
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.