1

Shows this error:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies: mysql-cluster-community-client : Depends: libncurses5 (>= 6) but it is not installable

Depends: libtinfo5 (>= 6) but it is not installable

Depends: mysql-cluster-community-client-core (= 8.0.24-1ubuntu18.04) but it is not going to be installed mysql-cluster-community-server-core : Depends: libaio1 (>= 0.3.93) but it is not installable

Depends: libmecab2 but it is not installable

Recommends: mecab-ipadic-utf8 but it is not installable

E: Unable to correct problems, you have held broken packages.

matigo
  • 24,752
  • 7
  • 50
  • 79

2 Answers2

4

I had a similar problem when trying to install mysql 5.7 on Ubuntu 24

mysql-community-client : Depends: libaio1 (>= 0.3.93) but it is not installable
                      Depends: libtinfo5 (>= 6) but it is not installable
mysql-community-server : Depends: libaio1 (>= 0.3.93) but it is not installable

Most of the advice I found on stackexchange here told me to just install the packages being listed using aptitude(apt) but the error clearly states that those packages are not installable and as such would not be managed by aptitude.

You would have to go to the actual package page and download the package from there and install.

A quick rundown of how I installed the libtinfo5 package for example

  • Google search of "install libtinfo5 package"

  • Choose your distro version and arch which led me to download page for libtinfo5

  • Under the Download header, you would see a direct link to the binary package

http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2_amd64.deb

  • On your terminal, you can use wget to download the package

wget http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2_amd64.deb

  • You can then install the package like any other package

sudo dpkg -i libtinfo5_6.3-2_amd64.deb

You can repeat the steps above to also resolve the error concerning libaio1 too

(UPDATE) ***** You can manually install libaio1 using following command and continue with the mysql installation

wget http://archive.ubuntu.com/ubuntu/pool/main/liba/libaio/libaio1_0.3.110-5_amd64.deb
sudo dpkg -i libaio1_0.3.110-5_amd64.deb
0

I had a similar problem though not identical. Purging and reinstalling mysql worked for me. Steps: https://linuxscriptshub.com/uninstall-completely-remove-mysql-ubuntu-16-04/