libmariadbclient dev安装错误:dependens:libmariadbclient18

k3bvogb1  于 2021-06-24  发布在  Mysql
关注(0)|答案(1)|浏览(385)

我正在尝试安装mysqclient,但在使用python3.7.0在ubuntu18.04 lts中尝试“apt get install libmariadbclient dev”时出错。
我怎样才能做到这一点?谢谢。

sudo apt-get install libmariadbclient-dev
Reading package lists... Done   
Building dependency tree
Reading state information... Done
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:
libmariadbclient-dev : Depends: libmariadbclient18 (= 1:10.1.29-6) but 1:10.3.7+maria~bionic is to be installed
E: Unable to correct problems, you have held broken packages.
3wabscal

3wabscal1#

安装旧版本,可以:

sudo apt-get install libmariadbclient18=1:10.1.29-6
sudo apt-get install libmariadbclient18-dev=1:10.1.29-6
pip3.7 install mysqlclient

更新07/12/2018:今天,我安装了mariadb 10.3.8,如下所示(在一个干净的系统中),安装了libmariadbclient18,没有任何抱怨:

sudo apt-get install software-properties-common
sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8
sudo add-apt-repository 'deb [arch=amd64,arm64,ppc64el] http://sfo1.mirrors.digitalocean.com/mariadb/repo/10.3/ubuntu bionic main'
sudo apt update
sudo apt install mariadb-server
sudo apt install mariadb-client
sudo apt install libmariadb-dev
sudo apt install libmariadb-dev-compat
sudo apt-get install libmariadbclient18

我不知道安装libmariaddv和libmariadv dev compat是否有帮助。

相关问题