Mises à jour UBUNTU

Résolu
over12 Messages postés 5 Statut Membre -  
Franzux Messages postés 9705 Statut Contributeur -
Salut à tous !
J'utilise Ubuntu 7.10 et comme tous les matins en allumant mon ordinateur il y a des mises à jour à faire...
Je lance donc le gestionnaire... Tout se passe normalement jusqu'à l'installation où ce message apparaît :

"Impossible d'obtenir le verrou exclusif
Ceci signifie généralement qu'une autre application de gestion de paquets (telle que apt-get ou aptitude) est déjà en cours d'exécution. Veuillez d'abord fermer cette application."

Le problème est qu'il n'y a aucun gestionnaire de paquets qui tourne.
J'ai ignoré le probléme 3 jours de suite, mais lors du check automatique (tous les 30 jours...) il y a eu blocage sur le swap avec le message :

"duplicate or bad block in use!"

J'ai dû faire fsck -y pour pouvoir relancer le systéme.
Et maintenant j'ai de nouveau le message d'erreur de mise à jour... Alors que je lance le gestionnaire à l'allumage de l'ordinateur, sans aucun autre logiciel qui tourne.
Je suis convaincu que le probléme de fichier système et que celui des mises à jour ont la même origine.

Quelqun aurait-il une idée ?
merci d'avance
Configuration: Linux
Firefox 2.0.0.12

7 réponses

  1. Franzux Messages postés 9705 Statut Contributeur 1 146
     
    As-tu essayé en mode texte ?
    0
  2. over12 Messages postés 5 Statut Membre
     
    j'ai essayé avec la commande sudo apt-get update et sudo apt-get upgrade et voici la réponse :
    "E: dpkg was interrupted, you must manually run dpkg to correct the problem"
    0
    1. Franzux Messages postés 9705 Statut Contributeur 1 146
       
      Bon, il semblerait que certains packages aient foirés lors d'une install.

      Essaye de faire
      sudo dpkg --configure -a
      


      et tente ensuite de nouveau
      sudo apt-get update && sudo apt-get upgrade
      0
      1. over12 Messages postés 5 Statut Membre > Franzux Messages postés 9705 Statut Contributeur
         
        Les mises à jour se sont installés, l'icone de notification a disparue de la barre de tâches...
        Est-ce que le problème avec le gestionnaire sera aussi résolu ou devrais-je faire les prochaines updates uniquement avec la console ?

        et j'en profite pour m'instruire un peu :
        à quoi sert exactement la commande dpkg ?
        0
      2. Franzux Messages postés 9705 Statut Contributeur 1 146 > over12 Messages postés 5 Statut Membre
         
        Maintenant que ça a fonctionné, l'explication ;)

        - Non, tu n'auras pas à recommencer à chaque MÀJ (cool non ?)
        - dpkg est l'outil qui permet de "décompresser et installer" (pour faire vite) les paquets debian (.deb) qu'utilisent toutes les distributions issues de Debian la Sainte ( ;) ), entre autres Ubuntu.

        Ton gestionnaire de màj n'est ni plus ni moins qu'un logiciel de téléchargement qui, une fois le téléchargement terminé, lance l'exécution d'un fichier .deb.

        En gros, que fait Synaptic ?
        - Synaptic regarde dans le fichier /etc/apt/sources.list quels sont les serveurs qu'il doit surveiller.
        - Au lancement, Synaptic vérifie les informations de version des applications que tu as installées, puis il vérifie si elles correspondent aux versions disponibles sur les serveurs.
        - Si il s'aperçoit qu'il y a du nouveau, il te prévient et te demande si tu veux faire la MÀJ.
        - Tu es malin et tu dis oui, donc il télécharge les paquets nouveaux, comme si en ligne de co on lançait un wget http://archive.canonical.com/ubuntu/logicieldedessindebananes.deb
        - Une fois le .deb téléchargé, il l'installe, comme si l'on faisait un dpkg -i logicieldedessindebananes.deb (sans oublier les dépendances qui sont gérées automatiquement ^^).
        - Il te fait signe et te dit qu'il a terminé.

        Alors pourquoi cela merdouillait-il chez toi ??? Simple !!!
        Un dpkg -i s'est mal passé car ton paquet devait être cassé :'( Du coup, il essayait de résoudre le problème en permanence, t'empêchant par la même de lancer d'autres MAJ (JAMAIS deux gestionnaires de paquets en même temps !!! JAMAIS !!!).

        Qu'avons-nous apporté comme solution ? Encore plus simple !!! On a relancé le dpkg à la main (et en la lui forçant un peu d'ailleurs ^^). Du coup il a fini son boulot et t'a permis de relancer tes MÀJ toi-même.

        Tout ceci est une explication très grossière et simplifiée bien entendu.

        Content d'avoir été utile.

        Cordialement,

        Franz.


        Configurations : Elenium : Debian Etch
        Actium : Gentoo 2007.0;Maerix (laptop) : Ubuntu 7.10
        0
  3. over12 Messages postés 5 Statut Membre
     
    merci pour ton aide !!
    (et en plus je me coucherai un peu moins bête ce soir...)
    ;)
    0
  4. jeremy1991 Messages postés 375 Statut Membre 76
     
    Moi j'ai essayé de copié la commande "sudo dpkg --configure -a" et ça me met "La zone de la base de données d'état est verrouillée par un autre processus"

    Je ne sais pas de quoi celà peut venir.
    0
  5. Vous n’avez pas trouvé la réponse que vous recherchez ?

    Posez votre question
  6. jeremy1991 Messages postés 375 Statut Membre 76
     
    J'ai peux être trouvé sollution à mon problème,

    au début j'ai télécharger le fichier de mise à jour simple et après j'ai vu sur un forum qu'il y avait deux types de CD version ubuntu il y a la version installation, et la version mise à jour "Alternate", et moi j'ai télécharger la première version, celle d'installation.

    Je suis en train d'essayé d'installer la mise à jour "Alternate", dite moi si c'est ça que j'avais fais faut.
    0
  7. zhamdi
     
    Salut,

    J'ai le même pb pour migrer de la 10.10 à 11.04 (via le GUI)

    en essayant vos commandes, il pete de la même manière (pourtant je ne trouve pas de programme qui tourne) :

    zied@zied-desktop:/etc/apt$ sudo dpkg --configure -a
    dpkg: error: dpkg status database is locked by another process
    zied@zied-desktop:/etc/apt$ ps -a -e | grep *dpk
    zied@zied-desktop:/etc/apt$ ps -a -e | grep *apt*
    zied@zied-desktop:/etc/apt$ apt-get
    zied@zied-desktop:/etc/apt$

    Je suppose que le prog s'est eteint à la shlag, il doit y avoir un fichier genre .lock qui traine dans un repertoire. La question c'est où???

    Merci bcp si vous avez une idée,
    Zied
    0
    1. zhamdi
       
      Autant pour moi, j'avais une fenêtre synaptic ouverte dans un coin.

      Felicitation Franzux, ta solution est à l'épreuve du temps :-)
      0
  8. zhamdi
     
    Tous comptes faits, la commande foire toujours au bout de qq minutes

    zied@zied-desktop:/etc/apt$ sudo dpkg --configure -a
    dpkg: error: dpkg status database is locked by another process
    zied@zied-desktop:/etc/apt$ ps -a -e | grep *dpk
    zied@zied-desktop:/etc/apt$ ^C
    zied@zied-desktop:/etc/apt$ sudo dpkg --configure -a
    zied@zied-desktop:/etc/apt$ sudo apt-get update && sudo apt-get upgrade
    Ign file: apt-build InRelease
    Ign file: apt-build Release.gpg
    Réception de : 1 file: apt-build Release [89 B]
    Ign file: apt-build/main TranslationIndex
    Ign file: apt-build/main Translation-fr_FR
    Ign file: apt-build/main Translation-fr
    Ign file: apt-build/main Translation-en
    Ign http://fr.archive.ubuntu.com natty InRelease
    Ign http://fr.archive.ubuntu.com natty-updates InRelease
    Ign http://fr.archive.ubuntu.com natty-proposed InRelease
    Atteint http://fr.archive.ubuntu.com natty Release.gpg
    Ign http://archive.canonical.com lucid InRelease
    Ign http://archive.canonical.com natty InRelease
    Ign http://archive.ubuntu.com dapper-updates InRelease
    Ign http://extras.ubuntu.com natty InRelease
    Atteint http://fr.archive.ubuntu.com natty-updates Release.gpg
    Atteint http://archive.canonical.com lucid Release.gpg
    Ign http://archive.ubuntu.com dapper-updates Release.gpg
    Atteint http://extras.ubuntu.com natty Release.gpg
    Atteint http://fr.archive.ubuntu.com natty-proposed Release.gpg
    Atteint http://fr.archive.ubuntu.com natty Release
    Atteint http://archive.canonical.com natty Release.gpg
    Ign http://archive.ubuntu.com dapper-updates Release
    Atteint http://extras.ubuntu.com natty Release
    Atteint http://fr.archive.ubuntu.com natty-updates Release
    Atteint http://archive.canonical.com lucid Release
    Atteint http://fr.archive.ubuntu.com natty-proposed Release
    Atteint http://fr.archive.ubuntu.com natty/main Sources
    Atteint http://fr.archive.ubuntu.com natty/restricted Sources
    Atteint http://fr.archive.ubuntu.com natty/universe Sources
    Atteint http://fr.archive.ubuntu.com natty/multiverse Sources
    Atteint http://fr.archive.ubuntu.com natty/main i386 Packages
    Atteint http://extras.ubuntu.com natty/main i386 Packages
    Atteint http://archive.canonical.com natty Release
    Atteint http://fr.archive.ubuntu.com natty/restricted i386 Packages
    Atteint http://fr.archive.ubuntu.com natty/universe i386 Packages
    Atteint http://fr.archive.ubuntu.com natty/multiverse i386 Packages
    Ign http://fr.archive.ubuntu.com natty/main TranslationIndex
    Ign http://archive.ubuntu.com dapper-updates/main TranslationIndex
    Ign http://archive.ubuntu.com dapper-updates/multiverse TranslationIndex
    Ign http://extras.ubuntu.com natty/main TranslationIndex
    Ign http://fr.archive.ubuntu.com natty/multiverse TranslationIndex
    Ign http://fr.archive.ubuntu.com natty/restricted TranslationIndex
    Ign http://fr.archive.ubuntu.com natty/universe TranslationIndex
    Atteint http://archive.canonical.com lucid/partner Sources
    Atteint http://fr.archive.ubuntu.com natty-updates/main Sources
    Atteint http://archive.canonical.com lucid/partner i386 Packages
    Ign http://archive.canonical.com lucid/partner TranslationIndex
    Atteint http://fr.archive.ubuntu.com natty-updates/restricted Sources
    Atteint http://fr.archive.ubuntu.com natty-updates/universe Sources
    Atteint http://fr.archive.ubuntu.com natty-updates/multiverse Sources
    Atteint http://fr.archive.ubuntu.com natty-updates/main i386 Packages
    Atteint http://fr.archive.ubuntu.com natty-updates/restricted i386 Packages
    Atteint http://fr.archive.ubuntu.com natty-updates/universe i386 Packages
    Atteint http://archive.canonical.com natty/partner i386 Packages
    Ign http://archive.canonical.com natty/partner TranslationIndex
    Atteint http://fr.archive.ubuntu.com natty-updates/multiverse i386 Packages
    Ign http://fr.archive.ubuntu.com natty-updates/main TranslationIndex
    Ign http://fr.archive.ubuntu.com natty-updates/multiverse TranslationIndex
    Ign http://fr.archive.ubuntu.com natty-updates/restricted TranslationIndex
    Ign http://fr.archive.ubuntu.com natty-updates/universe TranslationIndex
    Atteint http://fr.archive.ubuntu.com natty-proposed/restricted i386 Packages
    Atteint http://fr.archive.ubuntu.com natty-proposed/main i386 Packages
    Atteint http://fr.archive.ubuntu.com natty-proposed/multiverse i386 Packages
    Atteint http://fr.archive.ubuntu.com natty-proposed/universe i386 Packages
    Ign http://fr.archive.ubuntu.com natty-proposed/main TranslationIndex
    Ign http://fr.archive.ubuntu.com natty-proposed/multiverse TranslationIndex
    Ign http://fr.archive.ubuntu.com natty-proposed/restricted TranslationIndex
    Ign http://fr.archive.ubuntu.com natty-proposed/universe TranslationIndex
    Atteint http://fr.archive.ubuntu.com natty/main Translation-fr
    Atteint http://fr.archive.ubuntu.com natty/multiverse Translation-fr
    Atteint http://fr.archive.ubuntu.com natty/restricted Translation-fr
    Atteint http://fr.archive.ubuntu.com natty/universe Translation-fr
    Err http://archive.ubuntu.com dapper-updates/main Sources
    404 Not Found [IP : 91.189.92.181 80]
    Err http://archive.ubuntu.com dapper-updates/multiverse Sources
    404 Not Found [IP : 91.189.92.181 80]
    Err http://archive.ubuntu.com dapper-updates/main i386 Packages
    404 Not Found [IP : 91.189.92.181 80]
    Err http://archive.ubuntu.com dapper-updates/multiverse i386 Packages
    404 Not Found [IP : 91.189.92.181 80]
    Ign http://archive.ubuntu.com dapper-updates/main Translation-fr_FR
    Ign http://archive.canonical.com lucid/partner Translation-fr_FR
    Ign http://archive.ubuntu.com dapper-updates/main Translation-fr
    Ign http://archive.ubuntu.com dapper-updates/main Translation-en
    Ign http://archive.ubuntu.com dapper-updates/multiverse Translation-fr_FR
    Ign http://archive.ubuntu.com dapper-updates/multiverse Translation-fr
    Ign http://archive.ubuntu.com dapper-updates/multiverse Translation-en
    Ign http://archive.canonical.com lucid/partner Translation-fr
    Ign http://archive.canonical.com lucid/partner Translation-en
    Ign http://archive.canonical.com natty/partner Translation-fr_FR
    Ign http://archive.canonical.com natty/partner Translation-fr
    Ign http://archive.canonical.com natty/partner Translation-en
    Ign http://extras.ubuntu.com natty/main Translation-fr_FR
    Ign http://extras.ubuntu.com natty/main Translation-fr
    Ign http://extras.ubuntu.com natty/main Translation-en
    Ign http://dl.google.com stable InRelease
    Ign http://fr.archive.ubuntu.com natty/main Translation-fr_FR
    Ign http://fr.archive.ubuntu.com natty/main Translation-en
    Ign http://fr.archive.ubuntu.com natty/multiverse Translation-fr_FR
    Ign http://fr.archive.ubuntu.com natty/multiverse Translation-en
    Ign http://fr.archive.ubuntu.com natty/restricted Translation-fr_FR
    Ign http://fr.archive.ubuntu.com natty/restricted Translation-en
    Ign http://fr.archive.ubuntu.com natty/universe Translation-fr_FR
    Ign http://fr.archive.ubuntu.com natty/universe Translation-en
    Ign http://fr.archive.ubuntu.com natty-updates/main Translation-fr_FR
    Ign http://fr.archive.ubuntu.com natty-updates/main Translation-fr
    Ign http://fr.archive.ubuntu.com natty-updates/main Translation-en
    Ign http://fr.archive.ubuntu.com natty-updates/multiverse Translation-fr_FR
    Ign http://fr.archive.ubuntu.com natty-updates/multiverse Translation-fr
    Ign http://fr.archive.ubuntu.com natty-updates/multiverse Translation-en
    Ign http://fr.archive.ubuntu.com natty-updates/restricted Translation-fr_FR
    Ign http://fr.archive.ubuntu.com natty-updates/restricted Translation-fr
    Ign http://fr.archive.ubuntu.com natty-updates/restricted Translation-en
    Ign http://fr.archive.ubuntu.com natty-updates/universe Translation-fr_FR
    Ign http://fr.archive.ubuntu.com natty-updates/universe Translation-fr
    Ign http://fr.archive.ubuntu.com natty-updates/universe Translation-en
    Ign http://fr.archive.ubuntu.com natty-proposed/main Translation-fr_FR
    Réception de : 2 http://dl.google.com stable Release.gpg [198 B]
    Ign http://fr.archive.ubuntu.com natty-proposed/main Translation-fr
    Ign http://fr.archive.ubuntu.com natty-proposed/main Translation-en
    Ign http://fr.archive.ubuntu.com natty-proposed/multiverse Translation-fr_FR
    Ign http://fr.archive.ubuntu.com natty-proposed/multiverse Translation-fr
    Ign http://fr.archive.ubuntu.com natty-proposed/multiverse Translation-en
    Ign http://fr.archive.ubuntu.com natty-proposed/restricted Translation-fr_FR
    Ign http://fr.archive.ubuntu.com natty-proposed/restricted Translation-fr
    Ign http://fr.archive.ubuntu.com natty-proposed/restricted Translation-en
    Ign http://fr.archive.ubuntu.com natty-proposed/universe Translation-fr_FR
    Ign http://fr.archive.ubuntu.com natty-proposed/universe Translation-fr
    Ign http://fr.archive.ubuntu.com natty-proposed/universe Translation-en
    Réception de : 3 http://dl.google.com stable Release [1 349 B]
    Ign http://security.ubuntu.com natty-security InRelease
    Atteint http://security.ubuntu.com natty-security Release.gpg
    Atteint http://security.ubuntu.com natty-security Release
    Atteint http://security.ubuntu.com natty-security/main Sources
    Atteint http://security.ubuntu.com natty-security/restricted Sources
    Atteint http://security.ubuntu.com natty-security/universe Sources
    Atteint http://security.ubuntu.com natty-security/multiverse Sources
    Atteint http://security.ubuntu.com natty-security/main i386 Packages
    Atteint http://security.ubuntu.com natty-security/restricted i386 Packages
    Atteint http://security.ubuntu.com natty-security/universe i386 Packages
    Atteint http://security.ubuntu.com natty-security/multiverse i386 Packages
    Ign http://security.ubuntu.com natty-security/main TranslationIndex
    Ign http://security.ubuntu.com natty-security/multiverse TranslationIndex
    Ign http://security.ubuntu.com natty-security/restricted TranslationIndex
    Ign http://security.ubuntu.com natty-security/universe TranslationIndex
    Ign http://security.ubuntu.com natty-security/main Translation-fr_FR
    Ign http://security.ubuntu.com natty-security/main Translation-fr
    Ign http://security.ubuntu.com natty-security/main Translation-en
    Ign http://security.ubuntu.com natty-security/multiverse Translation-fr_FR
    Ign http://security.ubuntu.com natty-security/multiverse Translation-fr
    Ign http://security.ubuntu.com natty-security/multiverse Translation-en
    Ign http://security.ubuntu.com natty-security/restricted Translation-fr_FR
    Ign http://security.ubuntu.com natty-security/restricted Translation-fr
    Ign http://security.ubuntu.com natty-security/restricted Translation-en
    Ign http://security.ubuntu.com natty-security/universe Translation-fr_FR
    Ign http://security.ubuntu.com natty-security/universe Translation-fr
    Ign http://security.ubuntu.com natty-security/universe Translation-en
    Réception de : 4 http://dl.google.com stable/main i386 Packages [641 B]
    Ign http://dl.google.com stable/main TranslationIndex
    Ign http://dl.google.com stable/main Translation-fr_FR
    Ign http://dl.google.com stable/main Translation-fr
    Ign http://dl.google.com stable/main Translation-en
    2 188 o réceptionnés en 1min 6s (33 o/s)
    N: « apt-build » dans le répertoire « /etc/apt/sources.list.d/ » a été ignoré car il n'utilise pas d'extension
    W: Impossible de récupérer http://archive.ubuntu.com/ubuntu/dists/dapper-updates/main/source/Sources 404 Not Found [IP : 91.189.92.181 80]

    W: Impossible de récupérer http://archive.ubuntu.com/ubuntu/dists/dapper-updates/multiverse/source/Sources 404 Not Found [IP : 91.189.92.181 80]

    W: Impossible de récupérer http://archive.ubuntu.com/ubuntu/dists/dapper-updates/main/binary-i386/Packages 404 Not Found [IP : 91.189.92.181 80]

    W: Impossible de récupérer http://archive.ubuntu.com/ubuntu/dists/dapper-updates/multiverse/binary-i386/Packages 404 Not Found [IP : 91.189.92.181 80]

    E: Le téléchargement de quelques fichiers d'index a échoué, ils ont été ignorés, ou les anciens ont été utilisés à la place.
    zied@zied-desktop:/etc/apt$
    0
    1. Franzux Messages postés 9705 Statut Contributeur 1 146
       
      Vire les lignes contenant Dapper de ton sources.list (pour info, la version Dapper Drake d'Ubuntu date de.......2006 et n'est plus maintenue depuis 2009 !!!)
      0