我过去使用MySQL APT安装了MySQL Workbench。
我的软件存储库列表最近已更新,此后我的MySQL Workbench消失了。它仍然在磁盘上,但是没有启动。
我尝试去软件中心并尝试安装它,并且收到以下消息:
mysql-workbench: Depends: libgcc1 (>= 1:4.1.1) but 1:4.9.1-0ubuntu1 is to be installed
Depends: libgtkmm-2.4-1c2a (>= 1:2.24.0) but 1:2.24.4-1ubuntu1 is to be installed
Depends: libpcrecpp0 (>= 7.7) but 1:8.31-2ubuntu2 is to be installed
Depends: python:any (>= 2.7.1-0ubuntu2) but it is a virtual package
Depends: mysql-workbench-data (= 6.0.8+dfsg-2) but 6.0.8+dfsg-2 is to be installed
如果我尝试使用APT从APT安装
sudo apt-get install mysql-workbench
我懂了
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:
mysql-workbench : Depends: mysql-client
Recommends: mysql-utilities but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
然后,如果我尝试安装mysql-client
依赖项,则会收到类似的错误消息,指出需要它mysql-community-client
。
如果我尝试安装此社区客户端,我将收到另一个错误消息,提示它需要libstdc++6 (>= 4.9) but 4.8.2-19ubuntu1 is to be installed
。
如果我尝试安装此版本,则表明我已经拥有此版本。
我能做些什么?
发生此错误的原因是mysql-community-client
您尝试下载和安装的软件包需要libstdc++6 >=4.9
。libstdc++6
Ubuntu 14.04 LTS储存库上可用的最新版本是4.8.2-19ubuntu1
,比版本早4.9
。
我假设您正在运行Ubuntu 14.04,因为libstdc++6
您计算机上的软件包停留在4.8.2-19ubuntu1
。MySQL APT存储库当前具有适用于三个版本的Ubuntu的软件包:12.04、14.04和14.10。mysql-community-client
对于12.04和14.04都只需要libstdc++6 >=4.6
,而14.10需要版本libstdc++6 >=4.9
。
请检查您是否mysql-apt-config
为Ubuntu版本安装了正确的软件包。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句