AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 588131
Accepted
kozlone
kozlone
Asked: 2015-02-22 05:19:41 +0800 CST2015-02-22 05:19:41 +0800 CST 2015-02-22 05:19:41 +0800 CST

无法在 Ubuntu 14.10 上安装 MariaDB

  • 772

我正在尝试使用 Ubuntu 14.10 在我的笔记本电脑上安装 MariaDB。每次我遇到错误。所以,问题是 MariaDB 需要 libmysqlclient18 版本 10.0.16 但安装了 5.xx。如果我安装 10.0.16,我会收到另一个应用程序需要 libmysqlclient18 以前版本的新错误。我已尝试执行MariaDB 安装指南页面上的步骤,但没有帮助。或者也许我做错了什么。

ant@ubuntupc:~$ sudo apt-get install mariadb-server
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 libmariadbclient18 : Depends: libmysqlclient18 (= 10.0.16+maria-1~utopic) but 5.5.41-0ubuntu0.14.10.1 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

ant@ubuntupc:~$ sudo apt-get install libmysqlclient18=10.0.16+maria-1~utopic
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  aptitude-common aptitude-doc-en cabextract intltool libaio1 libcwidget3
  libdbd-mysql-perl libdbi-perl libunique-3.0-0 libxml-parser-perl
  linux-headers-3.16.0-23 linux-headers-3.16.0-23-generic
  linux-image-3.16.0-23-generic linux-image-extra-3.16.0-23-generic
  mariadb-client-10.0 mariadb-client-core-10.0 mariadb-server-10.0
  mariadb-server-core-10.0
Use 'apt-get autoremove' to remove them.
The following packages will be upgraded:
  libmysqlclient18
1 upgraded, 0 newly installed, 0 to remove and 38 not upgraded.
5 not fully installed or removed.
Need to get 0 B/2 948 B of archives.
After this operation, 3 478 kB disk space will be freed.
dpkg: error processing archive /var/cache/apt/archives/libmysqlclient18_10.0.16+maria-1~utopic_amd64.deb (--unpack):
 libmysqlclient18:amd64 10.0.16+maria-1~utopic (Multi-Arch: no) is not co-installable with libmysqlclient18 which has multiple installed instances
Errors were encountered while processing:
 /var/cache/apt/archives/libmysqlclient18_10.0.16+maria-1~utopic_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


ant@ubuntupc:~$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  aptitude-common aptitude-doc-en cabextract intltool libaio1 libcwidget3
  libdbd-mysql-perl libdbi-perl libunique-3.0-0 libxml-parser-perl
  linux-headers-3.16.0-23 linux-headers-3.16.0-23-generic
  linux-image-3.16.0-23-generic linux-image-extra-3.16.0-23-generic
  mariadb-client-10.0 mariadb-client-core-10.0 mariadb-server-10.0
  mariadb-server-core-10.0
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  libmysqlclient18
The following packages will be upgraded:
  libmysqlclient18
1 upgraded, 0 newly installed, 0 to remove and 38 not upgraded.
5 not fully installed or removed.
Need to get 0 B/2 948 B of archives.
After this operation, 3 478 kB disk space will be freed.
Do you want to continue? [Д/н] y
dpkg: error processing archive /var/cache/apt/archives/libmysqlclient18_10.0.16+maria-1~utopic_amd64.deb (--unpack):
 libmysqlclient18:amd64 10.0.16+maria-1~utopic (Multi-Arch: no) is not co-installable with libmysqlclient18 which has multiple installed instances
Errors were encountered while processing:
 /var/cache/apt/archives/libmysqlclient18_10.0.16+maria-1~utopic_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
ant@ubuntupc:~$ 
14.10
  • 3 3 个回答
  • 2142 Views

3 个回答

  • Voted
  1. user283885
    2015-02-22T05:24:18+08:002015-02-22T05:24:18+08:00

    看来您有来自另一个应用程序使用的 mysql-client 库的工件。我建议做

    sudo aptitude search libmysql | grep '^i'
    

    这将显示已安装的 libmysql 版本,您可以尝试使用 apt 将其一一删除。您安装的应用程序之一可能依赖于所述版本并在此过程中强行删除自身。

    • 1
  2. Best Answer
    kozlone
    2015-02-24T08:35:43+08:002015-02-24T08:35:43+08:00

    似乎我找到了解决方案。我像典型的 Windows 用户一样修复了它:-) 只是删除了所有 mysql 和 mariadb 包,然后安装了 mariadb。

    • 1
  3. Slayer6
    2015-11-16T13:28:59+08:002015-11-16T13:28:59+08:00

    首先,彻底摆脱两个冲突的客户:

    sudo apt-get –purge remove libmariadbclient1
    sudo apt-get –purge remove libmysqlclient18
    

    然后再次尝试 mariadb 安装。它现在应该工作了。

    sudo apt-get update
    sudo apt-get install mariadb-server-10.1
    

    最后,

    sudo apt-get upgrade
    

    看到一切都恢复正常。

    取自 http://mikelfox.com/mysql/problems-installing-mariadb-5-5-10-1-on-ubuntu-12-13-14-04-etc/

    • 0

相关问题

  • 阻止“x”的 Viber 图标 [重复]

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve