I'm trying to install libgdal-dev (for an R package I really need) using:
sudo apt-get install libgdal-dev
But then I get the error message:
The following packages have unmet dependencies:
libgdal-dev : Depends: libmysqlclient-dev
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
So I run:
sudo apt-get -f install
which gives me:
[...]
dpkg: error processing archive /var/cache/apt/archives/libmysqlclient-dev_5.7.22-0ubuntu0.16.04.1_amd64.deb (--unpack):
trying to overwrite '/usr/share/man/man1/mysql_config.1.gz', which is also in package libmariadb-dev 1:10.3.7+maria~xenial
Processing triggers for man-db (2.7.5-1) ...
Errors were encountered while processing:
/var/cache/apt/archives/libmysqlclient-dev_5.7.22-0ubuntu0.16.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
If I try to install libmysqlclient-dev;
sudo apt-get install libmysqlclient-dev
it outputs:
[...]
dpkg: error processing archive /var/cache/apt/archives/libmysqlclient-dev_5.7.22-0ubuntu0.16.04.1_amd64.deb (--unpack):
trying to overwrite '/usr/share/man/man1/mysql_config.1.gz', which is also in package libmariadb-dev 1:10.3.7+maria~xenial
Processing triggers for man-db (2.7.5-1) ...
Errors were encountered while processing:
/var/cache/apt/archives/libmysqlclient-dev_5.7.22-0ubuntu0.16.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
My /etc/apt/sources.list is here http://paste.debian.net/1033600/ .
Does anybody have a clue what to do? I'm really lost..
Thank you very much
Install
libmysqlclient-dev
from.deb
package withdpkg
and--force-overwrite
option:If the command doesn't help, try
--force-all
option:To be sure everything has been installed correctly, run:
Finally, install
libgdal-dev
: