2

I have a lot of broken packages in my ubuntu 14.04 distro, which I am trying to fix.

I am following this answer by one of our community member. I followed the first two commands and after editing the file which he has mentioned I am not sure how can I determine which are the packages are broken and which one's to be removed.

When I am running apt-get install libmysqlclient-dev I am getting that broken packages issue.

Here's the result of running above command

 The following packages have unmet dependencies:
 libmysqlclient-dev : Depends: libmysqlclient18 (= 5.5.49-0ubuntu0.14.04.1) but 10.0.25+maria-1~trusty is to be installed
E: Unable to correct problems, you have held broken packages.

Issue could be that I already have mariadb installed, although I am not sure how it got installed. I tried to remove it using the synaptic package manager but that didn't help.

Can someone please help me with that.I can share the chunk of that file If needed.

Suraj
  • 189

1 Answers1

3

Here is what we have so far.

First, edit your /etc/apt/sources.list file and remove mariadb by executing the following commands:

sudo sed -i 's/^.*mariadb.*$//g' /etc/apt/sources.list
sudo apt-get update

Now, let's fix that broken package:

sudo apt-get install libmysqlclient18=5.5.49-0ubuntu0.14.04.1 libmysqlclient-dev

Please post any more errors, thanks.

mchid
  • 43,546
  • 8
  • 97
  • 150