MySQL - installation problems with linux

0

Problems with installing MySQL on a linux.  Every time I put the command in the terminal:

sudo apt-get install mysql-server

I get this message back:

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 do not know what may be happening, it's the first MySQL installation within the OS.

    
asked by anonymous 23.04.2017 / 18:17

1 answer

3

It seems to me that there is no problem installing MySQL but rather a previous incomplete installation ( broken ). The error message shows that there was an attempt to install the package atom , but the installation of the git dependency was missing.

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

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

where -f means fix broken .

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

sudo apt-get --purge remove atom

After correcting the error, repeat the MySQL installation steps.

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

The installation instructions for MySQL 5.7 on a GNU / Linux (derived from) Debian distribution can be found at A Quick Guide to Using the MySQL APT Repository .

    
24.04.2017 / 22:28