在ubuntu 12.04上安装mysql workbench时出现依赖项错误

在ubuntu 12.04上安装mysql workbench时出现依赖项错误,mysql,linux,ubuntu,mysql-workbench,Mysql,Linux,Ubuntu,Mysql Workbench,我正在尝试安装mysql工作台。我正在犯错误。它似乎在某个默认目录中查找mysql。我已经安装了所有必需的东西,但不是mysqlworkbench所期望的位置。出路是什么 local@host:/var/www/$ sudo apt-get -f install mysql-workbench Reading package lists... Done Building dependency tree Reading state information... Done You mi

我正在尝试安装mysql工作台。我正在犯错误。它似乎在某个默认目录中查找mysql。我已经安装了所有必需的东西,但不是mysqlworkbench所期望的位置。出路是什么

local@host:/var/www/$ sudo apt-get -f install mysql-workbench
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 mysql-workbench : Depends: libctemplate0 but it is not going to be installed
                   Depends: libgtkmm-2.4-1c2a (>= 1:2.24.0) but it is not going to be installed
                   Depends: libmysqlclient18 (>= 5.5.13-1) but it is not going to be installed
                   Depends: libtinyxml2.6.2 but it is not going to be installed
                   Depends: libzip2 (>= 0.10) but it is not going to be installed
                   Depends: mysql-workbench-data (= 5.2.38+dfsg-3) but it is not going to be installed
                   Depends: mysql-client
                   Depends: python-mysql.connector but it is not going to be installed
                   Depends: python-paramiko but it is not going to be installed
                   Depends: python-pysqlite2 but it is not going to be installed
                   Depends: python-all but it is not going to be installed
                   Recommends: ttf-bitstream-vera but it is not going to be installed
                   Recommends: mysql-utilities but it is not installable
 mysql-workbench-community : Depends: libctemplate2 but it is not installable
                             Depends: libglib2.0-0 (>= 2.35.9) but 2.32.3-0ubuntu1 is to be installed
                             Depends: libglibmm-2.4-1c2a (>= 2.33.13) but 2.32.0-0ubuntu1 is to be installed
                             Depends: libgtkmm-2.4-1c2a (>= 1:2.24.0) but it is not going to be installed
                             Depends: libmysqlclient18 (>= 5.5.13-1) but it is not going to be installed
                             Depends: libpcrecpp0 (>= 7.7) but it is not going to be installed
                             Depends: libtinyxml2.6.2 but it is not going to be installed
                             Depends: libzip2 (>= 0.10) but it is not going to be installed
                             Depends: python-paramiko but it is not going to be installed
                             Depends: mysql-client
                             Depends: python-pysqlite2 but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
你可能跑了

dpkg -i mysql-workbench.deb
这不起作用,因为dpkg没有解决依赖关系,现在MySQL Workbench的安装已中断。改为运行此命令:

sudo apt-get -f install
之后,MySQL工作台应该可以很好地安装


请记住,我们从下拉列表中选择了Ubuntu Linux。

我也遇到了同样的问题,但下面的方法对我很有效。sudo apt get update然后sudo apt get install mysql workbench使用此链接了解更多详细信息-

如果错误为: 以下包具有未满足的依赖项: mysql工作台:依赖项:gdal-abi-2-1-2 更新包树不会起任何作用

注意:这是一组尝试的想法,因此答案不完整,但我认为它可以帮助一些人[我没有时间测试所有选项],当我这样做时,我会更新

解决方案是下载该软件包并从 直接下载链接

请注意,这将降级libgdal20,至少在我的情况下是这样的:

The following packages will be REMOVED:
  blender frei0r-plugins libopencv-calib3d3.2 libopencv-contrib3.2 libopencv-features2d3.2 libopencv-highgui3.2 libopencv-imgcodecs3.2
  libopencv-objdetect3.2 libopencv-stitching3.2 libopencv-superres3.2 libopencv-videoio3.2 libopencv-videostab3.2 libopencv-viz3.2 libopenimageio1.8
  libvtk6.3
The following NEW packages will be installed:
  libarmadillo7 libdap23 libnetcdf11 libproj12 libxerces-c3.1
The following packages will be DOWNGRADED:
  libgdal20
你可以在这里看到有多少个包裹被移除,为我搅拌其中一个。所以,检查一下你是否想这样做。 之后,你们应该很好地安装工作台并没有尝试过它,只是认为它会工作,我不想卸载搅拌机

另一种方法是从官方网站上安装最新版本,获得ubuntu版软件包,这并不令人放心。 安装到目前为止,它工作正常。您将收到一条关于系统的消息,提示可能发生错误。您可以选择不再查看该消息


最后一种方法,从源代码安装,我现在没有时间,所以我会在完成后更新。我认为这将是最好的选择,作为学习新事物的好方法。完成后,我将更新并编写教程。

再次尝试安装,让它失败并运行第二个命令:

sudo apt-get -f install mysql-workbench
sudo apt --fix-broken install
在我试图在Ubuntu18.04上安装mysql 5.7时,我也遇到了类似的问题。问题出现在我的机器上,因为我首先尝试使用DEB包安装mysql,然后尝试从mysql的apt存储库安装它

sudo apt-get -f install mysql-workbench
sudo apt --fix-broken install