在Ubuntu 14.04上安装Mysql Workbench


10

我已安装Ubuntu社区支持的MariaDb,在最新LTS的发行说明中提到。

之后,我尝试安装Mariadb-client,该安装也成功安装了,这对拥有GUI工具来说很好,因此决定从Ubuntu-SOftware-Center和通过Terminal都安装MySql-workbench,但是它提示了以下提到的错误-

通过Ubuntu-Software-Center-错误

 This error could be caused by required additional software packages which are missing or not installable. Furthermore there could be a conflict between software packages which are not allowed to be installed at the same time.
 mysql-workbench: Depends: libgcc1 (>= 1:4.1.1) but 1:4.9-20140406-0ubuntu1 is to be installed
             Depends: libgtkmm-2.4-1c2a (>= 1:2.24.0) but 1:2.24.4-1ubuntu1 is to be installed
             Depends: libpcrecpp0 (>= 7.7) but 1:8.31-2ubuntu2 is to be installed
             Depends: python:any (>= 2.7.1-0ubuntu2) but it is a virtual package
             Depends: mysql-workbench-data (= 6.0.8+dfsg-2) but 6.0.8+dfsg-2 is to be installed.

通过终端错误-

 The following packages have unmet dependencies:
    mysql-workbench : Depends: mysql-client
    E: Unable to correct problems, you have held broken packages.

如此处所述,此漏洞已成为启动板上已确认的错误

在My-sql的官方网站上,仅可以使用saucy(13.10)之前的工作台版本,因此如何安装它。

更新1

/etc/apt/sources.list中添加了以下几行

# MariaDB 10.0 repository list - created 2014-04-19 11:47 UTC
# http://mariadb.org/mariadb/repositories/
deb http://mirror.mephi.ru/mariadb/repo/10.0/ubuntu trusty main
deb-src http://mirror.mephi.ru/mariadb/repo/10.0/ubuntu trusty main

没有变化,还是同样的问题。在trusty和Mariadb的10.1.10版本之间存在一些问题。如此尝试

sudo apt-get install libmysqlclient18=10.1.10-mariadb1~trusty mysql-common=10.1.10-mariadb1~trusty

它的输出是-

E: Version '10.1.10-mariadb1~trusty' for 'libmysqlclient18' was not found
E: Version '10.1.10-mariadb1~trusty' for 'mysql-common' was not found

所以事情很简单,找不到它。虽然它在官方网站上。

更新2

删除了MariaDB 10.1.10,但问题仍然与MariaDB 5.5.37相同。


我认为Mysql与MariaDB发生冲突
karim 2014年

1
这是导致此问题的已报告错误的链接。它已经得到修复,计划于6.1.7 bugs.mysql.com/bug.php?id=72729
elbaloo 2014年

只需尝试一下: sudo apt-get install mysql-workbench
murtaza.webdev

Answers:


6

我通过使用最新的社区版本并从依赖项中删除mysql-client来解决它

假设mariadb已经安装

http://dev.mysql.com/downloads/tools/workbench/下载mysql workbench (14.04上的13.10版本可以)

从目录下载文件,运行:

sudo apt-get remove mysql-workbench mysql-workbench-data

dpkg-deb -x mysql-workbench-community-6.*.deb tmp_mysql-workbench
dpkg-deb --control mysql-workbench-community-6.*.deb tmp_mysql-workbench/DEBIAN
sed -i -e 's/mysql-client, //' tmp_mysql-workbench/DEBIAN/control
dpkg -b tmp_mysql-workbench mysql-workbench-community_patched.deb

sudo dpkg -i mysql-workbench-community_patched.deb

大!只需删除正则表达式(第4行)上的结尾逗号和空格。就我而言,我将其替换为“ mysql-client-5.6”
mppfiles 2014年

1
适用于6.1.6工作台和x64 ubuntu 14.04。谢谢!
akikara 2014年

这种联系没有提供下载的Ubuntu 14.04


3

这是一个错误,应该修复,但这是一个临时解决方案:

  1. 将mysql-workbench-community-6.1.4-1ubu1310-amd64.deb解压缩到一个文件夹中。
  2. 更改文件“ DEBIAN / control”,将“ mysql-client”替换为“ mysql-client-5.6”。
  3. 转到终端并创建一个新的“ .deb”:

    dpkg -b mysql-workbench-community-6.1.4-1ubu1310-amd64 /

做完了!现在,您可以从新的deb文件安装。


1

我从官方网站(13.10)下载了.deb,但没有遇到任何问题。

但我有mysql服务器,而不是mariadb


是的,首先我要谈论的是官方网站上无法提供的.deb文件的14.04,第二,我也将它与ubuntu 13.10一起使用,并且工作正常,第三件事我想知道是否有任何工作可解决此问题。最后一件事情得到了一些回购,因为这不是一个答案,不能以任何方式被认为是一个答案,您可以在获得一些评论后对其进行评论。
Sukupa91 2014年

1
我使用Ubuntu 14.04。我认为您应该使用比mariadb更高的mysql-server raither
Nymeria

1
这将是我的最后选择。.我将尝试修复它,然后等待答案。
Sukupa91 2014年

1

我有一个6.2.3-1ubu1404版本,它根本不包含“ mysql-server”字符串。但是由于未满足的依赖性,我无法安装。

我以某种方式尝试通过以下方式手动安装需求

# sudo apt-get install libgtkmm-2.4-1c2a libtinyxml2.6.2 libzip2 python-paramiko libproj0 proj-data

我工作。

我的实际错误是这个:

$ sudo dpkg -i mysql-workbench-community-6.2.3-1ubu1404-amd64.deb 
Selecting previously unselected package mysql-workbench-community.
(Reading database ... 221745 files and directories currently installed.)
Preparing to unpack mysql-workbench-community-6.2.3-1ubu1404-amd64.deb ...
Unpacking mysql-workbench-community (6.2.3-1ubu1404) ...
dpkg: dependency problems prevent configuration of mysql-workbench-community:
 mysql-workbench-community depends on libgtkmm-2.4-1c2a (>= 1:2.24.0); however:
  Package libgtkmm-2.4-1c2a is not installed.
 mysql-workbench-community depends on libtinyxml2.6.2; however:
  Package libtinyxml2.6.2 is not installed.
 mysql-workbench-community depends on libzip2 (>= 0.10); however:
  Package libzip2 is not installed.
 mysql-workbench-community depends on python-paramiko; however:
  Package python-paramiko is not installed.
 mysql-workbench-community depends on libproj0; however:
  Package libproj0 is not installed.

dpkg: error processing package mysql-workbench-community (--install):
 dependency problems - leaving unconfigured
Processing triggers for gnome-menus (3.10.1-0ubuntu2) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu1) ...
Processing triggers for mime-support (3.54ubuntu1) ...
Processing triggers for menu (2.1.46ubuntu1) ...
Processing triggers for shared-mime-info (1.2-0ubuntu3) ...
Processing triggers for hicolor-icon-theme (0.13-1) ...
Errors were encountered while processing:
 mysql-workbench-community
dincer@dincerExp:~/Downloads$ sudo dpkg -i mysql-workbench-community-6.2.3-1ubu1404-amd64.deb 
(Reading database ... 223036 files and directories currently installed.)
Preparing to unpack mysql-workbench-community-6.2.3-1ubu1404-amd64.deb ...
Unpacking mysql-workbench-community (6.2.3-1ubu1404) over (6.2.3-1ubu1404) ...
Setting up mysql-workbench-community (6.2.3-1ubu1404) ...
Processing triggers for gnome-menus (3.10.1-0ubuntu2) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu1) ...
Processing triggers for mime-support (3.54ubuntu1) ...
Processing triggers for menu (2.1.46ubuntu1) ...
Processing triggers for shared-mime-info (1.2-0ubuntu3) ...
Processing triggers for hicolor-icon-theme (0.13-1) ...

我真的很抱歉,但是我目前还没有安装ubuntu ..因此,我将在一段时间后尝试使用它,然后让您知道..
Sukupa91 2014年

1
只需在debian上尝试相同的方法,甚至可以使用。它们都是deb存储库。我怀疑版本号是否匹配。但是,请尝试让我们知道发生了什么。
JSBach 2014年
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.