MySQL Workbench 在 Ubuntu 16.04 上安装失败

MySQL Workbench 在 Ubuntu 16.04 上安装失败

我正在尝试安装 MySQL Workbench。我安装了 mysql 服务器并下载了以下包:

mysql-workbench-community-6.3.10-1ubuntu16.04-amd64.deb

我使用了命令:

sudo dpkg -i mysql-workbench-community-6.3.10-1ubuntu16.04-amd64.deb

但我得到了:

Selecting previously unselected package mysql-workbench-community.
(Reading database ... 467972 files and directories currently installed.)
Preparing to unpack mysql-workbench-community-6.3.10-1ubuntu16.04-amd64.deb ...
Unpacking mysql-workbench-community (6.3.10-1ubuntu16.04) ...

看起来软件包:依赖问题阻碍了 mysql-workbench-community 的配置:

mysql-workbench-community depends on libgeos-c1v5 (>= 3.4.2); however:
   Package libgeos-c1v5 is not installed.
mysql-workbench-community depends on libhdf4-0-alt; however:
   Package libhdf4-0-alt is not installed.
mysql-workbench-community depends on libjasper1; however:
  Package libjasper1 is not installed.
mysql-workbench-community depends on libmysqlclient20 (>= 5.7.11); however:
  Package libmysqlclient20 is not installed.
mysql-workbench-community depends on libnetcdf11 (>= 4.0.1); however:
  Package libnetcdf11 is not installed.
mysql-workbench-community depends on libpng12-0 (>= 1.2.13-4); however:
  Package libpng12-0 is not installed.
 mysql-workbench-community depends on libpq5; however:
  Package libpq5 is not installed.
mysql-workbench-community depends on libxerces-c3.1; however:
  Package libxerces-c3.1 is not installed.
mysql-workbench-community depends on python-crypto; however:
  Package python-crypto is not installed.
**dpkg:** error processing package mysql-workbench-community (--install):
 dependency problems - leaving unconfigured
Processing triggers for shared-mime-info (1.8-1) ...
Processing triggers for hicolor-icon-theme (0.17-1) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu3.17.10.1) ...
Processing triggers for bamfdaemon (0.5.3+17.10.20170810-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for gnome-menus (3.13.3-6ubuntu5) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Errors were encountered while processing:  
 mysql-workbench-community

答案1

我也曾经追逐过这个噩梦。

我的建议是不要尝试从下载的软件包安装。您的内置存储库应该已经有了。在提出此建议时,它们是 16.04。

尝试:

sudo apt update && sudo apt upgrade
sudo apt install mysql-workbench

这对我来说很有效。我希望它对你也有用。

答案2

快速安装 mysql-workbench-community

相关内容