【问题标题】:Not able to install mysql-workbench in ubuntu 12.10无法在 ubuntu 12.10 中安装 mysql-workbench
【发布时间】:2015-04-25 21:24:41
【问题描述】:

我正在尝试使用以下命令在我的 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

【问题讨论】:

    标签: mysql ubuntu mysql-workbench ubuntu-12.10


    【解决方案1】:

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

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

    我的 resources.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 更新

    2. sudo apt-get install mysql-workbench

    它会起作用的.....

    【讨论】:

      【解决方案2】:

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

      【讨论】:

        【解决方案3】:
        sudo add-apt-repository ppa:olivier-berten/misc 
        
        sudo apt-get update 
        
        sudo apt-get install  mysql-workbench
        

        这对我有用ref link

        【讨论】:

          【解决方案4】:

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

          【讨论】:

            【解决方案5】:

            改为运行此命令:

            sudo apt-get -f install
            

            之后应该可以正常安装 MySQL Workbench。

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

            【讨论】:

              【解决方案6】:

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

              【讨论】:

                猜你喜欢
                • 2021-05-21
                • 1970-01-01
                • 2013-01-06
                • 1970-01-01
                • 1970-01-01
                • 2012-11-20
                • 1970-01-01
                • 1970-01-01
                • 2016-10-24
                相关资源
                最近更新 更多