删除MariaDB后,DPKG依赖项出现问题,导致我无法使用apt-get

尼古拉斯·拉乌尔(Nicolas Raoul)

我试图像这样安装MariaDB ,并收到此错误:

dpkg: error processing /var/cache/apt/archives/libmysqlclient18_5.5.32+maria-1~raring_amd64.deb (--unpack):  
libmysqlclient18:amd64 5.5.32+maria-1~raring (Multi-Arch: no) is not co-installable with libmysqlclient18 which has multiple installed instances  
No apport report written because MaxReports is reached already

我尝试安装mysql-server,但是得到了:

The following packages have unmet dependencies:  
 libmariadbclient18 : Depends: libmysqlclient18 (= 5.5.32+maria-1~raring) but 5.5.32-0ubuntu0.13.04.1 is to be installed  
 mysql-server : Depends: mysql-server-5.5 but it is not going to be installed  
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

apt-get -f install 无效,但是:

dpkg: error processing /var/cache/apt/archives/libmysqlclient18_5.5.32+maria-1~raring_amd64.deb (--unpack):  
 libmysqlclient18:amd64 5.5.32+maria-1~raring (Multi-Arch: no) is not co-installable with libmysqlclient18 which has multiple installed instances

我尝试回滚,所以sudo dpkg -r mariadb-servermariadb-client-core-5.5 mariadb-client-5.5 mariadb-server-core-5.5奏效了。mariadb-server显然没有安装。然后我尝试sudo dpkg -r libmysqlclient18但是得到了:

dpkg: dependency problems prevent removal of libmysqlclient18:amd64:  
 amarok depends on libmysqlclient18 (>= 5.5.13-1).

我不想删除amarok,因为它已经安装了很长时间了。
我该如何解决此错误并删除所有MariaDB?

aptitude未安装,当我启动Ubuntu Software Center时,它告诉我New software can't be installed, because there is a problem with the software currently installed. Do you want to repair this problem now?,当我单击Repair内部错误时出现:

在此处输入图片说明


根据要求,输出sudo apt-get check

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 (= 5.5.32+maria-1~raring) but 5.5.32-0ubuntu0.13.04.1 is installed
E: Unmet dependencies. Try using -f.

输出apt-cache policy libmysqlclient18 libmariadbclient18

libmysqlclient18:
  Installed: 5.5.32-0ubuntu0.13.04.1
  Candidate: 5.5.32+maria-1~raring
  Version table:
     5.5.32+maria-1~raring 0
        500 http://ftp.osuosl.org/pub/mariadb/repo/5.5/ubuntu/ raring/main amd64 Packages
 *** 5.5.32-0ubuntu0.13.04.1 0
        500 http://jp.archive.ubuntu.com/ubuntu/ raring-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu/ raring-security/main amd64 Packages
        100 /var/lib/dpkg/status
     5.5.29-0ubuntu1 0
        500 http://jp.archive.ubuntu.com/ubuntu/ raring/main amd64 Packages
libmariadbclient18:
  Installed: 5.5.32+maria-1~raring
  Candidate: 5.5.32+maria-1~raring
  Version table:
 *** 5.5.32+maria-1~raring 0
        500 http://ftp.osuosl.org/pub/mariadb/repo/5.5/ubuntu/ raring/main amd64 Packages
        100 /var/lib/dpkg/status

输出cat /etc/apt/sources.list /etc/apt/sources.list.d/*.list

# deb cdrom:[Ubuntu 13.04 _Raring Ringtail_ - Release amd64 (20130424)]/ raring main restricted

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

## Major bug fix updates produced after the final release of the
## distribution.
deb http://jp.archive.ubuntu.com/ubuntu/ raring-updates main restricted
deb-src http://jp.archive.ubuntu.com/ubuntu/ raring-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://jp.archive.ubuntu.com/ubuntu/ raring universe
deb-src http://jp.archive.ubuntu.com/ubuntu/ raring universe
deb http://jp.archive.ubuntu.com/ubuntu/ raring-updates universe
deb-src http://jp.archive.ubuntu.com/ubuntu/ raring-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://jp.archive.ubuntu.com/ubuntu/ raring multiverse
deb-src http://jp.archive.ubuntu.com/ubuntu/ raring multiverse
deb http://jp.archive.ubuntu.com/ubuntu/ raring-updates multiverse
deb-src http://jp.archive.ubuntu.com/ubuntu/ raring-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://jp.archive.ubuntu.com/ubuntu/ raring-backports main restricted universe multiverse
deb-src http://jp.archive.ubuntu.com/ubuntu/ raring-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu raring-security main restricted
deb-src http://security.ubuntu.com/ubuntu raring-security main restricted
deb http://security.ubuntu.com/ubuntu raring-security universe
deb-src http://security.ubuntu.com/ubuntu raring-security universe
deb http://security.ubuntu.com/ubuntu raring-security multiverse
deb-src http://security.ubuntu.com/ubuntu raring-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 raring partner
# deb-src http://archive.canonical.com/ubuntu raring partner

## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
deb http://extras.ubuntu.com/ubuntu raring main
deb-src http://extras.ubuntu.com/ubuntu raring main

##############################################################
##################### UNOFFICIAL  REPOS http://repogen.simplylinux.ch ######################
##############################################################

###### 3rd Party Binary Repos

#### Google Chrome Browser - http://www.google.com/linuxrepositories/
## Run this command: wget -q https://dl-ssl.google.com/linux/linux_signing_key.pub -O- | sudo apt-key add -
deb http://dl.google.com/linux/chrome/deb/ stable main

#### Google Earth - http://www.google.com/linuxrepositories/
## Run this command: wget -q https://dl-ssl.google.com/linux/linux_signing_key.pub -O- | sudo apt-key add -
deb http://dl.google.com/linux/earth/deb/ stable main

#### Midori PPA - https://launchpad.net/~midori/+archive/ppa
## Run this command: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A69241F1
deb http://ppa.launchpad.net/midori/ppa/ubuntu raring main

#### Opera - http://www.opera.com/
## Run this command: sudo wget -O - http://deb.opera.com/archive.key | sudo apt-key add -
deb http://deb.opera.com/opera/ stable non-free

#### Oracle Java (JDK) Installer PPA - http://www.webupd8.org/2012/01/install-oracle-java-jdk-7-in-ubuntu-via.html
## Run this command: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886
deb http://ppa.launchpad.net/webupd8team/java/ubuntu raring main

#### VirtualBox - http://www.virtualbox.org
## Run this command: wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add -
deb http://download.virtualbox.org/virtualbox/debian raring contrib

#### X Updates - https://launchpad.net/~ubuntu-x-swat/+archive/x-updates/
## Run this command: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys AF1CDFA9
deb http://ppa.launchpad.net/ubuntu-x-swat/x-updates/ubuntu raring main


####### 3rd Party Source Repos

#### Gimp PPA (Source) - https://launchpad.net/~otto-kesselgulasch/+archive/gimp
## Run this command: sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 614C4B38
deb-src http://ppa.launchpad.net/otto-kesselgulasch/gimp/ubuntu raring main

#### Midori PPA (Source) - https://launchpad.net/~midori/+archive/ppa
## Run this command: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A69241F1
deb-src http://ppa.launchpad.net/midori/ppa/ubuntu raring main

#### Oracle Java (JDK) Installer PPA (Source) - http://www.webupd8.org/2012/01/install-oracle-java-jdk-7-in-ubuntu-via.html
## Run this command: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886
deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu raring main

deb http://archive.canonical.com/ raring partner
# deb-src http://archive.canonical.com/ raring partner
deb http://ftp.osuosl.org/pub/mariadb/repo/5.5/ubuntu raring main
# deb-src http://ftp.osuosl.org/pub/mariadb/repo/5.5/ubuntu raring main
deb http://ppa.launchpad.net/atareao/atareao/ubuntu raring main
# deb-src http://ppa.launchpad.net/atareao/atareao/ubuntu raring main
deb http://ppa.launchpad.net/bhdouglass/indicator-remindor/ubuntu raring main
# deb-src http://ppa.launchpad.net/bhdouglass/indicator-remindor/ubuntu raring main
deb http://linux.dropbox.com/ubuntu precise main
# deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu raring main
醉酒

看起来您差不多明白了。删除MariaDB软件包:

dpkg -r mariadb-servermariadb-client-core-5.5 mariadb-client-5.5 mariadb-server-core-5.5 libmariadbclient18

现在,deb http://ftp.osuosl.org/pub/mariadb/repo/5.5/ubuntu raring main从您行中删除该/etc/apt/sources.list

接下来,确保来自MariaDB的MySql包仍不在缓存中:

apt-get clean

最后,重新安装libmysqlclient18

apt-get install --reinstall libmysqlclient18

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

DPKG去除MariaDB的依赖关系后的问题,使我不能用apt-get的

来自分类Dev

运行“ apt-get remove依赖项名称”后,“ dpkg -l”中的依赖项仍然存在

来自分类Dev

运行“ apt-get remove依赖项名称”后,“ dpkg -l”中的依赖项仍然存在

来自分类Dev

apt-get update命令后出现问题

来自分类Dev

导致apt-get无法安装gcc / g ++的依赖项

来自分类Dev

使用apt-get安装Qemu时出现问题

来自分类Dev

Dpkg和apt-get是否安装依赖项?

来自分类Dev

Dpkg和apt-get是否安装依赖项?

来自分类Dev

下载Graphlab依赖项get_dependencies()时出现问题

来自分类Dev

如果出现问题,我可以回退apt-get升级吗?

来自分类Dev

执行“ sudo apt-get升级”时出现问题

来自分类Dev

从启动板apt-get ppa出现问题

来自分类Dev

initramfs升级到13.04后失败,无法使用apt-get / dpkg更新系统

来自分类Dev

initramfs升级到13.04后失败,无法使用apt-get / dpkg更新系统

来自分类Dev

Debian 9.1:apt-get autoremove不会删除依赖项

来自分类Dev

在缺少依赖项的情况下使用apt-get自动删除

来自分类Dev

使用apt-get删除软件包和已安装的依赖项

来自分类Dev

当apt-get和dpkg没有帮助时,如何强制删除具有未满足的依赖关系的MySQL和MariaDB?

来自分类Dev

由于存在“未满足的依赖项”,因此无法再使用“ apt-get install”

来自分类Dev

apt-get:未满足的依赖项,但是依赖项无法安装

来自分类Dev

在 kde neon (ubuntu 18.04) 中使用 pinta 存储库的 apt-get update 命令出现问题

来自分类Dev

dpkg不满意的依赖关系,现在apt-get想要删除整个系统

来自分类Dev

我无法使用apt-get更新

来自分类Dev

我无法使用apt-get更新

来自分类Dev

使用go get安装gozmq时出现问题

来自分类Dev

apt-get:未满足的依赖项

来自分类Dev

由于依赖项损坏而导致Apt-get块(libc6,Linux Mint)

来自分类Dev

删除gnupg后APT-get无法正常工作

来自分类Dev

使用get_it进行Flutter依赖项注入设置问题

Related 相关文章

  1. 1

    DPKG去除MariaDB的依赖关系后的问题,使我不能用apt-get的

  2. 2

    运行“ apt-get remove依赖项名称”后,“ dpkg -l”中的依赖项仍然存在

  3. 3

    运行“ apt-get remove依赖项名称”后,“ dpkg -l”中的依赖项仍然存在

  4. 4

    apt-get update命令后出现问题

  5. 5

    导致apt-get无法安装gcc / g ++的依赖项

  6. 6

    使用apt-get安装Qemu时出现问题

  7. 7

    Dpkg和apt-get是否安装依赖项?

  8. 8

    Dpkg和apt-get是否安装依赖项?

  9. 9

    下载Graphlab依赖项get_dependencies()时出现问题

  10. 10

    如果出现问题,我可以回退apt-get升级吗?

  11. 11

    执行“ sudo apt-get升级”时出现问题

  12. 12

    从启动板apt-get ppa出现问题

  13. 13

    initramfs升级到13.04后失败,无法使用apt-get / dpkg更新系统

  14. 14

    initramfs升级到13.04后失败,无法使用apt-get / dpkg更新系统

  15. 15

    Debian 9.1:apt-get autoremove不会删除依赖项

  16. 16

    在缺少依赖项的情况下使用apt-get自动删除

  17. 17

    使用apt-get删除软件包和已安装的依赖项

  18. 18

    当apt-get和dpkg没有帮助时,如何强制删除具有未满足的依赖关系的MySQL和MariaDB?

  19. 19

    由于存在“未满足的依赖项”,因此无法再使用“ apt-get install”

  20. 20

    apt-get:未满足的依赖项,但是依赖项无法安装

  21. 21

    在 kde neon (ubuntu 18.04) 中使用 pinta 存储库的 apt-get update 命令出现问题

  22. 22

    dpkg不满意的依赖关系,现在apt-get想要删除整个系统

  23. 23

    我无法使用apt-get更新

  24. 24

    我无法使用apt-get更新

  25. 25

    使用go get安装gozmq时出现问题

  26. 26

    apt-get:未满足的依赖项

  27. 27

    由于依赖项损坏而导致Apt-get块(libc6,Linux Mint)

  28. 28

    删除gnupg后APT-get无法正常工作

  29. 29

    使用get_it进行Flutter依赖项注入设置问题

热门标签

归档