软件包“mysql-community-client-plugins”没有安装候选者

问题描述 投票:0回答:1

我正在尝试使用 pip 安装

mysqlclient
并收到红色文本,表示没有 config.h 文件。我开始修复这个问题,并坚持在 Ubuntu 20 上安装
libmysqlcppconn-dev
。终端显示

The following packages have unmet dependencies:
 libmysqlcppconn-dev : Depends: libmysqlcppconn8-2 (= 8.0.27-1ubuntu18.04) but it is not going to be installed

尝试后

sudo apt install -f libmysqlcppconn8-2
我明白了

The following packages have unmet dependencies:
 libmysqlcppconn8-2 : Depends: mysql-community-client-plugins but it is not installable

我该如何解决这个问题?谢谢大家。

python mysql ubuntu
1个回答
0
投票

嘿,您实际上可以在 mysql 站点上找到特定 mysql-client-plugins 的软件包https://dev.mysql.com/downloads/mysql/5.5.html?os=31&version=5.1

他们有您可能需要的实际个人套餐。但是 mysql 社区包就在那里。对于我的情况,我尝试安装 mysql odbc 但遇到了相同的错误。

Unpacking mysql-connector-odbc:amd64 (8.3.0-1debian11) ...
#21 1.003 dpkg: dependency problems prevent configuration of mysql-connector-odbc:amd64:
#21 1.003  mysql-connector-odbc:amd64 depends on mysql-community-client-plugins; however:
#21 1.003   Package mysql-community-client-plugins is not installed.

这为我解决了这个问题!谢谢。

如果使用 debian 你可以使用

sudo dpkg -i {package_location}.deb

或者有些人会争论使用 apt。 *不是 Linux 人员,但在 docker 环境中,

dpkg
对我来说效果更好,只需下载 .deb 软件包即可。然而,我离题了;任何人都可以在本地使用 apt

sudo apt install {package_location}.deb
© www.soinside.com 2019 - 2024. All rights reserved.