Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 21/07/2009, à 02:17

Rampou

[Résolu] apt corrompu, dpkg intterompu ! Pas d'installation !

Bonsoir,
Mon PC est un 870 Mhz, avec 512 de RAM sous Ubuntu Jaunty Jackalope, est Gnome comme IG.
Je ne parviens plus à faire un quelconque apt-get uque ce soit update ou upgrade ! hmm
Encore moins les installations...

Voici ce qu'il me dit :

yannick@yannick:~$ sudo apt-get update
[sudo] password for yannick: 
Ign cdrom://Ubuntu 8.04.1 _Hardy Heron_ - Release i386 (20080702.1) hardy/main Translation-fr
Ign cdrom://Ubuntu 8.04.1 _Hardy Heron_ - Release i386 (20080702.1) hardy/restricted Translation-fr
Ign cdrom://Xubuntu 9.04 _Jaunty Jackalope_ - Release i386 (20090420.1) jaunty/main Translation-fr
Ign cdrom://Xubuntu 9.04 _Jaunty Jackalope_ - Release i386 (20090420.1) jaunty/multiverse Translation-fr
Ign cdrom://Xubuntu 9.04 _Jaunty Jackalope_ - Release i386 (20090420.1) jaunty/restricted Translation-fr
Atteint http://fr.archive.ubuntu.com jaunty Release.gpg                        
Atteint http://fr.archive.ubuntu.com jaunty/main Translation-fr                
Atteint http://fr.archive.ubuntu.com jaunty/restricted Translation-fr          
Atteint http://fr.archive.ubuntu.com jaunty/universe Translation-fr            
Atteint http://fr.archive.ubuntu.com jaunty/multiverse Translation-fr          
Atteint http://fr.archive.ubuntu.com jaunty-updates Release.gpg                
Ign http://fr.archive.ubuntu.com jaunty-updates/main Translation-fr            
Ign http://fr.archive.ubuntu.com jaunty-updates/restricted Translation-fr      
Ign http://fr.archive.ubuntu.com jaunty-updates/universe Translation-fr        
Ign http://fr.archive.ubuntu.com jaunty-updates/multiverse Translation-fr      
Atteint http://security.ubuntu.com jaunty-security Release.gpg                 
Ign http://security.ubuntu.com jaunty-security/main Translation-fr             
Ign http://security.ubuntu.com jaunty-security/restricted Translation-fr       
Atteint http://fr.archive.ubuntu.com jaunty Release                            
Atteint http://archive.canonical.com jaunty Release.gpg                        
Ign http://archive.canonical.com jaunty/partner Translation-fr                 
Atteint http://fr.archive.ubuntu.com jaunty-updates Release                    
Ign http://security.ubuntu.com jaunty-security/universe Translation-fr         
Ign http://security.ubuntu.com jaunty-security/multiverse Translation-fr       
Atteint http://security.ubuntu.com jaunty-security Release                     
Atteint http://archive.canonical.com jaunty Release                            
Atteint http://fr.archive.ubuntu.com jaunty/main Packages                      
Atteint http://fr.archive.ubuntu.com jaunty/restricted Packages                
Atteint http://fr.archive.ubuntu.com jaunty/main Sources                       
Atteint http://fr.archive.ubuntu.com jaunty/universe Packages                  
Atteint http://fr.archive.ubuntu.com jaunty/universe Sources                   
Atteint http://fr.archive.ubuntu.com jaunty/multiverse Packages                
Atteint http://fr.archive.ubuntu.com jaunty/multiverse Sources                 
Atteint http://security.ubuntu.com jaunty-security/main Packages               
Atteint http://fr.archive.ubuntu.com jaunty-updates/main Packages      
Atteint http://fr.archive.ubuntu.com jaunty-updates/restricted Packages
Atteint http://fr.archive.ubuntu.com jaunty-updates/main Sources               
Atteint http://fr.archive.ubuntu.com jaunty-updates/universe Packages          
Atteint http://fr.archive.ubuntu.com jaunty-updates/universe Sources           
Atteint http://archive.canonical.com jaunty/partner Packages                   
Atteint http://security.ubuntu.com jaunty-security/restricted Packages         
Atteint http://security.ubuntu.com jaunty-security/main Sources        
Atteint http://security.ubuntu.com jaunty-security/universe Packages   
Atteint http://security.ubuntu.com jaunty-security/universe Sources    
Atteint http://fr.archive.ubuntu.com jaunty-updates/multiverse Packages
Atteint http://fr.archive.ubuntu.com jaunty-updates/multiverse Sources 
Atteint http://security.ubuntu.com jaunty-security/multiverse Packages 
Atteint http://security.ubuntu.com jaunty-security/multiverse Sources
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem. 
yannick@yannick:~$ sudo dpkg --configure -a
dpkg: la lecture du fichier « info » « /var/lib/dpkg/status » du paquet a échoué: Aucun fichier ou dossier de ce type
yannick@yannick:~$ sudo apt-get upgrade
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem. 
yannick@yannick:~$

Que faire pour réparer tout ça s'il vous plaît ?

Dernière modification par Rampou (Le 21/07/2009, à 02:39)

Hors ligne

#2 Le 21/07/2009, à 02:34

Rampou

Re : [Résolu] apt corrompu, dpkg intterompu ! Pas d'installation !

En fait, il fallait faire un :

sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status
sudo dpkg --configure -a
sudo apt-get update && sudo apt-get upgrade

Et le tour était joué !! big_smile

Merci beaucoup à juju2143 de l'IRC Freenode du chan #ubuntu-fr !!

Hors ligne

#3 Le 21/07/2009, à 02:35

juju2143

Re : [Résolu] apt corrompu, dpkg intterompu ! Pas d'installation !

Bonsoir,

Le fichier /var/lib/dpkg/status manquait, par chance /var/lib/dpkg/status-old existait, donc il suffisait à copier celui-ci vers la bonne place:

sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status

Il ne manque plus à refaire un

sudo dpkg --configure -a
sudo apt-get update

pour que ça marche. Par contre, j'ignore pourquoi et comment ce fichier est venu à se supprimer... De rien Rampou, avec qui j'ai résolu ce problème sur IRC!

Cordialement,
Julien

Dernière modification par juju2143 (Le 21/07/2009, à 02:37)

Hors ligne