无法在ubuntu 12.10中安装mysql-workbench

时间:2015-02-24 09:56:12

标签: mysql ubuntu mysql-workbench ubuntu-12.10

我正在尝试使用以下命令在我的ubuntu 12.10中安装msyql-workbench

sudo apt-get install mysql-workbench

但它显示以下错误。

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
mysql-workbench : Depends: python-all but it is not going to be installed
               Recommends: mysql-utilities but it is not installable

我试过了

sudo apt-get install python-all

但它显示错误,

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 python-all : Depends: python (= 2.7.3-0ubuntu2.2) but 2.7.3-0ubuntu7 is to be installed
E: Unable to correct problems, you have held broken packages.

以下命令也无法正常工作

sudo apt-get -f install mysql-workbench

6 个答案:

答案 0 :(得分:5)

sudo add-apt-repository ppa:olivier-berten/misc 

sudo apt-get update 

sudo apt-get install  mysql-workbench

这对我有用ref link

答案 1 :(得分:3)

转到this link,其中所有下载墨水都可用,然后使用 ctrl + f 搜索ubu1204你会获得不同的分布,选择第32位/ 64,然后使用软件中心运行文件,它可以工作。

mysql ubuntu distributions

答案 2 :(得分:1)

尝试sudo apt-get update,然后尝试安装

答案 3 :(得分:0)

尝试制作一个sudo apt-get install python-all和sudo apt-get install mysql-utilities。然后再试一次。

答案 4 :(得分:0)

改为运行此命令:

sudo apt-get -f install

之后应该安装MySQL Workbench。

确保从下拉列表中选择了Ubuntu Linux。 Here

答案 5 :(得分:0)

我不确定这是解决此错误的好方法,但我已在ubuntu 16.04中解决

您必须将我的resources.list文件复制并粘贴到您的位置/etc/apt/sources.list

我的资源.list文件

=============================================== ===========================

# deb cdrom:[Ubuntu 14.04.3 LTS _Trusty Tahr_ - Beta amd64 (20150805)]/ trusty main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://in.archive.ubuntu.com/ubuntu/ xenial main restricted
deb-src http://in.archive.ubuntu.com/ubuntu/ xenial main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://in.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
deb-src http://in.archive.ubuntu.com/ubuntu/ xenial-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://in.archive.ubuntu.com/ubuntu/ xenial universe
deb-src http://in.archive.ubuntu.com/ubuntu/ xenial universe
deb http://in.archive.ubuntu.com/ubuntu/ xenial-updates universe
deb-src http://in.archive.ubuntu.com/ubuntu/ xenial-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
## team, and may not be under a free licence. Please satisfy yourself as to 
## your rights to use the software. Also, please note that software in 
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://in.archive.ubuntu.com/ubuntu/ xenial multiverse
deb-src http://in.archive.ubuntu.com/ubuntu/ xenial multiverse
deb http://in.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
deb-src http://in.archive.ubuntu.com/ubuntu/ xenial-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://in.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://in.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu xenial-security main restricted
deb-src http://security.ubuntu.com/ubuntu xenial-security main restricted
deb http://security.ubuntu.com/ubuntu xenial-security universe
deb-src http://security.ubuntu.com/ubuntu xenial-security universe
deb http://security.ubuntu.com/ubuntu xenial-security multiverse
deb-src http://security.ubuntu.com/ubuntu xenial-security multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu trusty partner
# deb-src http://archive.canonical.com/ubuntu trusty partner

deb http://archive.canonical.com/ xenial partner
# deb-src http://archive.canonical.com/ trusty partner

=============================================== ===========================

并在运行以下命令后

  1. sudo apt-get update

  2. sudo apt-get install mysql-workbench

  3. 它会起作用.....