【问题标题】:Dependency error while installing mysql workbench on ubuntu 12.04在 ubuntu 12.04 上安装 mysql 工作台时出现依赖关系错误
【发布时间】:2013-12-22 04:26:04
【问题描述】:

我正在尝试安装 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).

【问题讨论】:

    标签: mysql linux ubuntu mysql-workbench


    【解决方案1】:

    你可能跑了

    dpkg -i mysql-workbench.deb
    

    这不起作用,因为 dpkg 无法解决依赖关系,现在 MySQL Workbench 的安装已损坏。改为运行此命令:

    sudo apt-get -f install
    

    之后应该可以正常安装 MySQL Workbench。

    另外请记住,我们提供 downloads for Ubuntu(从下拉列表中选择 Ubuntu Linux)。

    【讨论】:

      【解决方案2】:

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

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

      对于我尝试在 ubuntu 18.04 上安装 mysql 5.7 的类似问题,这对我起到了作用。问题出现在我的机器上,因为我首先尝试使用 DEB 包安装 mysql,然后尝试从 mysql 的 apt 存储库安装它。

      【讨论】:

        【解决方案3】:

        我遇到了同样的问题,但下面的方法对我有用。 sudo apt-get update 然后 sudo apt-get install mysql-workbench 使用此链接了解更多详情 - http://dev.mysql.com/doc/mysql-apt-repo-quick-guide/en/#apt-repo-fresh-install

        【讨论】:

          【解决方案4】:

          如果错误是: 以下包具有未满足的依赖项: mysql-workbench:取决于:gdal-abi-2-1-2 更新包树不会做任何事情。

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

          一种解决方案是下载该软件包并从 https://debian.pkgs.org/9/debian-main-amd64/libgdal20_2.1.2+dfsg-5_amd64.deb.html 直接下载链接 http://ftp.br.debian.org/debian/pool/main/g/gdal/libgdal20_2.1.2+dfsg-5_amd64.deb

          sudo apt install ./libgdal20_2.1.2+dfsg-5_amd64.deb  # and that being in the download folder
          

          请注意,至少在我的情况下,这将降级 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
          

          您可以在此处查看要删除多少包,为我搅拌其中一个。所以检查你是否想这样做。 之后你应该很好地安装工作台(没有尝试过,只是认为它会工作,我不想卸载搅拌机)。

          另外一个不太靠谱的方法是从官网安装最新版本,获取for ubuntu包。 https://dev.mysql.com/downloads/workbench/。 安装它到目前为止工作正常。您将收到有关系统的消息警报,并且可能会发生错误。您可以选择不再看到该消息。

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

          【讨论】:

            猜你喜欢
            • 2016-05-30
            • 2013-06-15
            • 2012-09-02
            • 2014-04-16
            • 1970-01-01
            • 1970-01-01
            • 1970-01-01
            • 2013-05-07
            • 1970-01-01
            相关资源
            最近更新 更多