我正在尝试安装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).
7条答案
按热度按时间4ktjp1zp1#
你可能跑了
dpkg无法解析依赖项,因此无法正常工作,现在MySQL Workbench的安装已中断。请运行以下命令:
之后,MySQL Workbench应该安装好了。
还要记住,我们提供downloads for Ubuntu(从下拉列表中选择Ubuntu Linux)。
lskq00tm2#
尝试再次安装,让它失败,并运行第二个命令:
我在ubuntu18.04上安装mysql5.7时遇到了类似的问题,这个问题出现在我的机器上,因为我首先试图用DEB包安装mysql,然后试图从mysql的apt库安装它。
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-installbrjng4g34#
安装失败后我使用
sudo apt --fix-broken install
一切都按预期工作
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下载并安装该软件包
请注意,这将降级libgdal20,至少在我的情况下:
你可以看到这里有多少包要删除,搅拌机其中之一,我。所以检查,如果你想这样做。之后,你应该很好地安装工作台(还没有尝试过,只是认为它会工作,我不想卸载搅拌机)。
另一种方法是从官方网站安装最新版本,获取for ubuntu软件包.https://dev.mysql.com/downloads/workbench/,但这并不令人放心。安装到目前为止,它运行良好。您会收到一条消息,提醒您系统可能会出现错误。您可以选择不再看到该消息。
最后一种方式,从源代码安装,我没有时间,所以我会更新,一旦它完成。我认为这将是最好的选择,作为一个很好的方式来学习新的东西。我会更新,并编写一个教程,一旦我这样做。
vpfxa7rd6#
对我来说这个命令起作用了
wvmv3b1j7#
下载mysql-工作台-社区_8.0.29-1ubuntu20.04www.example.com_amd64.deb
从https://downloads.mysql.com/archives/workbench/...不是mysql-工作台-社区-dbgsym...!!!
选择与您的Linux版本匹配的版本