Mysql - Linux installation problems

Asked

Viewed 329 times

0

Problems with installing Mysql on a linux. Every time I put the remote in the terminal:

sudo apt-get install mysql-server

Return this message to me:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 atom : Depends: git
 mysql-server : Depends: mysql-server-5.7 but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

I no longer know what may be happening, it is the first installation of Mysql within the OS.

  • 2

    Try to rotate the command apt-get -f install it must install the necessary dependencies

  • @Leobufalo: What is the distribution and GNU/Linux version you use?

  • In this example I was using Deepin, but I just did what @Wilker said and solved!!

  • 1

    @Wilker creates an answer for the author to mark as solution!

  • 1

    @Juniornunes the boy below has already transformed my comment in response explaining the commands.

1 answer

3


It seems to me that there is no problem in installing Mysql but rather some previous incomplete installation (Broken). Error message states that there was an attempt to install the package atom, but lacked the installation of dependency git.

In the error message is one of the possible solutions, which is to run

sudo apt-get update 
sudo apt-get -f install 

where the -f option means fix Broken.

Another solution is to remove the package that has pending installation dependencies:

sudo apt-get --purge remove atom

After error correction action, repeat the Mysql installation steps.


To reduce the possibility of error, and if you are new to using GNU/Linux & Mysql, I suggest you install Mysql packages that are part of the distribution repositories and not packages from Mysql repositories.

The installation instructions for Mysql 5.7 in GNU/Linux distribution (derived from) Debian are found at A Quick Guide to Using the Mysql APT Repository.

  • Excellent answer, really was that, I appreciate the support.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.