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 23/08/2015, à 14:52

JoBaReD

dpkg interrompu [RESOLU]

Bonjour à tous j'ai un petit problème dès que je veux installer quelque chose en tapant

apt-get install

le terminal me répond :

E: dpkg a été interrompu. Il est nécessaire d'utiliser « sudo dpkg --configure -a » pour corriger le problème.

Dernière modification par JoBaReD (Le 31/08/2015, à 14:37)

Hors ligne

#2 Le 23/08/2015, à 15:01

Robinwood

Re : dpkg interrompu [RESOLU]

Salut,
effectue les recommandations du terminal (tu as du interrompre une mise à jour):

sudo dpkg --configure -a

et passes

sudo apt-get update

sudo apt-get upgrade

pour voir si tu as encore des erreurs.

Dernière modification par Robinwood (Le 23/08/2015, à 15:03)

#3 Le 23/08/2015, à 15:05

JoBaReD

Re : dpkg interrompu [RESOLU]

C'est complètement bloqué

dpkg : erreur : base de données d'état de dpkg est verrouillé par un autre processus

Hors ligne

#4 Le 23/08/2015, à 15:08

Robinwood

Re : dpkg interrompu [RESOLU]

Tu dois avoir deux processus dpkg en même temps, redémarres ta machine et passes les commandes de paragraphe #2.

#5 Le 23/08/2015, à 15:10

Compte anonymisé

Re : dpkg interrompu [RESOLU]

il est préférable de donner la réponse complète du terminal, de ta commande, son résultat jusqu'au retours chariot.
sans ça, impossible/difficile de t'aider, nous ne sommes pas devant ton ordinateur

#6 Le 23/08/2015, à 18:30

cqfd93

Re : dpkg interrompu [RESOLU]

Bonjour,

Robinwood a écrit :

Tu dois avoir deux processus dpkg en même temps, redémarres ta machine et passes les commandes de paragraphe #2.

Les verrous sont bien enlevés par les processus concernés juste avant le redémarrage ?


cqfd93

Hors ligne

#7 Le 23/08/2015, à 18:37

Robinwood

Re : dpkg interrompu [RESOLU]

Bien vue!

#8 Le 24/08/2015, à 10:14

tiramiseb

Re : dpkg interrompu [RESOLU]

Les verrous sont bien enlevés par les processus concernés juste avant le redémarrage ?

Quand on arrête un logiciel de gestion de paquets, le verrou s'enlève. Normalement, seul un plantage (rare d'après moi) fait que le verrou reste en place.
Bien trop souvent je vois ici des gens conseiller de supprimer le verrou sans même vérifier s'il y a un logiciel de gestion de packages (dpkg, apt, aptitude, synaptic, la logithèque, muon, etc) en fonctionnement ou non.
Le redémarrage est un peu "le bazooka pour tuer une mouche", mais au moins ça permet de s'assurer qu'aucun de ces logiciels ne tourne. Encore que, ce n'est même pas sûr. Il n'est pas exclus qu'après redémarrage quelque chose se lance (mises à jour automatiques par exemple).
Le plus efficace est toujours de regarder les processus en fonctionnement...

Hors ligne

#9 Le 28/08/2015, à 20:36

JoBaReD

Re : dpkg interrompu [RESOLU]

Alors voilà je suis désolé pour mon absence mais j'étais en vacances...:rolleyes:
pour :

sudo dpkg --configure -a

j'ai enlevé le début (ou plutôt je n'ai pas pu l'avoir )
mais ça ne dit rien d'autre que "paramétrage de ctparental)

 8200K .......... .......... .......... .......... .......... 88% 1,13M 1s
  8250K .......... .......... .......... .......... .......... 88% 1,62M 1s
  8300K .......... .......... .......... .......... .......... 89% 1,26M 1s
  8350K .......... .......... .......... .......... .......... 89% 1,48M 1s
  8400K .......... .......... .......... .......... .......... 90% 1,46M 1s
  8450K .......... .......... .......... .......... .......... 90% 1,31M 1s
  8500K .......... .......... .......... .......... .......... 91% 1,26M 1s
  8550K .......... .......... .......... .......... .......... 91% 1010K 1s
  8600K .......... .......... .......... .......... .......... 92% 1,35M 1s
  8650K .......... .......... .......... .......... .......... 92% 2,67M 1s
  8700K .......... .......... .......... .......... .......... 93% 1,15M 0s
  8750K .......... .......... .......... .......... .......... 93% 1,03M 0s
  8800K .......... .......... .......... .......... .......... 94%  755K 0s
  8850K .......... .......... .......... .......... .......... 94% 1,26M 0s
  8900K .......... .......... .......... .......... .......... 95% 1,50M 0s
  8950K .......... .......... .......... .......... .......... 96%  630K 0s
  9000K .......... .......... .......... .......... .......... 96% 2,49M 0s
  9050K .......... .......... .......... .......... .......... 97% 1,84M 0s
  9100K .......... .......... .......... .......... .......... 97% 1,22M 0s
  9150K .......... .......... .......... .......... .......... 98% 1,40M 0s
  9200K .......... .......... .......... .......... .......... 98% 1,37M 0s
  9250K .......... .......... .......... .......... .......... 99% 1,41M 0s
  9300K .......... .......... .......... .......... .......... 99% 1,39M 0s
  9350K .......... .......... ...                             100% 1,45M=7,3s

2015-08-28 20:32:33 (1,26 MB/s) - «/tmp/alcasar/blacklists.tar.gz» enregistré [9598692/9598692]

adapt
20:32:33
resolvconffixoff
 * Stopping DNS forwarder and DHCP server dnsmasq                        [ OK ] 
fin resolvconffixoff
 * Restarting DansGuardian dansguardian                                  [ OK ] 
 * Restarting filtering proxy server privoxy                             [ OK ] 
Toulouse Black and White List migration process. Please wait : .........................................................
20:32:53
reabdomaine
20:32:53

Application de la liste blanche (domaine réhabilité):..................
20:32:58
dnsmasqon
resolvconffixon
 * Stopping DNS forwarder and DHCP server dnsmasq                                * (not running)
 * Starting DNS forwarder and DHCP server dnsmasq                        [ OK ] 
fin resolvconffixon
 * Restarting DansGuardian dansguardian                                  [ OK ] 
 * Restarting filtering proxy server privoxy                             [ OK ] 
fin dnsmasqon
confdansguardian
 * Restarting DansGuardian dansguardian                                  [ OK ] 
fin confdansguardian
confprivoxy
 * Restarting filtering proxy server privoxy                             [ OK ] 
fin confprivoxy
FoncHTTPDCONF
 * Stopping web server lighttpd                                          [ OK ] 
cp: impossible d'évaluer «CTadmin/*»: Aucun fichier ou dossier de ce type
Sebastien:interface admin:465d2c006a2543bcfdbc03db38280dfa
chmod: impossible d'accéder à «/root/passwordCTadmin»: Aucun fichier ou dossier de ce type
chown: impossible d'accéder à «/root/passwordCTadmin»: Aucun fichier ou dossier de ce type
CActparental
Signature ok
subject=/C=FR/ST=FRANCE/L=ici/O=ctparental/CN=localhost
Getting CA Private Key
Signature ok
subject=/C=FR/ST=FRANCE/L=ici/O=ctparental/CN=duckduckgo.com
Getting CA Private Key
Signature ok
subject=/C=FR/ST=FRANCE/L=ici/O=ctparental/CN=search.yahoo.com
Getting CA Private Key
updatecauser
fin updatecauser
fin CActparental
 * Starting web server lighttpd                                                 2015-08-28 20:33:10: (network.c.405) can't bind to port: 127.0.0.1 80 Address already in use 
                                                                         [fail]
Erreur au lancement du service lighttpd 

Ensuite si je ferme le terminal il me dit "un processus est en cours..."
et j'ai beau le laisser ouvert pendant très longtemps pas moyen...

Hors ligne

#10 Le 28/08/2015, à 20:38

JoBaReD

Re : dpkg interrompu [RESOLU]

Pour

sudo apt-get update

:

Ign http://security.ubuntu.com utopic-security InRelease
Ign http://fr.archive.ubuntu.com utopic InRelease                     
Ign http://extras.ubuntu.com utopic InRelease                          
Atteint http://security.ubuntu.com utopic-security Release.gpg         
Ign http://fr.archive.ubuntu.com utopic-updates InRelease              
Atteint http://extras.ubuntu.com utopic Release.gpg                    
Atteint http://security.ubuntu.com utopic-security Release             
Ign http://fr.archive.ubuntu.com utopic-backports InRelease            
Atteint http://extras.ubuntu.com utopic Release                        
Ign http://fr.archive.ubuntu.com utopic-proposed InRelease             
Atteint http://fr.archive.ubuntu.com utopic Release.gpg     
Atteint http://fr.archive.ubuntu.com utopic-updates Release.gpg        
Atteint http://security.ubuntu.com utopic-security/main Sources        
Atteint http://extras.ubuntu.com utopic/main Sources                           
Atteint http://fr.archive.ubuntu.com utopic-backports Release.gpg              
Atteint http://security.ubuntu.com utopic-security/restricted Sources          
Atteint http://extras.ubuntu.com utopic/main amd64 Packages                    
Atteint http://fr.archive.ubuntu.com utopic-proposed Release.gpg               
Atteint http://security.ubuntu.com utopic-security/universe Sources            
Atteint http://extras.ubuntu.com utopic/main i386 Packages                     
Atteint http://fr.archive.ubuntu.com utopic Release                            
Atteint http://security.ubuntu.com utopic-security/multiverse Sources          
Atteint http://fr.archive.ubuntu.com utopic-updates Release                    
Atteint http://security.ubuntu.com utopic-security/main amd64 Packages         
Atteint http://fr.archive.ubuntu.com utopic-backports Release                  
Atteint http://security.ubuntu.com utopic-security/restricted amd64 Packages   
Atteint http://fr.archive.ubuntu.com utopic-proposed Release                   
Atteint http://security.ubuntu.com utopic-security/universe amd64 Packages     
Atteint http://fr.archive.ubuntu.com utopic/main Sources                       
Atteint http://security.ubuntu.com utopic-security/multiverse amd64 Packages   
Atteint http://fr.archive.ubuntu.com utopic/restricted Sources                 
Atteint http://security.ubuntu.com utopic-security/main i386 Packages          
Atteint http://fr.archive.ubuntu.com utopic/universe Sources                   
Atteint http://security.ubuntu.com utopic-security/restricted i386 Packages    
Atteint http://fr.archive.ubuntu.com utopic/multiverse Sources                 
Atteint http://security.ubuntu.com utopic-security/universe i386 Packages      
Atteint http://fr.archive.ubuntu.com utopic/main amd64 Packages                
Atteint http://security.ubuntu.com utopic-security/multiverse i386 Packages    
Atteint http://fr.archive.ubuntu.com utopic/restricted amd64 Packages          
Atteint http://security.ubuntu.com utopic-security/main Translation-en         
Atteint http://fr.archive.ubuntu.com utopic/universe amd64 Packages            
Atteint http://security.ubuntu.com utopic-security/multiverse Translation-en   
Atteint http://security.ubuntu.com utopic-security/restricted Translation-en   
Atteint http://fr.archive.ubuntu.com utopic/multiverse amd64 Packages          
Atteint http://fr.archive.ubuntu.com utopic/main i386 Packages                 
Atteint http://fr.archive.ubuntu.com utopic/restricted i386 Packages           
Atteint http://security.ubuntu.com utopic-security/universe Translation-en     
Atteint http://fr.archive.ubuntu.com utopic/universe i386 Packages             
Atteint http://fr.archive.ubuntu.com utopic/multiverse i386 Packages           
Atteint http://fr.archive.ubuntu.com utopic/main Translation-fr
Atteint http://fr.archive.ubuntu.com utopic/main Translation-en
Atteint http://fr.archive.ubuntu.com utopic/main Translation-en_CA
Atteint http://fr.archive.ubuntu.com utopic/main Translation-en_AU
Atteint http://fr.archive.ubuntu.com utopic/multiverse Translation-fr
Atteint http://fr.archive.ubuntu.com utopic/multiverse Translation-en
Atteint http://fr.archive.ubuntu.com utopic/multiverse Translation-en_AU
Atteint http://fr.archive.ubuntu.com utopic/restricted Translation-fr
Atteint http://fr.archive.ubuntu.com utopic/restricted Translation-en
Atteint http://fr.archive.ubuntu.com utopic/restricted Translation-en_AU
Ign http://extras.ubuntu.com utopic/main Translation-fr_FR
Atteint http://fr.archive.ubuntu.com utopic/universe Translation-fr            
Ign http://extras.ubuntu.com utopic/main Translation-fr                        
Atteint http://fr.archive.ubuntu.com utopic/universe Translation-en            
Ign http://extras.ubuntu.com utopic/main Translation-fr_CA                     
Atteint http://fr.archive.ubuntu.com utopic/universe Translation-en_CA         
Ign http://extras.ubuntu.com utopic/main Translation-en                        
Ign http://extras.ubuntu.com utopic/main Translation-en_CA
Ign http://extras.ubuntu.com utopic/main Translation-en_AU
Atteint http://fr.archive.ubuntu.com utopic/universe Translation-en_AU
Atteint http://fr.archive.ubuntu.com utopic-updates/main Sources
Atteint http://fr.archive.ubuntu.com utopic-updates/restricted Sources
Atteint http://fr.archive.ubuntu.com utopic-updates/universe Sources
Atteint http://fr.archive.ubuntu.com utopic-updates/multiverse Sources
Atteint http://fr.archive.ubuntu.com utopic-updates/main amd64 Packages
Atteint http://fr.archive.ubuntu.com utopic-updates/restricted amd64 Packages
Atteint http://fr.archive.ubuntu.com utopic-updates/universe amd64 Packages
Atteint http://fr.archive.ubuntu.com utopic-updates/multiverse amd64 Packages
Atteint http://fr.archive.ubuntu.com utopic-updates/main i386 Packages
Atteint http://fr.archive.ubuntu.com utopic-updates/restricted i386 Packages
Atteint http://fr.archive.ubuntu.com utopic-updates/universe i386 Packages
Atteint http://fr.archive.ubuntu.com utopic-updates/multiverse i386 Packages
Atteint http://fr.archive.ubuntu.com utopic-updates/main Translation-en
Atteint http://fr.archive.ubuntu.com utopic-updates/multiverse Translation-en
Atteint http://fr.archive.ubuntu.com utopic-updates/restricted Translation-en
Atteint http://fr.archive.ubuntu.com utopic-updates/universe Translation-en
Atteint http://fr.archive.ubuntu.com utopic-backports/main Sources
Atteint http://fr.archive.ubuntu.com utopic-backports/restricted Sources
Atteint http://fr.archive.ubuntu.com utopic-backports/universe Sources
Atteint http://fr.archive.ubuntu.com utopic-backports/multiverse Sources
Atteint http://fr.archive.ubuntu.com utopic-backports/main amd64 Packages
Atteint http://fr.archive.ubuntu.com utopic-backports/restricted amd64 Packages
Atteint http://fr.archive.ubuntu.com utopic-backports/universe amd64 Packages
Atteint http://fr.archive.ubuntu.com utopic-backports/multiverse amd64 Packages
Atteint http://fr.archive.ubuntu.com utopic-backports/main i386 Packages
Atteint http://fr.archive.ubuntu.com utopic-backports/restricted i386 Packages
Atteint http://fr.archive.ubuntu.com utopic-backports/universe i386 Packages
Atteint http://fr.archive.ubuntu.com utopic-backports/multiverse i386 Packages
Atteint http://fr.archive.ubuntu.com utopic-backports/main Translation-en
Atteint http://fr.archive.ubuntu.com utopic-backports/multiverse Translation-en
Atteint http://fr.archive.ubuntu.com utopic-backports/restricted Translation-en
Atteint http://fr.archive.ubuntu.com utopic-backports/universe Translation-en
Atteint http://fr.archive.ubuntu.com utopic-proposed/multiverse amd64 Packages
Atteint http://fr.archive.ubuntu.com utopic-proposed/main amd64 Packages
Atteint http://fr.archive.ubuntu.com utopic-proposed/restricted amd64 Packages
Atteint http://fr.archive.ubuntu.com utopic-proposed/universe amd64 Packages
Atteint http://fr.archive.ubuntu.com utopic-proposed/multiverse i386 Packages
Atteint http://fr.archive.ubuntu.com utopic-proposed/main i386 Packages
Atteint http://fr.archive.ubuntu.com utopic-proposed/restricted i386 Packages
Atteint http://fr.archive.ubuntu.com utopic-proposed/universe i386 Packages
Atteint http://fr.archive.ubuntu.com utopic-proposed/main Translation-fr
Atteint http://fr.archive.ubuntu.com utopic-proposed/main Translation-en
Atteint http://fr.archive.ubuntu.com utopic-proposed/main Translation-en_CA
Atteint http://fr.archive.ubuntu.com utopic-proposed/main Translation-en_AU
Atteint http://fr.archive.ubuntu.com utopic-proposed/multiverse Translation-fr
Atteint http://fr.archive.ubuntu.com utopic-proposed/multiverse Translation-en
Atteint http://fr.archive.ubuntu.com utopic-proposed/multiverse Translation-en_AU
Atteint http://fr.archive.ubuntu.com utopic-proposed/restricted Translation-fr
Atteint http://fr.archive.ubuntu.com utopic-proposed/restricted Translation-en
Atteint http://fr.archive.ubuntu.com utopic-proposed/restricted Translation-en_AU
Atteint http://fr.archive.ubuntu.com utopic-proposed/universe Translation-fr
Atteint http://fr.archive.ubuntu.com utopic-proposed/universe Translation-en
Atteint http://fr.archive.ubuntu.com utopic-proposed/universe Translation-en_CA
Atteint http://fr.archive.ubuntu.com utopic-proposed/universe Translation-en_AU
E: dpkg a été interrompu. Il est nécessaire d'utiliser « sudo dpkg --configure -a » pour corriger le problème.

Hors ligne

#11 Le 28/08/2015, à 20:39

JoBaReD

Re : dpkg interrompu [RESOLU]

sudo apt-get upgrade
E: dpkg a été interrompu. Il est nécessaire d'utiliser « sudo dpkg --configure -a » pour corriger le problème.

Hors ligne

#12 Le 28/08/2015, à 20:54

tiramiseb

Re : dpkg interrompu [RESOLU]

 * Starting web server lighttpd                                                 2015-08-28 20:33:10: (network.c.405) can't bind to port: 127.0.0.1 80 Address already in use 
                                                                         [fail]
Erreur au lancement du service lighttpd 

N'as-tu as déjà un serveur qui écoute sur le port 80, par hasard ?

Hors ligne

#13 Le 28/08/2015, à 21:12

JoBaReD

Re : dpkg interrompu [RESOLU]

Euh...
je ne sais pas...:/

Hors ligne

#14 Le 28/08/2015, à 21:18

tiramiseb

Re : dpkg interrompu [RESOLU]

Que donne cette commande ?

sudo netstat -tlnp

Hors ligne

#15 Le 28/08/2015, à 21:19

JoBaReD

Re : dpkg interrompu [RESOLU]

sudo netstat -tlnp
[sudo] password for nom_utilisateur: 
Connexions Internet actives (seulement serveurs)
Proto Recv-Q Send-Q Adresse locale          Adresse distante        Etat       PID/Program name
tcp        0      0 127.0.0.1:8080          0.0.0.0:*               LISTEN      5876/dansguardian
tcp        0      0 0.0.0.0:21              0.0.0.0:*               LISTEN      2111/pure-ftpd (SER
tcp        0      0 127.0.0.1:54            0.0.0.0:*               LISTEN      5752/dnsmasq    
tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN      3021/cupsd      
tcp        0      0 127.0.0.1:8888          0.0.0.0:*               LISTEN      5913/privoxy    
tcp6       0      0 :::80                   :::*                    LISTEN      2279/apache2    
tcp6       0      0 :::21                   :::*                    LISTEN      2111/pure-ftpd (SER

Dernière modification par JoBaReD (Le 05/11/2016, à 19:46)

Hors ligne

#16 Le 28/08/2015, à 21:28

tiramiseb

Re : dpkg interrompu [RESOLU]

tcp6       0      0 :::80                   :::*                    LISTEN      2279/apache2  

Tu as déjà Apache 2 qui tourne. Il écoute sur le port 80.
Tu essaies d'installer Lighttpd. Il veut écouter sur le port 80.

D'où le problème que tu rencontres. Il faut choisir quel serveur web tu veux installer...

Hors ligne

#17 Le 28/08/2015, à 22:15

moko138

Re : dpkg interrompu [RESOLU]

Je note, même si ce n'est pas la question, que les dépôts "proposed" sont actuvés.


%NOINDEX%
Un utilitaire précieux : ncdu
Photo, mini-tutoriel :  À la découverte de dcraw

Hors ligne

#18 Le 29/08/2015, à 07:54

JoBaReD

Re : dpkg interrompu [RESOLU]

Et comment faut-il faire????

Hors ligne

#19 Le 29/08/2015, à 07:54

JoBaReD

Re : dpkg interrompu [RESOLU]

moko138 a écrit :

Je note, même si ce n'est pas la question, que les dépôts "proposed" sont actuvés.

Il y a un problème ???

Hors ligne

#20 Le 29/08/2015, à 09:27

moko138

Re : dpkg interrompu [RESOLU]

tiramiseb a écrit :

Bien trop souvent je vois ici des gens conseiller de supprimer le verrou sans même vérifier s'il y a un logiciel de gestion de packages (dpkg, apt, aptitude, synaptic, la logithèque, muon, etc) en fonctionnement ou non.
Le redémarrage est un peu "le bazooka pour tuer une mouche", mais au moins ça permet de s'assurer qu'aucun de ces logiciels ne tourne. Encore que, ce n'est même pas sûr. Il n'est pas exclus qu'après redémarrage quelque chose se lance (mises à jour automatiques par exemple).
Le plus efficace est toujours de regarder les processus en fonctionnement...

Alors je propose cette vérification :

ps -e | grep -E "apt|dpkg|update-manager|software|muon"

Ai-je oublié quelque chose ?

EDIT : (je ne suis pas sûr que spécifier "muon" soit utile, puisque muon utilise

apt-cache show muon a écrit :

the apt-xapian index and the Synaptic search algorithm

Mais ça ne peut pas faire de mal.)

Dernière modification par moko138 (Le 29/08/2015, à 09:57)


%NOINDEX%
Un utilitaire précieux : ncdu
Photo, mini-tutoriel :  À la découverte de dcraw

Hors ligne

#21 Le 29/08/2015, à 09:31

moko138

Re : dpkg interrompu [RESOLU]

JoBaReD a écrit :
moko138 a écrit :

Je note, même si ce n'est pas la question, que les dépôts "proposed" sont actuvés.

Il y a un problème ???

Cf. depots §"proposed"


%NOINDEX%
Un utilitaire précieux : ncdu
Photo, mini-tutoriel :  À la découverte de dcraw

Hors ligne

#22 Le 29/08/2015, à 09:41

tiramiseb

Re : dpkg interrompu [RESOLU]

JoBaReD a écrit :

Et comment faut-il faire????

Tu as installé Apache 2. Je ne sais pas dans quel but.
Tu as ensuite demandé l'installation de Lighttpd. Je ne sais pas dans quel but.

Je suis donc incapable de te dire comment choisir entre l'un et l'autre.
Ça ne s'installe pas tout seul, si c'est là ça veut dire que tu les as demandés.
Tu ne t'en rappelles vraiment pas !?

Hors ligne

#23 Le 29/08/2015, à 11:40

JoBaReD

Re : dpkg interrompu [RESOLU]

Pour Apache 2 je ne me souviens pas,
mais pour Lighttpd je sais que c''est  quand j'ai installé le contrôle parental...

Hors ligne

#24 Le 29/08/2015, à 11:41

tiramiseb

Re : dpkg interrompu [RESOLU]

Si tu supprimes Apache, ça rendra indisponible le service qu'il dessert. Et je ne sais pas ce que tu y as mis.

Hors ligne

#25 Le 29/08/2015, à 11:46

JoBaReD

Re : dpkg interrompu [RESOLU]

Je pense que je peux le supprimer sans que cela me pose de problème...
Mais comment?

Hors ligne