gpt4 book ai didi

mysql - libmariadbclient-dev 安装错误 : Depends: libmariadbclient18

转载 作者:行者123 更新时间:2023-12-03 03:44:42 35 4
gpt4 key购买 nike

我正在尝试安装 mysqclient,但在使用 Python 3.7.0 的 Ubuntu 18.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.

最佳答案

安装旧版本有效:

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

2018 年 7 月 12 日更新:今天,我安装了 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

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

关于mysql - libmariadbclient-dev 安装错误 : Depends: libmariadbclient18,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51110986/

35 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com