Bug

Asked by jc.grallien

Sur Ubuntu 1204 survenu je ne sais comment?
Si je dois réinstaller ubuntu est ce que je vais perdre programmes et donnees?
Je voudrais eviter cette solution

je ne peux pas xploiter je gestionnaire de mise à jour avec ce message.

merci.

Veuillez signaler ce bogue du paquet « update-manager » en y joignant le message d'erreur suivant :

'W:Duplicate sources.list entry http://fr.archive.ubuntu.com/ubuntu/ precise/restricted i386 Packages (/var/lib/apt/lists/fr.archive.ubuntu.com_ubuntu_dists_precise_restricted_binary-i386_Packages), W:Duplicate sources.list entry http://fr.archive.ubuntu.com/ubuntu/ precise/main i386 Packages (/var/lib/apt/lists/fr.archive.ubuntu.com_ubuntu_dists_precise_main_binary-i386_Packages), W:Duplicate sources.list entry http://fr.archive.ubuntu.com/ubuntu/ precise/multiverse i386 Packages (/var/lib/apt/lists/fr.archive.ubuntu.com_ubuntu_dists_precise_multiverse_binary-i386_Packages), W:Duplicate sources.list entry http://fr.archive.ubuntu.com/ubuntu/ precise/universe i386 Packages (/var/lib/apt/lists/fr.archive.ubuntu.com_ubuntu_dists_precise_universe_binary-i386_Packages), E:Encountered a section with no Package: header, E:Problem with MergeList /var/lib/apt/lists/archive.canonical.com_ubuntu_dists_precise_partner_binary-i386_Packages, E:Les listes de paquets ou le fichier « status » ne peuvent être analysés ou lus.'

Question information

Language:
French Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

You have an error in the file /etc/apt/sources.list and a problem in one of the files in the directory /var/lib/apt/lists/

open a terminal (ctrl-alt-t) and enter the commands

sudo rm -rf /var/lib/apt/lists
sudo mkdir /var/lib/apt/lists
sudo mkdir /var/lib/apt/lists/partial
cat -n /etc/apt/sources.list

then select all output (edit - select all), copy it (edit - copy) and paste it into the 'Message:' box of this launchpad question https://answers.launchpad.net/ubuntu/+question/208665

(sorry that I cannot write this in French)

Revision history for this message
jc.grallien (jc-grallien-w) said :
#2

Is below what il obtained, I am afraid that command " rm" is going to delete ...jean-claude@jeanclaude-Pavilion-ZV6100-EE993EA-ABF:~$ sudo rm -rf/var/lib/apt/mists
[sudo] password for jean-claude:
rm : option invalide -- '/'
Saisissez « rm --help » pour plus d'informations.
jean-claude@jeanclaude-Pavilion-ZV6100-EE993EA-ABF:~$ rm --help
Utilisation : rm [OPTION]... FILE...
Supprime (retire le lien) les fichiers FILE(s).

  -f, --force ignore les fichiers inexistants, ne demande jamais
  -i demande confirmation avant chaque suppression
  -I demande confirmation une fois avant de supprimer plus de
                        3 fichiers, ou lors de suppresion recursive. Moins
                        intrusif que -i, tout en protégeant contre la majorité
                        des erreurs
      --interactive[=WHEN] demande confirmation selon WHEN : « never »

So I am not very expert is there another manner to solve the problem.
Thank you very much.

                            (jamais), « once » (une fois, -I), ou « always »
                            (toujours, -i). Sans WHEN, pose la question à chaque
                            fois.
      --one-file-system quand une hiérarchie est supprimée récursivement, ignore
                         tout répertoire qui est sur un système de fichiers différent
                         de celui de l'argument en question de la ligne de commande
      --no-preserve-root ne traite pas « / » de manière spécifique
      --preserve-root n'escamote pas « / » (par défaut)
  -r, -R, --recursive supprime les répertoires et leur contenu récursivement
  -v, --verbose explique ce qui va être fait
      --help affiche l'aide et quitte
      --version affiche des informations de version et quitte

Par défaut, rm ne supprime pas les répertoires. Utilisez l'option --recursive
(-r ou -R) pour supprimer les répertoires, ainsi que l'intégralité de leur
contenu.

Pour supprimer un fichier dont le nom débute par « - », par exemple « -foo »,
utilisez une des commandes suivantes :
  rm -- -foo

  rm ./-foo

Si vous utilisez « rm » pour supprimer un fichier, il est habituellement
possible de récupérer une partie de son contenu, en disposant de suffisamment
d'expertise et de temps. Pour être certain que le contenu ne soit pas
récupérable, envisagez l'utilisation de « shred ».

Signalez les anomalies de « rm » à <email address hidden>
Page d'accueil de « GNU coreutils » : http://www.gnu.org/software/coreutils/
Aide générale sur les logiciels GNU : <http://www.gnu.org/gethelp/>
Traduction de « rm » à <http://translationproject.org/team/fr.html>
Pour une documentation complète, lancer « info coreutils 'rm invocation' »
jean-claude@jeanclaude-Pavilion-ZV6100-EE993EA-ABF:~$

another command :

jean-claude@jeanclaude-Pavilion-ZV6100-EE993EA-ABF:~$ sudo mkdir/var/lib/apt/lists
sudo: mkdir/var/lib/apt/lists: command not found
jean-claude@jeanclaude-Pavilion-ZV6100-EE993EA-ABF:~$ mkdir /var/lib/apt/lists
mkdir: impossible de créer le répertoire «/var/lib/apt/lists»: Permission non accordée

Revision history for this message
Best Manfred Hampl (m-hampl) said :
#3

There was some problem with missing space characters (" ") in the commands.
Please try again and carefully check the exact command text.
It is correct that the first command will delete some files. These are
temporary files that will be recreated automatically.

You can use copy and paste:
Mark the first line with your mouse.
Click in a terminal window and press the middle mouse button.
This will copy the text
and so on.

sudo rm -rf /var/lib/apt/lists
sudo mkdir /var/lib/apt/lists
sudo mkdir /var/lib/apt/lists/partial
cat -n /etc/apt/sources.list

Revision history for this message
jc.grallien (jc-grallien-w) said :
#4

Thank you very much for your help but I succeded to repair by using the
mode "repairing of Ubuntu and what I did not think it was possible
Thank you
Have a good day
Jean-Claude Grallien.

Le mardi 18 septembre 2012 à 19:56 +0000, Manfred Hampl a écrit :
> Your question #208665 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/208665
>
> Status: Open => Answered
>
> Manfred Hampl proposed the following answer:
> There was some problem with missing space characters (" ") in the commands.
> Please try again and carefully check the exact command text.
> It is correct that the first command will delete some files. These are
> temporary files that will be recreated automatically.
>
> You can use copy and paste:
> Mark the first line with your mouse.
> Click in a terminal window and press the middle mouse button.
> This will copy the text
> and so on.
>
> sudo rm -rf /var/lib/apt/lists
> sudo mkdir /var/lib/apt/lists
> sudo mkdir /var/lib/apt/lists/partial
> cat -n /etc/apt/sources.list
>

Revision history for this message
jc.grallien (jc-grallien-w) said :
#5

In fact it was possible to solve the problem by using the mode repairing .
Thank you very much to have considered my problem.

Revision history for this message
jc.grallien (jc-grallien-w) said :
#6

Thanks Manfred Hampl, that solved my question.