web-dev-qa-db-fra.com

Des erreurs ont été détectées lors du traitement: linux-image-4.15.0-36-generic

Hier, je mettais à jour mon ordinateur, mais tout à coup ma connexion Internet a échoué. Lorsque je l'ai redémarré et que j'ai essayé de continuer le processus, j'avais le message suivant:

gonzalocriollog@gonzalocriollog-Inspiron-5420:~$ Sudo apt-get upgrade
[Sudo] password for gonzalocriollog:               
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  AMD64-microcode thermald
Use 'Sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  linux-image-4.15.0-36-generic
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 8.141 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 437137 files and directories currently installed.)
Removing linux-image-4.15.0-36-generic (4.15.0-36.39~16.04.1) ...
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-4.15.0-36-generic
/etc/kernel/postrm.d/zz-update-grub:
/usr/sbin/grub-mkconfig: 11: /etc/default/grub: splash: not found
run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code 127
dpkg: error processing package linux-image-4.15.0-36-generic (--remove):
 subprocess installed post-removal script returned error exit status 1
Errors were encountered while processing:
 linux-image-4.15.0-36-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)

Maintenant, je ne peux rien télécharger, ni mettre à jour mes applications actuelles.

Après Sudo apt-get autoremove, je reçois:

gonzalocriollog@gonzalocriollog-Inspiron-5420:~$ Sudo apt-get autoremove
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  AMD64-microcode linux-image-4.15.0-36-generic thermald
0 upgraded, 0 newly installed, 3 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 8.803 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 437137 files and directories currently installed.)
Removing linux-image-4.15.0-36-generic (4.15.0-36.39~16.04.1) ...
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-4.15.0-36-generic
/etc/kernel/postrm.d/zz-update-grub:
/usr/sbin/grub-mkconfig: 11: /etc/default/grub: splash: not found
run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code 127
dpkg: error processing package linux-image-4.15.0-36-generic (--remove):
 subprocess installed post-removal script returned error exit status 1
Removing AMD64-microcode (3.20180524.1~ubuntu0.16.04.2) ...
update-initramfs: deferring update (trigger activated)
Removing thermald (1.5-2ubuntu4) ...
Processing triggers for initramfs-tools (0.122ubuntu8.13) ...
update-initramfs: Generating /boot/initrd.img-4.15.0-34-generic
W: Possible missing firmware /lib/firmware/i915/kbl_guc_ver9_14.bin for module i915
W: Possible missing firmware /lib/firmware/i915/bxt_guc_ver8_7.bin for module i915
Processing triggers for dbus (1.10.6-1ubuntu3.3) ...
Processing triggers for man-db (2.7.5-1) ...
Errors were encountered while processing:
 linux-image-4.15.0-36-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)

les mecs!

Merci à @ user5357 pour la solution!

Tout d'abord, j'ai désinstallé grub-common.

Après, j'ai reçu ce message:

Sudo apt-get clean E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable) E: Unable to lock directory /var/lib/apt/lists/.

Pour résoudre ce problème, j'ai utilisé Sudo rm /var/lib/apt/lists/* -vf.

Enfin, Sudo apt-get update. Maintenant, je peux à nouveau installer et mettre à jour des applications.

Merci beaucoup!