I get this error from Inspircd
Can't exec "mysql_config": No such file or directory at /home/alpha/inspircd-2.0.19/make/utilities.pm line 392, <FLAGS> line 37.
Make sure you have pkg-config installed
In the case of gnutls configuration errors on debian,
Ubuntu, etc, you should ensure that you have installed
gnutls-bin as well as libgnutls-dev and libgnutls.
I've been looking all over the internet trying to find out how to remove the errors.
I have read multiple threads but no luck. I know I need the libmysqlclient-dev package but I can't for the life of me get it installed.
I run
sudo apt-get install libmysqlclient-dev
Also tried cleaning, "-f" and so on but I still get the error.
The following packages have unmet dependencies:
libmysqlclient-dev : Depends: libmysqlclient18 (= 5.5.40-0ubuntu1) but 5.5.41-0ubuntu0.14.04.1 is to be installed
E: Unable to correct problems, you have held broken packages.
I tried it with aptitude
sudo aptitude install libmysqlclient-dev
then I downgraded libmysqlclient18 one version and now it works as it should.
you tried remove all PPA ( Personal Package Archive )?
before try:
sudo apt-get autoremove && sudo aptitude update && sudo aptitude install libmysqlclient-dev
I see in Bugtrack MYSQL:
https://goo.gl/34NUgo
your ERROR is Bug know Bug #73522 Installation of libmysqlclient-dev fails if libmysqlclient18 is from percona
still unsolved:
status: Unsupported
environment: Ubuntu 14.04 LTS; Kernel 3.13, MySql 5.6
att
Have you tried tu upgrade your libmysqlclient18 packet ? (Perform an apt-get update before, just in case ...)
Related
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.
By wrong uninstalling MariaDB, I've lost working instance of MySQL and MariaDB in my Ubuntu 16.04 system...
I've broken the dependencies so much, that I can not uninstall or install MySQL or MariaDB, using apt-get, or dpkg...
All the following commands failed:
apt-get [install -f] [update] [remove] [purge] [autorove] [clean] [check]
and options with dpkg such as:
dpkg --remove --force-remove-reinstreq mysql
also don't help me.
Manually downloading the package and attempting to install from a local file did not help.
For each installation, uninstallation or other attempt, I get almost the same result:
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:
mariadb-client : Depends: mariadb-client-10.0 (>= 10.0.34-0ubuntu0.16.04.1) but it is not installed
mariadb-server-10.0 : PreDepends: mariadb-common (>= 10.0.34-0ubuntu0.16.04.1) but it is not installed
Depends: mariadb-client-10.0 (>= 10.0.34-0ubuntu0.16.04.1) but it is not installed
Breaks: mysql-server
mariadb-server-core-10.0 : Depends: mariadb-common (>= 10.0.34-0ubuntu0.16.04.1) but it is not installed
mysql-server : Depends: mysql-community-server (= 5.7.22-1ubuntu16.04) but it is not installed
E: Unmet dependencies. Try using -f.
Is there any different way to permanently remove any traces and remnants of MySQL and MariaDB from the operating system, so that I can reinstall MySQL itself?
I need to working with MySQL, but I can't reinstall the operating system.
Please help me.
God exists! :D
The problem was solved by entering:
sudo apt-get -f install
without any other parameters
and later displaying all packages via:
sudo dpkg -l | grep mariadb
sudo dpkg -l | grep mysql
and removing problematic packages in the right order:
sudo apt-get --purge autoremove package_name
After the complete removal of all problematic packages, I could re-install MySQL without any problems...
Thank you #YuriLachin for your help.
It is probably better to address the question to serverfault.com.
Run:
dpkg --audit
to find what is broken.
Then run:
dpkg --list|grep -i mysql
and
dpkg --list|grep -i mariadb
Look at the first (status) column and, optionally, inspect detailed status for some of packages with:
dpkg-info -s <name-of-package>
Then you can try to remove found mysql/mariadb related packages with
dpkg -remove --force-remove-reinstreq <package-list>
As a way around you can always run mysq in docker container without mysql being installed
I would like to install MySql 5.7 on Debian 7 Wheezy. I put :
deb http://repo.mysql.com/apt/debian/ wheezy mysql-5.7
in file:
/etc/apt/sources.list.d/mysql.list
Next I run commands:
sudo apt-get update
sudo apt-get upgrade
And tried install package:
sudo apt-get install mysql-server-5.7
I got an error:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'mysql-community-server' instead of 'mysql-server-5.7'
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-community-server : Depends: mysql-common (= 5.7.11-1debian7) but 5.5.47-0+deb7u1 is to be installed
Depends: mysql-client (= 5.7.11-1debian7)
E: Unable to correct problems, you have held broken packages.
Do you have any ideas to resolve this problem?
I also tried:
Note, selecting 'mysql-community-server' instead of 'mysql-server-5.7'
But it's not the solution of the problem.
I stumbled upon this post and can confirm simply changing the priority of your cache by downloading the .deb package directly from MySQL Downloads
Using the command line:
$ cd /usr/src && sudo wget http://dev.mysql.com/get/mysql-apt-config_0.7.3-1_all.deb
Please note: by convension the /src directory on linux exists for source code to live before being compiled - I believe the deb package above therefore belongs here.
This works for Debian/Wheezy.
$ sudo dpkg -i http://dev.mysql.com/get/mysql-apt-config_0.7.3-1_all.deb
Once this you have gone through the steps, you simply hit Ok, and then proceed to install mysql-server like normal:
$ sudo apt-update
$ sudo apt-get install mysql-server
For me, this resulted in the following:
[info] MySQL Community Server 5.7.14 is started.
Setting up mysql-server (5.7.14-1debian7) ...
Further reading, if you ever want to remove this package, you can do so:
$ cd /usr/src && sudo dpkg --remove http://dev.mysql.com/get/mysql-apt-config_0.7.3-1_all.deb
As of 2020 with Debian Wheezy 7.11 the answer doesn't work anymore. I had to change a few things and thought it might be useful to share the result:
Install mysql-apt-config_0.8.10-1_all.deb (Version 0.8.15-1_all won't work: dpkg can't handle the "control.tar.xz" it contains.)
cd /usr/src
sudo wget https://dev.mysql.com/get/mysql-apt-config_0.8.10-1_all.deb
sudo dpkg -i mysql-apt-config_0.8.10-1_all.deb
This will create the necessary /etc/apt/sources.list.d/mysql.list file.
sudo apt-get update
sudo apt-get install mysql-server
Thanks goes to David Kehr from where I got the working mysql-apt-config version.
You don't need to specify the version in the apt-get command, just type :
sudo apt-get install mysql-server
After the install, you can type the following command to check mysql version
aptitude show mysql-server
On my machine I have the following result :
...
VersionĀ : 5.7.13-1debian7
...
I am experiencing a similar issue to this poster on the askubuntu forums. I've started with a clean Ubuntu 14.04 install several times now and keep getting the same error no matter what I do.
The following packages have unmet dependencies:
libmysqlclient-dev : Depends: libmysqlclient18 (= 5.5.46-0ubuntu0.14.04.2) but 10.0.23+maria-1~trusty is to be installed
E: Unable to correct problems, you have held broken packages.
Reproducing the error:
Followed the instructions on the MariaDB site for version 10.0. I tried 10.1 as well in a previous attempt.
I have Ruby (2.2.3) on Rails (4.2.5) installed on my server. Setup my app, configure the Gemfile and bundle install
An error occurred while installing mysql2 (0.4.2), and Bundler cannot continue.
Make sure that `gem install mysql2 -v '0.4.2'` succeeds before bundling.
Then I gem install mysql2 -v '0.4.2' and get the following:
mysql client is missing. You may need to 'apt-get install libmysqlclient-dev' or 'yum install mysql-devel', and try again.
So I apt-get install libmysqlclient-dev and get the error Unable to correct problems, you have held broken packages as seen in the first part of this post.
Infos:
apt-cache policy libmysqlclient18 &
libmysqlclient18:
Installed: 10.0.23+maria-1~trusty
Candidate: 10.0.23+maria-1~trusty
Version table:
*** 10.0.23+maria-1~trusty 0
500 http://sfo1.mirrors.digitalocean.com/mariadb/repo/10.0/ubuntu/ trusty/main amd64 Packages
100 /var/lib/dpkg/status
5.5.46-0ubuntu0.14.04.2 0
500 http://mirrors.digitalocean.com/ubuntu/ trusty-updates/main amd64 Packages
500 http://security.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
5.5.35+dfsg-1ubuntu1 0
500 http://mirrors.digitalocean.com/ubuntu/ trusty/main amd64 Packages
What step am I missing that will get the bundle install to not encounter issues with the mysql2 gem (and still use MariaDB)? mysql -uroot -p works okay from the terminal.
purge all mysql related packages
sudo apt-get remove --purge mysql*
sudo apt-get autoremove
sudo apt-get autoclean
sudo apt-get update
Now, that you have a clean system. Try installing mariadb again
sudo apt-get install mariadb-server libmariadbclient-dev mariadb-client mysql-common libmysqlclient18 libmariadbd-dev
just ensure that package version you are being promted to install are the same as given on this page:
http://ftp.yz.yamagata-u.ac.jp/pub/dbms/mariadb/repo/10.0/ubuntu/pool/main/m/mariadb-10.0/
Otherwise, it will install Mysql packages from Ubuntu's official repo which will cause the conflict.If that happens, you should set maria db repo with higher priority as given on this page:
https://askubuntu.com/questions/293619/assign-higher-priority-to-ppa
Hope it helps
I am trying to install mysql workbench. I am getting below error. It seems that it looks for mysql in some default directory. I have all the required things installed, but not where mysqlworkbench is expecting it to be. Whats the way out!
local#host:/var/www/$ sudo apt-get -f install mysql-workbench
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:
mysql-workbench : Depends: libctemplate0 but it is not going to be installed
Depends: libgtkmm-2.4-1c2a (>= 1:2.24.0) but it is not going to be installed
Depends: libmysqlclient18 (>= 5.5.13-1) but it is not going to be installed
Depends: libtinyxml2.6.2 but it is not going to be installed
Depends: libzip2 (>= 0.10) but it is not going to be installed
Depends: mysql-workbench-data (= 5.2.38+dfsg-3) but it is not going to be installed
Depends: mysql-client
Depends: python-mysql.connector but it is not going to be installed
Depends: python-paramiko but it is not going to be installed
Depends: python-pysqlite2 but it is not going to be installed
Depends: python-all but it is not going to be installed
Recommends: ttf-bitstream-vera but it is not going to be installed
Recommends: mysql-utilities but it is not installable
mysql-workbench-community : Depends: libctemplate2 but it is not installable
Depends: libglib2.0-0 (>= 2.35.9) but 2.32.3-0ubuntu1 is to be installed
Depends: libglibmm-2.4-1c2a (>= 2.33.13) but 2.32.0-0ubuntu1 is to be installed
Depends: libgtkmm-2.4-1c2a (>= 1:2.24.0) but it is not going to be installed
Depends: libmysqlclient18 (>= 5.5.13-1) but it is not going to be installed
Depends: libpcrecpp0 (>= 7.7) but it is not going to be installed
Depends: libtinyxml2.6.2 but it is not going to be installed
Depends: libzip2 (>= 0.10) but it is not going to be installed
Depends: python-paramiko but it is not going to be installed
Depends: mysql-client
Depends: python-pysqlite2 but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
You probably ran
dpkg -i mysql-workbench.deb
which doesn't work as dpkg does not resolve dependencies and now the installation of MySQL Workbench is broken. Run this command instead:
sudo apt-get -f install
After that MySQL Workbench should be installed fine.
Also keep in mind that we provide downloads for Ubuntu (select Ubuntu Linux from the drop down).
Try installing again, let it fail and run the second command:
sudo apt-get -f install mysql-workbench
sudo apt --fix-broken install
That did the trick for me on a similar issue for me trying to install mysql 5.7 on ubuntu 18.04. The problem manifested in my machine because I first tried to install mysql with a DEB package and then I tried to install it from mysql's apt repository.
I faced same issue but the below method worked for me. sudo apt-get update then sudo apt-get install mysql-workbench use this link for more details - http://dev.mysql.com/doc/mysql-apt-repo-quick-guide/en/#apt-repo-fresh-install
After the installation faild I use
sudo apt --fix-broken install
And all works as expected
If the error is :
The following packages have unmet dependencies:
mysql-workbench : Depends: gdal-abi-2-1-2
Updating the package tree will do nothing.
NOTE: this is a set of ideas to try (so the answer is incomplete but i think it can help some) [I didn't get the time to test all the options] (when i do i will update)
A solution is to download that package and install it from
https://debian.pkgs.org/9/debian-main-amd64/libgdal20_2.1.2+dfsg-5_amd64.deb.html
direct download link
http://ftp.br.debian.org/debian/pool/main/g/gdal/libgdal20_2.1.2+dfsg-5_amd64.deb
sudo apt install ./libgdal20_2.1.2+dfsg-5_amd64.deb # and that being in the download folder
Note that will downgrade libgdal20, at least in my case:
The following packages will be REMOVED:
blender frei0r-plugins libopencv-calib3d3.2 libopencv-contrib3.2 libopencv-features2d3.2 libopencv-highgui3.2 libopencv-imgcodecs3.2
libopencv-objdetect3.2 libopencv-stitching3.2 libopencv-superres3.2 libopencv-videoio3.2 libopencv-videostab3.2 libopencv-viz3.2 libopenimageio1.8
libvtk6.3
The following NEW packages will be installed:
libarmadillo7 libdap23 libnetcdf11 libproj12 libxerces-c3.1
The following packages will be DOWNGRADED:
libgdal20
You can see here how many package are to be removed, blender one of them for me. So check if you want to do that.
After that you should be good to install workbench (haven't tried it, just think it will work, i didn't want to uninstall blender).
Another way, which is not reassuring, is to install the latest version from the official website, getting the for ubuntu package. https://dev.mysql.com/downloads/workbench/.
Installed it working fine up to now. You will get a message alerting about the system, and that errors may occur. You can choose to not see again the message.
And last way, installing from the source code, i don't have time currently, so i will update once it's done. I think this will be the best options, as a good way to learn new things. I will update and write a tutorial once i do it.
for me this command worked
sudo apt-get -f install ./mysql-workbench-community-dbgsym_8.0.28-1ubuntu20.04_amd64.deb
Download mysql-workbench-community_8.0.29-1ubuntu20.04_amd64.deb
from https://downloads.mysql.com/archives/workbench/
... NOT mysql-workbench-community-dbgsym... !!!
choose a version that matches your Linux version
sudo apt-get update
sudo apt --fix-broken install
sudo apt install gnome-keyring libproj-dev libpcrecpp0v5
sudo dpkg -i mysql-workbench-community_8.0.29-1ubuntu20.04_amd64.deb