我正在尝试安装mysql workbench。我收到了以下错误。它似乎在某个默认目录中查找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).
答案 0 :(得分:9)
你可能已经
了dpkg -i mysql-workbench.deb
由于dpkg无法解析依赖关系,因此无法解决问题,现在MySQL Workbench的安装已经破解。改为运行此命令:
sudo apt-get -f install
之后应该安装MySQL Workbench。
另请注意,我们提供downloads for Ubuntu(从下拉列表中选择 Ubuntu Linux )。
答案 1 :(得分:2)
尝试再次安装,让其失败并运行第二个命令:
sudo apt-get -f install mysql-workbench
sudo apt --fix-broken install
对于我尝试在ubuntu 18.04上安装mysql 5.7的类似问题,这给我带来了帮助。问题出现在我的机器上,因为我首先尝试使用DEB软件包安装mysql,然后尝试从mysql的apt存储库中安装它。
答案 2 :(得分:1)
我遇到了同样的问题,但下面的方法对我有用。 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
答案 3 :(得分:0)
如果错误是: 以下软件包具有未满足的依赖性: 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
您可以在这里看到要除去的包装,为我搅拌其中一个。因此,请检查您是否要这样做。 之后,您应该会很好地安装工作台(还没有尝试过,只是认为它会工作,所以我不想卸载Blender)。
另一种方法(请放心)是从官方网站安装最新版本,并获得for ubuntu软件包。 https://dev.mysql.com/downloads/workbench/。 到目前为止安装正常。您将收到一条有关系统的警报消息,并且可能会发生错误。您可以选择不再看到该消息。
最后一种方法是从源代码安装,我目前没有时间,所以一旦完成,我将进行更新。我认为这将是最好的选择,是学习新事物的好方法。完成后,我将更新并编写教程。