J'ai interrompu une installation et maintenant, apt et apt-get ne fonctionnent avec aucun argument. J'ai toujours la même erreur:
E: dpkg execution was interrupted, you must manually run "Sudo dpkg --configure -a" to correct the problem.
EDIT: J'ai essayé de faire Sudo dpkg --configure -a
et il ne fait que
Setting up cento (1.5.181022-373) ...
Making the /var/log/cento directory...
(Re)Starting cento...
^Cdpkg: error processing package cento (--configure):
installed cento package post-installation script subprocess was interrupted
Setting up ntopng (3.7.181022-5357) ...
Rebuilding ld cache...
(Re)Starting ntopng...
^Cdpkg: error processing package ntopng (--configure):
installed ntopng package post-installation script subprocess was interrupted
Setting up pfring-dkms (7.3.0) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing package pfring-dkms (--configure):
installed pfring-dkms package post-installation script subprocess returned error exit status 1
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Errors were encountered while processing:
cento
ntopng
pfring-dkms
EDIT 2: J'ai essayé Sudo apt install --reinstall cento
et voici la sortie:
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 9 not upgraded.
3 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
E: Internal Error, No file name for cento:AMD64
EDIT 3: J'ai fait sudo fuser -v /var/cache/debconf/config.dat
USUARIO ORDEN DE ACCESO PID
/var/cache/debconf/config.dat:
root 2845 F.... frontend
Puis j'ai fait Sudo kill 2845
(je n'ai pas de réponse)
Puis j'ai fait Sudo kill -9 2845
kill: (2845): No such process
Puis j'ai essayé Sudo apt autoremove
:
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
4 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
Setting up cento (1.5.181022-373) ...
Making the /var/log/cento directory...
(Re)Starting cento...
Progress: [ 0%] [.............................................................]
Et ça s'arrête là et ne fait plus
Une solution à ce problème de verrouillage est détaillée dans le wiki :
Sudo fuser -v /var/cache/debconf/config.dat
Vous montrera quel processus tient le verrou:
USER PID ACCESS COMMAND
/var/cache/debconf/config.dat:
root 18210 F.... dpkg-preconfigu
Ensuite, il vous suffit de noter le PID et de le tuer comme suit:
Sudo kill PID
Sudo kill -9 PID # if the first doesn't work
Répondu à l'origine par Sayed Jalil Hassan