Erreur...

Asked by Bernard CUNY

Bonjour,

Lorsque je lance le gestionaire de paquets Synaptique, aprés téléchargement et installation de nouveaux paquets, une fenêtre d'erreur s'ouvre avec le contenu suivant:

W: Duplicate sources.list entry http://fr.archive.ubuntu.com hardy/universe Packages (/var/lib/apt/lists/fr.archive.ubuntu.com_ubuntu_dists_hardy_universe_binary-i386_Packages)
W: Duplicate sources.list entry http://fr.archive.ubuntu.com hardy/universe Translation-fr (/var/lib/apt/lists/fr.archive.ubuntu.com_ubuntu_dists_hardy_universe_i18n_Translation-fr)
W: Duplicate sources.list entry http://fr.archive.ubuntu.com hardy-updates/universe Packages (/var/lib/apt/lists/fr.archive.ubuntu.com_ubuntu_dists_hardy-updates_universe_binary-i386_Packages)

Quelqu'un peut-il m'indiquer la procédure à suivre pour corriger celà ?

D'avance, merci.

Question information

Language:
French Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Bernard CUNY
Solved:
Last query:
Last reply:
Revision history for this message
Nicolas Van Wambeke (nicolasvw) said :
#1

Bonjour,

Il semblerait que vous ayez des entrées dupliquées au sein du fichier sources.list qui désigne les dépots logiciels que vous utilisez pour faire les mises à jour.

Afin de corriger cela, une solution consiste à éditer le fichier /etc/apt/sources.list pour y supprimer une occurence des lignes citées dans votre message.

Aussi, n'oubliez pas avant de commencer de faire une copie de sauvegarde du fichier sources.list

Nicolas

Revision history for this message
Bernard CUNY (bcuny) said :
#2

Bonjour Nicolas,

Merci pour ton aide, mais Pffff...j'ai bien du mal à distinguer ce que je dois supprimer dans le fichier sources.list; le fait que tout soit en anglais ne m'arrange pas !
Voici le contenu du fichier :

# deb cdrom:[Ubuntu 8.04 _Hardy Heron_ - Release i386 (20080423)]/ hardy main restricted
deb-src http://archive.ubuntu.com/ubuntu/ hardy main restricted #Added by software-properties
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://fr.archive.ubuntu.com/ubuntu/ hardy main restricted
deb-src http://fr.archive.ubuntu.com/ubuntu/ hardy restricted main multiverse universe #Added by software-properties

## Major bug fix updates produced after the final release of the
## distribution.
deb http://fr.archive.ubuntu.com/ubuntu/ hardy-updates main restricted
deb-src http://fr.archive.ubuntu.com/ubuntu/ hardy-updates restricted main multiverse universe #Added by software-properties

## 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
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://fr.archive.ubuntu.com/ubuntu/ hardy universe
deb http://fr.archive.ubuntu.com/ubuntu/ hardy-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://fr.archive.ubuntu.com/ubuntu/ hardy multiverse
deb http://fr.archive.ubuntu.com/ubuntu/ hardy-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://fr.archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse
deb-src http://fr.archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe 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 hardy partner
deb-src http://archive.canonical.com/ubuntu hardy partner

deb http://security.ubuntu.com/ubuntu hardy-security main restricted
deb-src http://security.ubuntu.com/ubuntu hardy-security restricted main multiverse universe #Added by software-properties
deb http://security.ubuntu.com/ubuntu hardy-security universe
deb http://security.ubuntu.com/ubuntu hardy-security multiverse
deb http://fr.archive.ubuntu.com/ubuntu/ hardy universe
deb http://fr.archive.ubuntu.com/ubuntu/ hardy-updates universe

D'aprés toi que dois-je supprimer là dedans ?

Revision history for this message
Pierre Ferrari (piferrari) said :
#3

Salut Bernard,

Je t'ai fait un peu de ménage dans ton fichier sources.list

Coupe en dessous
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv

################################################################################################################
# dépôt du CD-ROM. Cette entrée figure ici car tu as fait l'install de base depuis un liveCD (certainement)
# Comme la ligne commence par un dièse, le programme de mise à jour n'en tient pas compte. C'est du commentaire
#
# deb cdrom:[Ubuntu 8.04 _Hardy Heron_ - Release i386 (20080423)]/ hardy main restricted

################################################################################################################
# Tout ce qui est pris depuis le dépôt archive.ubuntu.com
# Tu n'as pas besoin de main ni restricted vu que tu trouves les mêmes paquets dans fr.archive.ubuntu.com
# on ne garde que partner car je ne sais pas s'il existe chez fr.archive.ubuntu.com
deb http://archive.canonical.com/ubuntu hardy partner
deb-src http://archive.canonical.com/ubuntu hardy partner

################################################################################################################
# Tout ce qui est pris depuis le dépôt fr.archive.ubuntu.com
################################################################################################################

# Les nouveaux paquets
deb http://fr.archive.ubuntu.com/ubuntu/ hardy main restricted universe multiverse
deb-src http://fr.archive.ubuntu.com/ubuntu/ hardy main restricted universe multiverse

# Les mises à jours
deb http://fr.archive.ubuntu.com/ubuntu/ hardy-updates main restricted universe multiverse
deb-src http://fr.archive.ubuntu.com/ubuntu/ hardy-updates main restricted universe multiverse

# Les backports
deb http://fr.archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse
deb-src http://fr.archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse

################################################################################################################
# Les mises à jours de sécurités
################################################################################################################
deb http://security.ubuntu.com/ubuntu hardy-security main restricted universe multiverse
deb-src http://security.ubuntu.com/ubuntu hardy-security main restricted universe multiverse

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Coupe en dessus

N'oublie pas de faire un copie de ton fichier original. Pour ce faire, ouvre un terminal (Accessoires / Terminal).
Entre ensuite la commande suivante:

  sudo cp /etc/apt/sources.list /etc/apt/sources.list.back
  [sudo] password for ton_utilisateur:

Rien n'apparaît quand tu entres le mot de passe, c'est normal.

Ensuite, ouvre gedit (éditeur de texte) en mode root, pour ce faire, presse les touches ALT+F2 dans la boîte de dialogue qui s'ouvre, entre gksu gedit /etc/apt/sources.list puis click sur le bouton Exécuter (entre ensuite ton mot de passe).

Dans l'éditeur qui s'ouvre, efface tout le contenu et remplace le par celui ci-dessus. Enregistre et ferme l'éditeur puis fait un nouvel essai...

PiF

Revision history for this message
Bernard CUNY (bcuny) said :
#4

Bonjour,

Merci pour ton aide PIF...mais suite à la désactivation de deux sources de logiciels dans l'onglet "logiciels de tierces parties" dans l'outil "sources de logiciel" et aprés nouvelle mise à jour, le problème a disparu.

Encore une fois merci pour ton apport.