im trying to install mysql-community-server_5.7.13-1ubuntu16.04_amd64.deb.
before that i have ran the commands
sudo apt-get remove --purge mysql*
sudo apt-get autoremove
sudo apt-get autoclean
after that im facing the below error. cn anyone provide me the solution.
testuser#mon-mod:/usr/mysql$ sudo dpkg -i mysql-community-server_5.7.13-1ubuntu16.04_amd64.deb
(Reading database ... 63795 files and directories currently installed.)
Preparing to unpack mysql-community-server_5.7.13-1ubuntu16.04_amd64.deb ...
.
Unpacking mysql-community-server (5.7.13-1ubuntu16.04) over (5.7.13-1ubuntu16.04) ...
dpkg: dependency problems prevent configuration of mysql-community-server:
mysql-community-server depends on mysql-common (= 5.7.13-1ubuntu16.04); however:
Package mysql-common is not installed.
mysql-community-server depends on mysql-client (= 5.7.13-1ubuntu16.04); however:
Package mysql-client is not installed.
mysql-community-server depends on libmecab2 (>= 0.996-1.2ubuntu1); however:
Package libmecab2 is not installed.
mysql-community-server depends on libstdc++6 (>= 5.2); however:
Version of libstdc++6:amd64 on system is 4.8.4-2ubuntu1~14.04.1.
mysql-community-server depends on init-system-helpers (>= 1.18~); however:
Version of init-system-helpers on system is 1.14.
dpkg: error processing package mysql-community-server (--install):
dependency problems - leaving unconfigured
Processing triggers for ureadahead (0.100.0-16) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Errors were encountered while processing:
mysql-community-server
testuser#mon-mod:/usr/mysql$
you can use apt-get package manager in the Ubuntu to install MySQL server. It will take care of the dependencies. In Ubuntu you can use
sudo apt-get install mysql-server
or
sudo apt-get install mysql-server-5.7
Related
I am trying to install MySQL 8.0 in Ubuntu 20.04 with sudo apt install mysql-server, but this error keeps showing up after reinstalling and after using sudo dpkg --configure -a :
Setting up mysql-server-8.0 (8.0.25-0ubuntu0.20.04.1) ...
/var/lib/dpkg/info/mysql-server-8.0.postinst: line 191: /usr/share/mysql-common/
configure-symlinks: No such file or directory
dpkg: error processing package mysql-server-8.0 (--configure):
installed mysql-server-8.0 package post-installation script subprocess returned
error exit status 127
No apport report written because the error message indicates its a followup error from a previous failure.
dpkg: dependency problems prevent configuration of mysql-server:
mysql-server depends on mysql-server-8.0; however:
Package mysql-server-8.0 is not configured yet.
dpkg: error processing package mysql-server (--configure):
dependency problems - leaving unconfigured
I completely uninstalled MySQL and reinstalled it multiple times with sudo apt remove --purge --autoremove mysql-server, but the error persists.
I got the same problem and just found nice article
to solve it.
Indeed deleting files directly from your MySQL folder is really not recommended. You can take a look at this guide here on how to delete old MySQL binary files here.
Regarding your current issue. In order to completely get rid of your MySQL installation you could run the following:
Make sure MySQL is not running:
sudo systemctl stop mysql
Then purge all the MySQL packages:
sudo apt purge mysql-server mysql-client mysql-common mysql-server-core-* mysql-client-core-*
Then delete all the MySQL files:
sudo rm -rf /etc/mysql /var/lib/mysql /var/log/mysql
Finally clean all packages that are not needed:
sudo apt autoremove
sudo apt autoclean
Hope that this helps!
Stop the Mysql if it is running
sudo systemctl stop mysql.service
sudo kill $(pgrep mysql)
Then purge everything , this will also remove Mysql-workbench
sudo apt-get remove --purge mysql-\*
Then reinstall mysql-server and mysql-client
sudo apt-get install mysql-server mysql-client
I'm trying to install the MySQL server by using the Ubuntu operating system package manager with following commands:
sudo apt-get update
sudo apt-get install mysql-server
and getting error as :
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package mysql-server
I tried this "Ubuntu "E: Unable to locate package mysql"" but it was not helpful.
try running the command before installingsudo apt-get update && sudo apt-get dist-upgrade
I tried installing mysql client using pip install mysqlclient but ended up as
#include "Python.h"
^~~~~~~~~~
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
So I tried installing packages that could detect header file Python.h
For that I tried sudo apt-get install python3.6-dev
But that resulted into
The following packages have unmet dependencies:
python3.6-dev : Depends: python3.6 (= 3.6.6-1~18.04) but 3.6.6-1+xenial1 is to be installed
Depends: libpython3.6-dev (= 3.6.6-1~18.04) but it is not going to be installed
Depends: libpython3.6 (= 3.6.6-1~18.04) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
How to deal with this situation and where the problem lies?
It seems you are having dependency issue. Install libpython3.6-dev then python3.6-dev and mysql. After that I hope you will be able to install mysqlclient.
sudo apt install libpython3.6-dev
sudo apt install python3.6-dev
sudo apt instal mysql-server
Then you will be able to install mysqlclient.
**if this does not happen it's good to uninstall and reinstall the python3.6 because many people got solution in this way. You can can see here
You may use following commands to do that and repeat those above commands.
sudo apt purge libpython3*
sudo apt-get purge python3.6
sudo apt-get autoremove && sudo apt-get autoclean
sudo apt-get install python3.6*
Hope it will sove your problem.
I am installing mysql on Ubuntu 16
when I use :
sudo apt-get install mysql-server mysql-client
it gives me :
Reading package lists... Done
Building dependency tree
Reading state information... Done
mysql-client is already the newest version (5.7.18-1ubuntu16.04).
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
mysql-client : Depends: mysql-community-client (= 5.7.18-1ubuntu16.04) but it is not going to be installed
mysql-server : Depends: mysql-community-server (= 5.7.18-1ubuntu16.04) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
how do I resolve this issue.
I've gotten into a bad state with MySQL on Ubuntu 16.04, so I attempted to remove it. I thought I successfully removed it with apt-get remove, but now whenever I do an apt-get or something I get the following:
$ sudo apt-get purge mysql-client-core-5.5
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'mysql-client-core-5.5' is not installed, so not removed
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
mysql-server-5.7 : PreDepends: mysql-common (>= 5.5) but it is not going to be installed
Depends: mysql-client-5.7 (>= 5.7.16-0ubuntu0.16.04.1) but it is not going to be installed
Depends: mysql-common (>= 5.6.22-1~) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
This seems to happen for any package I try to remove / install / etc. What's the best way to remove this?