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

标签 mysql linux ubuntu mysql-workbench

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

最佳答案

你可能跑了

dpkg -i mysql-workbench.deb

这不起作用,因为 dpkg 不解析依赖关系,现在 MySQL Workbench 的安装被破坏了。改为运行此命令:

sudo apt-get -f install

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

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

关于mysql - 在 ubuntu 12.04 上安装 mysql workbench 时出现依赖错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20396462/

相关文章:

mysql order by + limit 减慢查询速度

php - 根据从 MySQL 检索的数据填充 HTML 表头

linux - Vagrant Box 中的 ArangoDB 无人值守安装

linux - 读取 bash 环境变量

ubuntu - 在 Docker Ubuntu 镜像上运行 Confluent 启动命令时 Kafka 无法启动(名称或服务未知)

java - MySQL错误将 boolean 值存储到tinyint中

mysql - MySQL 查询中的竞争条件?减少库存

regex - Bash sed - 在字符串中查找主题标签

ubuntu - 创建表时出现 HBase 错误

Java 已安装,在 list 中,但执行产生 "./java: No such file or directory"