Ubuntu 12.04 64 位系统上的 MySQL Workbench 安装问题

Ubuntu 12.04 64 位系统上的 MySQL Workbench 安装问题

我收到依赖包错误,如下所示:

root@osscube:/home/abdul/Downloads# dpkg -i mysql-workbench-gpl-5.2.47-1ubu1004-amd64.deb
Selecting previously unselected package mysql-workbench-gpl.
(Reading database ... 153925 files and directories currently installed.)
Unpacking mysql-workbench-gpl (from mysql-workbench-gpl-5.2.47-1ubu1004-amd64.deb) ...
dpkg: dependency problems prevent configuration of mysql-workbench-gpl:
 mysql-workbench-gpl depends on libmysqlclient16 (>= 5.1.21-1); however:
  Package libmysqlclient16 is not installed.
 mysql-workbench-gpl depends on libpython2.6 (>= 2.6); however:
  Package libpython2.6 is not installed.
 mysql-workbench-gpl depends on libzip1 (>= 0.9); however:
  Package libzip1 is not installed.
 mysql-workbench-gpl depends on python-paramiko; however:
  Package python-paramiko is not installed.
 mysql-workbench-gpl depends on python-pysqlite2; however:
  Package python-pysqlite2 is not installed.
dpkg: error processing mysql-workbench-gpl (--install):
 dependency problems - leaving unconfigured
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf.index...
Processing triggers for desktop-file-utils ...
Processing triggers for gnome-menus ...
Processing triggers for hicolor-icon-theme ...
Processing triggers for shared-mime-info ...
Errors were encountered while processing:
 mysql-workbench-gpl

我尝试运行apt-get -f install,但没有成功。我还尝试安装以下依赖包:

apt-get install libmysqlclient16 libpython2.6 libzip1 python-paramiko python-pysqlite2
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libmysqlclient16 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package libpython2.6 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package libzip1 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libmysqlclient16' has no installation candidate
E: Package 'libpython2.6' has no installation candidate
E: Package 'libzip1' has no installation candidate

我该如何解决?

答案1

你试过使用 gdebi 吗?我已使用以下命令成功安装它:

sudo apt-get install gdebi-core
sudo gdebi ~/Downloads/mysql-workbench-gpl-5.2.47-1ubu1204-amd64.deb

与 不同aptgdebi能够正确解决依赖关系。

答案2

很容易就去Ubuntu 软件中心并输入

mysql-client

并安装它,这样你的依赖项也会安装。然后打开终端并输入:

sudo -i
dpkg -i package.deb  <use your package name here>

我想它会起作用。

答案3

这可能不是首选方法,但我从网站安装它。

http://dev.mysql.com/downloads/tools/workbench/

如果您使用的是 12.04,它已经相当过时了,而 MySQL workbench 之类的程序是获取最新和最强大功能的好程序。

答案4

使用此命令

sudo apt-get upgrade
sudo dpkg --force-all -i mysql-workbench-community-6.0.8-1ubu1304-amd64.deb

并将其移除

sudo apt-get -f install

相关内容