Unable to install MQSQL in ubuntu 22

I was trying to install mysql on my host machine ubunutu22

But i always gets below error

sudo apt install mysql-server
Reading package lists… Done
Building dependency tree… Done
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-client-8.0 : Depends: mysql-common (>= 5.5)
mysql-server-8.0 : PreDepends: mysql-common (>= 5.5)
Depends: mysql-common (>= 5.8+1.0.4~)
E: Unable to correct problems, you have held broken packages.

I’ve checked online and install dependencies as mentioned but it all ended up in mess could anyone help me tpo remove all this and clean install this

Try this

sudo apt update ; sudo apt install -y mysql-common mysql-server

If it doesn’t work, there’s probably something up with your system. Try it on a fresh virtual machine to verify that.

Fortunately It worked: Thanks to you :blush:

I think the problem with my mysql-apt-conf, when i tried again to install it shows as below
The following packages have unmet dependencies:
mysql-client-8.0 : Depends: mysql-common (>= 5.5)
mysql-server-8.0 : PreDepends: mysql-common (>= 5.5)
Depends: mysql-common (>= 5.8+1.0.4~)
E: Unable to correct problems, you have held broken packages.

Then i changed the configuration my-sql-cluster to none and then tried to install using your command it worked.

However i now receive new error while running it
sudo systemctl start mysql-server
Failed to start mysql-server.service: Unit mysql-server.service not found.

Its running now, Thanks
:blush: