我是 Ubuntu Linux 的新手。我的教授要求我们下载 Ubuntu 10.10。我尝试过多次下载 32 位和 64 位 Debian 软件包中的 MySQL,但总是失败。请参阅下面我在终端中输入的内容。如您所见,我收到一个错误。我还在 Ubuntu 软件中心收到一个错误,指出“依赖关系无法满足:libatkmm-1.6-1 (>= 2.22.1)”。您能否给我一些指导,让我知道我做错了什么。提前谢谢您。
root@ubuntu:~# dpkg -i '/home/user/mysql-workbench-gpl-5.2.47-1ubu1204-i386.deb'Selecting previously deselected package mysql-workbench-gpl.
(Reading database ... 118286 files and directories currently installed.)
Unpacking mysql-workbench-gpl (from .../mysql-workbench-gpl-5.2.47-1ubu1204-i386.deb) ...
dpkg: dependency problems prevent configuration of mysql-workbench-gpl:
mysql-workbench-gpl depends on libatkmm-1.6-1 (>= 2.22.1); however:
Package libatkmm-1.6-1 is not installed.
mysql-workbench-gpl depends on libc6 (>= 2.15); however:
Version of libc6 on system is 2.12.1-0ubuntu6.
mysql-workbench-gpl depends on libctemplate0; however:
Package libctemplate0 is not installed.
mysql-workbench-gpl depends on libglib2.0-0 (>= 2.31.8); however:
Version of libglib2.0-0 on system is 2.26.0-0ubuntu1.
mysql-workbench-gpl depends on libglibmm-2.4-1c2a (>= 2.32.0); however:
Version of libglibmm-2.4-1c2a on system is 2.25.5-0ubuntu1.
mysql-workbench-gpl depends on libgtk2.0-0 (>= 2.24.0); however:
Version of libgtk2.0-0 on system is 2.22.0-0ubuntu1.
mysql-workbench-gpl depends on libgtkmm-2.4-1c2a (>= 1:2.24.0); however:
Version of libgtkmm-2.4-1c2a on system is 1:2.20.3-1.
mysql-workbench-gpl depends on libmysqlclient18 (>= 5.5.13-1); however:
Package libmysqlclient18 is not installed.
mysql-workbench-gpl depends on libpangomm-1.4-1 (>= 2.27.1); however:
Version of libpangomm-1.4-1 on system is 2.26.2-1.
mysql-workbench-gpl depends on libpcre3 (>= 8.10); however:
Version of libpcre3 on system is 8.02-1.
mysql-workbench-gpl depends on libpython2.7 (>= 2.7); however:
Package libpython2.7 is not installed.
mysql-workbench-gpl depends on libstdc++6 (>= 4.6); however:
Version of libstdc++6 on system is 4.5.1-7ubuntu2.
mysql-workbench-gpl depends on libzip2 (>= 0.10); however:
Package libzip2 is not installed.
mysql-workbench-gpl depends on python-paramiko; however:
Package python-paramiko is not installed.
mysql-workbench-gpl depends on mysql-client; however:
Package mysql-client 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 desktop-file-utils ...
Processing triggers for python-gmenu ...
Rebuilding /usr/share/applications/desktop.en_US.utf8.cache...
Processing triggers for hicolor-icon-theme ...
Processing triggers for shared-mime-info ...
Processing triggers for python-support ...
Errors were encountered while processing:
mysql-workbench-gpl
答案1
打开你的终端。输入以下内容:
sudo apt-get update
sudo apt-get install libctemplate0 libzip1 python-pysqlite2 mysql-client python-crypto python-paramiko
sudo apt-get install mysql-workbench
按 Enter 并写下您的密码,然后再次按 Enter。完成
答案2
您想要安装 MySQL Workbench。
您尝试安装的版本是为 Ubuntu 12.04 制作的,并且对某些依赖项有一些版本要求。
如果被迫使用 10.10,则需要尝试使用 MySQL Workbench 10.04/10.10,但仍然建议使用 12.04。
此外,在安装与 10.10 兼容的 MySQL Workbench 后,您需要执行
sudo apt-get install -f
修复依赖关系。
如果您从 MySQL.com 下载,请选择较旧的版本(在选择平台的右侧)并下载 10.04 版本。如果您的安装在 32 上,请选择 32;如果安装在 64 上,请选择 64。