在ubuntu 12.04上安装mysql工作台时出现依赖性错误

0g0grzrc  于 2023-01-29  发布在  Mysql
关注(0)|答案(7)|浏览(453)

我正在尝试安装mysqlworkbench。我得到下面的错误。它似乎在一些默认目录中寻找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).
4ktjp1zp

4ktjp1zp1#

你可能跑了

dpkg -i mysql-workbench.deb

dpkg无法解析依赖项,因此无法正常工作,现在MySQL Workbench的安装已中断。请运行以下命令:

sudo apt-get -f install

之后,MySQL Workbench应该安装好了。
还要记住,我们提供downloads for Ubuntu(从下拉列表中选择Ubuntu Linux)。

lskq00tm

lskq00tm2#

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

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

我在ubuntu18.04上安装mysql5.7时遇到了类似的问题,这个问题出现在我的机器上,因为我首先试图用DEB包安装mysql,然后试图从mysql的apt库安装它。

jogvjijk

jogvjijk3#

我遇到了同样的问题,但以下方法对我有效。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

brjng4g3

brjng4g34#

安装失败后我使用
sudo apt --fix-broken install
一切都按预期工作

olqngx59

olqngx595#

如果错误为:以下程序包具有未满足的依赖项:mysql工作台:Depends: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/,但这并不令人放心。安装到目前为止,它运行良好。您会收到一条消息,提醒您系统可能会出现错误。您可以选择不再看到该消息。
最后一种方式,从源代码安装,我没有时间,所以我会更新,一旦它完成。我认为这将是最好的选择,作为一个很好的方式来学习新的东西。我会更新,并编写一个教程,一旦我这样做。

vpfxa7rd

vpfxa7rd6#

对我来说这个命令起作用了

sudo apt-get -f install ./mysql-workbench-community-dbgsym_8.0.28-1ubuntu20.04_amd64.deb
wvmv3b1j

wvmv3b1j7#

下载mysql-工作台-社区_8.0.29-1ubuntu20.04www.example.com_amd64.deb
https://downloads.mysql.com/archives/workbench/...不是mysql-工作台-社区-dbgsym...!!!
选择与您的Linux版本匹配的版本

sudo apt-get update
sudo apt --fix-broken install
sudo apt install gnome-keyring libproj-dev libpcrecpp0v5
sudo dpkg -i mysql-workbench-community_8.0.29-1ubuntu20.04_amd64.deb

相关问题