web-dev-qa-db-fra.com

Installer MySQL 5.1

cette question est sûrement une dupe de https://stackoverflow.com/questions/1632056/how-do-you-install-mysql-5-1-on-ubuntu-8-1

Puisque je ne peux pas commenter sur celui-là ... je commence un nouveau. J'ai le même problème que le précédent OP et j'ai suivi la réponse fournie par Andrew (la première réponse avec 2 votes positifs) et ajouté le rapport:

deb http://packages.dotdeb.org lenny all

a fait un

Sudo apt-get update

et puis un

Sudo apt-get install mysql-server-5.1

Mais j'obtiens toujours l'erreur suivante:

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-server-5.1 from the Synaptic Package
Depends: mysql-client-5.1 (>= 5.1.58-1~dotdeb.0) but it is not going to be
installed Depends: libdbi-Perl but it is not installable 
Recommends: libhtml-template-Perl but it is not installable 
E: Broken packages

J'ai également localisé le serveur mysql-server-5.1 à partir du gestionnaire de paquets synaptic et essayé de mettre à jour le paquet à partir de là, mais j'obtiens toujours l'erreur suivante:

mysql-server-5.1:
 Depends: mysql-client-5.1 but it is not going to be installed
 Depends: libdbi-Perl  but it is not installable
 Recommends: libhtml-template-Perl  but it is not installable

Modifier:

Le contenu du fichier sources.list après l'ajout du référentiel dotdeb.

# deb cdrom:[Ubuntu 11.04 _Natty Narwhal_ - Release i386 (20110427.1)]/ natty main restricted

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

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

## Uncomment the following two lines to add software from the 'backports'
## repository.
## 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://us.archive.ubuntu.com/ubuntu/ natty-backports main restricted universe multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ natty-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu natty-security main restricted
deb-src http://security.ubuntu.com/ubuntu natty-security main restricted
deb http://security.ubuntu.com/ubuntu natty-security universe
deb-src http://security.ubuntu.com/ubuntu natty-security universe
deb http://security.ubuntu.com/ubuntu natty-security multiverse
deb-src http://security.ubuntu.com/ubuntu natty-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 natty partner
deb-src http://archive.canonical.com/ubuntu natty 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 natty main
deb-src http://extras.ubuntu.com/ubuntu natty main
deb http://archive.canonical.com/ lucid partner
deb-src http://archive.canonical.com/ lucid partner
deb http://packages.dotdeb.org lenny all
deb-src http://packages.dotdeb.org lenny all

J'ai des problèmes pour installer presque tous les paquets comme OpenJDK, Skype .... :(

2
newUbuntuUser

Cette version de dotdeb.org est horriblement obsolète, Ubuntu Natty a déjà le paquet serveur MySQL dans les référentiels.

Je vous suggère de supprimer les trois dernières lignes deb et deb-src qui ne sont pas ajoutées par défaut:

  • extras.ubuntu.com: pour l'instant, aucun paquet pour natty n'est disponible à partir de ce référentiel. Cela introduira seulement un retard sur la mise à jour de vos listes de paquets car il doit toujours être récupéré
  • archive.canonical.com lucid partner: lucide? Vous utilisez Natty et avez déjà un partenaire repo pour Natty.
  • packages.dotdeb.org: ces paquets sont conçus pour Debian et pourraient ne pas être compatibles avec Ubuntu

Veuillez résoudre ce problème, actualisez vos listes de paquets (Sudo apt-get update) et essayez d'installer MySQL à nouveau:

Sudo apt-get install mysql-server
1
Lekensteyn