ubuntu16.04安装workbench

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

报错:

Selecting previously unselected package mysql-workbench-community.
(Reading database ... 216034 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) ...
dpkg: dependency problems prevent configuration of 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 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 libpcrecpp0v5 (>= 7.7); however:
  Package libpcrecpp0v5 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 libzip4 (>= 0.10); however:
  Package libzip4 is not installed.
 mysql-workbench-community depends on python-paramiko (>= 1.15.1); however:
  Package pyth
dpkg: error processing package mysql-workbench-community (--install):
 dependency problems - leaving unconfigured
Processing triggers for shared-mime-info (1.5-2ubuntu0.1) ...
Processing triggers for hicolor-icon-theme (0.15-0ubuntu1) ...
Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu5.1) ...
Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20160824-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for mime-support (3.59ubuntu1) ...
Errors were encountered while processing:
 mysql-workbench-community

然后执行

sudo apt install libgeos-c1v5 libhdf4-0-alt libmysqlclient20 libnetcdf11 libpcrecpp0v5 libpq5 libxerces-c3.1 libzip4 python-paramiko

继续报错:

skh@skh-vm:~/Downloads$ sudo apt-get install libpq5
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-community : Depends: libgeos-c1v5 (>= 3.4.2) but it is not going to be installed
                             Depends: libhdf4-0-alt but it is not going to be installed
                             Depends: libmysqlclient20 (>= 5.7.11) but it is not going to be installed
                             Depends: libnetcdf11 (>= 4.0.1) but it is not going to be installed
                             Depends: libpcrecpp0v5 (>= 7.7) but it is not going to be installed
                             Depends: libxerces-c3.1 but it is not going to be installed
                             Depends: libzip4 (>= 0.10) but it is not going to be installed
                             Depends: python-paramiko (>= 1.15.1) but it is not going to be installed
                             Depends: python-crypto but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

根据提示,执行如下命令:

sudo apt-get -f install 

然后再执行安装:

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


有问题欢迎留言交流。

技术交流群:282575808

--------------------------------------

声明: 原创文章,未经允许,禁止转载!

--------------------------------------

原文地址:https://www.cnblogs.com/xxoome/p/8214115.html