我正在尝试在 ubuntu 16.04 中安装 mysql workbench。我刚刚安装了操作系统。
sudo dpkg -i mysql-workbench-community-6.3.9-1ubuntu16.04-amd64.deb
[sudo] password for lucas:
Selecting previously unselected package mysql-workbench-community.
(Reading database ... 179177 files and directories currently installed.)
Preparing to unpack mysql-workbench-community-6.3.9-1ubuntu16.04-amd64.deb ...
Unpacking mysql-workbench-community (6.3.9-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 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 libpcrecpp0v5 (>= 7.7); however:
Package libpcrecpp0v5 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 libzip4 (>= 0.10); however:
Package libzip4 is not installed.
mysql-workbench-community depends on python-paramiko (>= 1.15.1); however:
Package python-paramiko 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.15-1) ...
Processing triggers for bamfdaemon (0.5.3+17.04.20170406-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for gnome-menus (3.13.3-6ubuntu5) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu2) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Errors were encountered while processing:
mysql-workbench-community
答案1
该问题是由于mysql-workbench-community
之前未安装包依赖项造成的。
因此,在安装包之前尝试安装它们mysql-workbench-community
。
sudo apt update
sudo apt install libgeos-c1v5 libhdf4-0-alt libjasper1 libmysqlclient20 libnetcdf11 libpcrecpp0v5 libpng12-0 libpq5 libxerces-c3.1 libzip4 python-paramiko python-crypto
sudo dpkg -i mysql-workbench-community-6.3.9-1ubuntu16.04-amd64.deb
或者作为选择和最好的办法通过以下方式自动执行此安装过程gdebi
:
sudo apt install gdebi
sudo gdebi mysql-workbench-community-6.3.9-1ubuntu16.04-amd64.deb
更新: 两个都libjasper1和libpng12-0这些软件包可在 Xenial 存储库中找到。
因此,要安装它们,您的xenial-security main
和xenial main
存储库应该已启用。然后尝试sudo apt update
。现在您可以安装它们了。
另外,作为第二种选择,您可以手动下载并安装这些软件包:
libjasper1
对于 Xenial 64 位:下载
libpng12-0
对于 Xenial 64 位:下载
然后使用以下命令安装它们:
sudo gdebi libjasper1_1.900.1-debian1-2.4ubuntu1.1_amd64.deb libpng12-0_1.2.54-1ubuntu1_amd64.deb
答案2
对于我来说缺少权限尝试在 Ubuntu 中向应用程序授予权限
1. Go To Ubuntu Store >> App
2. Give Read, Write Permissions for Workbench in Ubuntu Store