Score:2

I can't fix broken packages

af flag

I can't fix this problem. I don't know how. I followed a tutorial on youtube and I downloaded the deb package on this site dev.mysql.com/downloads/mysql and I tried installing it. It didn't work and gave me errors and packages that couldn't be installed.

sudo apt --fix-broken install

This is what I get:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
 libmysqlclient21 : Depends: mysql-common (>= 8.0.28-1ubuntu20.04) but 5.8+1.0.5ubuntu2 is installed
 mysql-community-server-core-dbgsym : Depends: mysql-community-server-core (= 8.0.28-1ubuntu20.04) but it is not installable
 mysql-community-test : Depends: mysql-community-server (= 8.0.28-1ubuntu20.04) but it is not installable
                        Depends: mysql-community-client (= 8.0.28-1ubuntu20.04) but it is not installable
                        Depends: libmysqlclient-dev but it is not installed
                        Depends: libjson-perl but it is not installed
                        Depends: mecab-ipadic-utf8 but it is not installed
                        Depends: mysql-community-server-core but it is not installable
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies

I tried removing mysql but the dependencies still remained. There is no sql anything on my linux system now. Nothing, so I don't know why it still says there are broken packages.

Organic Marble avatar
us flag
What did you do right before this started happening?
KesiScarlet avatar
af flag
I tried downloading mysql server if I remember correctly
Organic Marble avatar
us flag
You must have done more than download it.
KesiScarlet avatar
af flag
I followed a tutorial on youtube and I downloaded the deb package on this site https://dev.mysql.com/downloads/mysql/ and I tried installing it. It didn't work and gave me errors and packages that couldn't be installed.
Organic Marble avatar
us flag
Try undoing what you did. Suggest that you put this information about what you did to break your system in the question as well.
KesiScarlet avatar
af flag
Already tried. It removed mysql server, yet, told me that I have those broken packages. Now I can't install anything else
KesiScarlet avatar
af flag
Let us [continue this discussion in chat](https://chat.stackexchange.com/rooms/134488/discussion-between-kesiscarlet-and-organic-marble).
user535733 avatar
cn flag
"*I tried removing mysql*" -- That generally won't work. Apt can't process the removal because of the broken dependencies that block ALL apt actions. That you still encounter the problem suggests that your attempt to remove the package was not successful.
in flag
It looks like you're on an old Ubuntu and tried to install a new mysql that depends on (ie needs) newer packages than your system can find. What's your `lsb_release -a` say (or what version do you have). It looks like you have maybe version 18.xx/19.xx but you need at least 20.04 to get the dependencies you need to install that specific package.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.