web-dev-qa-db-fra.com

Un problème de dépendance DPKG après la suppression de MariaDB m'empêche d'utiliser apt-get

J'ai essayé d'installer MariaDB comme ceci , et j'ai eu cette erreur:

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

J'ai essayé d'installer mysql-server à la place, mais j'ai obtenu:

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 ne fonctionne pas, cependant:

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

J'ai essayé de revenir en arrière, donc Sudo dpkg -r mariadb-servermariadb-client-core-5.5 mariadb-client-5.5 mariadb-server-core-5.5 qui fonctionnait. mariadb-server n'est pas installé apparemment. Ensuite, j'ai essayé Sudo dpkg -r libmysqlclient18 mais j'ai obtenu:

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

Je ne veux pas enlever amarok car il est installé depuis longtemps.
Comment puis-je résoudre cette erreur et supprimer tout MariaDB?

aptitude n’est pas installé, et lorsque je lance Ubuntu Software Center, il m’indique que New software can't be installed, because there is a problem with the software currently installed. Do you want to repair this problem now?, lorsque je clique sur Repair, une erreur interne s’affiche:

enter image description here


Comme demandé, sortie de 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.

Sortie de 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

Sortie de 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
4
Nicolas Raoul

On dirait que tu l'as presque eu. Supprimez les packages MariaDB:

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

Maintenant, supprimez la ligne deb http://ftp.osuosl.org/pub/mariadb/repo/5.5/ubuntu raring main de votre /etc/apt/sources.list

Assurez-vous ensuite que les paquets MySql de MariaDB ne sont pas encore dans le cache:

apt-get clean

Enfin, réinstallez libmysqlclient18:

apt-get install --reinstall libmysqlclient18

11
andrewsomething

Ok, j'ai trouvé le problème. N'est tout simplement pas possible. Vous avez des packages qui dépendent de la version 5.5.32-0ubuntu0.13.04.1 de libmysqlclient18 alors que libmariadbclient18 dépend de 5.5.32+maria-1~raring.

La solution, soit supprimer les paquetages qui dépendent de la version 5.5.32-0ubuntu0.13.04.1 avec Sudo apt-get -f autoremove libmysqlclient18 (NON RECOMENDABLE), soit dire le responsable du paquet corrige leurs problèmes parce qu'il est impossible de l'installer sans casser le système. Comment je sais?

Dans la longue liste de 152 paquets, il y a un paquet "critique" qui dépend de cette version spécifique de libmysqlclient18 et donc apt-get réutilise pour le supprimer et provoque cette rupture majeure.

Informez les responsables de paquets de réparer correctement leurs problèmes.

Si vous voulez savoir quel paquet est utilisé:

apt-cache rdepends libmysqlclient18=5.5.32-0ubuntu0.13.04.1

Vous indiquera les paquets qui ont une dépendance implicite de cette version. Il vous suffira alors de comparer avec la liste de vos paquets installés et le tour est joué!

0
Braiam

Essayez de supprimer tout le paquet de dépendance du gestionnaire de paquets synaptic. Et utilisez 'aptitude' pour installer des paquets à la place d'apt-get.

Voici pourquoi: aptitude-vs-apt-get

Je suppose que c'est un problème avec apt-get.

0
thanmai

essayer avec ça

Sudo apt-get autoremove
Sudo apt-get autoclean
Sudo apt-get update

ensuite, essayez de faire ce que vous essayiez de faire. Apprenez-moi ce que vous avez.

0
rɑːdʒɑ