gpt4 book ai didi

mysql - 无法在 Ubuntu 14.04 上安装 MySQL - mysql-client libmysqlclient-dev

转载 作者:行者123 更新时间:2023-11-29 21:12:04 24 4
gpt4 key购买 nike

您好,我正在尝试在我的计算机上安装 mysql 服务器和客户端(Ubuntu 14.04)。
我正在运行以下命令:

sudo apt-get install mysql-server mysql-client libmysqlclient-dev

但是当机器安装mysql客户端时出现以下错误

Reading package lists... Done
Building dependency tree
Reading state information... Done
mysql-server is already the newest version.
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:
libmysqlclient-dev : Depends: libmysqlclient18 (= 5.5.47-0ubuntu0.14.04.1) but 10.0.24+maria-1~trusty is to be installed
W: Duplicate sources.list entry http://dl.google.com/linux/chrome/deb/ stable/main i386 Packages (/var/lib/apt/lists/dl.google.com_linux_chrome_deb_dists_stable_main_binary-i386_Packages)
W: You may want to run apt-get update to correct these problems
E: Unable to correct problems, you have held broken packages.

请帮我安装mysql

最佳答案

我运行了sudo apt-get install -f libmysqlclient18=5.5.47-0ubuntu0.14.04.1,它对我有用。

对于不同版本的强制安装,我认为您只需要显式显示需要作为依赖项安装的包的版本即可。例如

From the error log:

The following packages have unmet dependencies:libmysqlclient-dev : Depends: libmysqlclient18 (= 5.5.47-0ubuntu0.14.04.1) but 10.0.24+maria-1~trusty is to be installed

让您将libmysqlclient18=5.5.47-0ubuntu0.14.04.1作为依赖项。

关于mysql - 无法在 Ubuntu 14.04 上安装 MySQL - mysql-client libmysqlclient-dev,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36277587/

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