<html>Impossible d&apos;obtenir le verrou:<br/><br/>E: dpkg a été interrompu. Il est nécessaire d&apos;utiliser « dpkg --configure -a » pour corriger le problème. </html>

Asked by Henry Lassauzé

<html>Impossible d&apos;obtenir le verrou:<br/><br/>E: dpkg a été interrompu. Il est nécessaire d&apos;utiliser « dpkg --configure -a » pour corriger le problème.
</html>

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

Open a terminal window and issue the command

sudo dpkg --configure -a

Then copy all output and paste it into this document that we can see.

Revision history for this message
Henry Lassauzé (achel+peegee) said :
#2

achel@achel-Lenovo-ideapad-330-17IKB:~$ sudo dpkg--configure -a
[sudo] Mot de passe de achel :
sudo: dpkg--configure : commande introuvable
achel@achel-Lenovo-ideapad-330-17IKB:~$ sudo dpkg --configure -a
dpkg: des problèmes de dépendances empêchent la configuration de linux-generic :
 linux-generic dépend de linux-headers-generic (= 5.15.0.78.75) ; cependant :
  La version de linux-headers-generic sur le système est 5.15.0.76.74.

dpkg: erreur de traitement du paquet linux-generic (--configure) :
 problèmes de dépendances - laissé non configuré
Paramétrage de linux-image-5.15.0-78-generic (5.15.0-78.85) ...
I: /boot/vmlinuz.old is now a symlink to vmlinuz-5.15.0-76-generic
I: /boot/initrd.img.old is now a symlink to initrd.img-5.15.0-76-generic
I: /boot/vmlinuz is now a symlink to vmlinuz-5.15.0-78-generic
I: /boot/initrd.img is now a symlink to initrd.img-5.15.0-78-generic
Paramétrage de linux-modules-5.15.0-78-generic (5.15.0-78.85) ...
Paramétrage de linux-modules-extra-5.15.0-78-generic (5.15.0-78.85) ...
Paramétrage de linux-image-generic (5.15.0.78.75) ...
Traitement des actions différées (« triggers ») pour linux-image-5.15.0-78-generic (5.15.0-78.85) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.15.0-78-generic
^Cdpkg: erreur de traitement du paquet linux-image-5.15.0-78-generic (--configure) :
 interruption du sous-processus paquet linux-image-5.15.0-78-generic script post-installation installé
Des erreurs ont été rencontrées pendant l'exécution :
 linux-generic
 linux-image-5.15.0-78-generic
achel@achel-Lenovo-ideapad-330-17IKB:~$ ^C
achel@achel-Lenovo-ideapad-330-17IKB:~$

thankshenry

   Le jeudi 10 août 2023 à 12:05:28 UTC+2, Manfred Hampl <email address hidden> a écrit :

 Your question #707596 on Ubuntu changed:
https://answers.launchpad.net/ubuntu/+question/707596

    Status: Open => Answered

Manfred Hampl proposed the following answer:
Open a terminal window and issue the command

sudo dpkg --configure -a

Then copy all output and paste it into this document that we can see.

--
If this answers your question, please go to the following page to let us
know that it is solved:
https://answers.launchpad.net/ubuntu/+question/707596/+confirm?answer_id=0

If you still need help, you can reply to this email or go to the
following page to enter your feedback:
https://answers.launchpad.net/ubuntu/+question/707596

You received this question notification because you asked the question.

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

Try again with the command

LANG=C sudo apt install linux-generic linux-image-5.15.0-78-generic linux-headers-generic -f

Revision history for this message
Henry Lassauzé (achel+peegee) said :
#5

Thanks Manfred... it seems to have worked, though I have no means of any verification. When I start Updates... nothing happens.
Does this mean that the answers you gave me solved and updated my ubuntu ?

thanks again

Henry

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

For a verification, whether the package management is in a healthy state, issue the command

sudo dpkg --audit

If you do not receive any output, then the status of all packages is fine.

Revision history for this message
Henry Lassauzé (achel+peegee) said :
#7

 here's the result of the audit

aug 11

achel@achel-Lenovo-ideapad-330-17IKB:~$ sudo dpkg --audit
[sudo] Mot de passe de achel :
Les paquets suivants sont dans un état incohérent à cause de sérieux
problèmes survenus lors de l'installation. Ils doivent être réinstallés
(ainsi que tous les paquets qui en dépendent) pour pouvoir fonctionner
correctement :
 linux-headers-5.15.0-78 (aucune description n'est disponible)

Les paquets suivants ont été dépaquetés mais ne sont pas configurés. Ils
doivent être configurés en utilisant dpkg --configure ou l'option configure
du menu de dselect pour pouvoir fonctionner :
 linux-generic        Complete Generic Linux kernel and headers

Les paquets suivants sont à demi configurés, probablement à cause de
problèmes survenus lors de la première configuration. Il faudrait réessayer
de les configurer en utilisant dpkg --configure <paquet> ou l'option
configure du menu de dselect :
 linux-image-5.15.0-78-generic Signed kernel image generic

Les paquets qui suivent ne possèdent pas de fichier de contrôle de liste dans
la base de données et doivent être réinstallés :
 linux-headers-5.15.0-78 (aucune description n'est disponible)

Les paquets qui suivent ne possèdent pas de fichier de somme de contrôle MD5 dans
la base de données et doivent être réinstallés :
 linux-headers-5.15.0-78 (aucune description n'est disponible)

achel@achel-Lenovo-ideapad-330-17IKB:~$

    Le vendredi 11 août 2023 à 09:55:29 UTC+2, Manfred Hampl <email address hidden> a écrit :

 Your question #707596 on Ubuntu changed:
https://answers.launchpad.net/ubuntu/+question/707596

Manfred Hampl posted a new comment:
For a verification, whether the package management is in a healthy
state, issue the command

sudo dpkg --audit

If you do not receive any output, then the status of all packages is
fine.

--
You received this question notification because you asked the question.

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

In this case, there is still some install and dependency problem on your system.

Open a terminal window and execute the following command:

LANG=C sudo apt install --reinstall  linux-generic linux-headers-5.15.0-78 linux-image-5.15.0-78-generic

and then copy/paste the output into this question document as done before.