web-dev-qa-db-fra.com

erreur lors de l’installation du noyau Linux sur Ubuntu 16.04; dpkg: paquet de traitement des erreurs linux-tools

Je suis ce tutoriel pour compiler et installer un nouveau noyau dans mon système Ubuntu et j'ai eu cette erreur

dpkg: error processing package linux-tools-4.4.0-119-generic (--install)

quand j'ai publié Sudo dpkg -i linux*4.4.0-119.143*.deb

Voici la sortie complète:

(Reading database ... 270468 files and directories currently installed.)
Preparing to unpack linux-cloud-tools-4.4.0-119_4.4.0-119.143+test1_AMD64.deb ...
Unpacking linux-cloud-tools-4.4.0-119 (4.4.0-119.143+test1) over (4.4.0-119.143+test1) ...
Preparing to unpack linux-cloud-tools-4.4.0-119-generic_4.4.0-119.143+test1_AMD64.deb ...
Unpacking linux-cloud-tools-4.4.0-119-generic (4.4.0-119.143+test1) over (4.4.0-119.143+test1) ...
Preparing to unpack linux-headers-4.4.0-119_4.4.0-119.143+test1_all.deb ...
Unpacking linux-headers-4.4.0-119 (4.4.0-119.143+test1) over (4.4.0-119.143+test1) ...
Preparing to unpack linux-headers-4.4.0-119-generic_4.4.0-119.143+test1_AMD64.deb ...
Unpacking linux-headers-4.4.0-119-generic (4.4.0-119.143+test1) over (4.4.0-119.143+test1) ...
Preparing to unpack linux-image-4.4.0-119-generic_4.4.0-119.143+test1_AMD64.deb ...
Done.
Unpacking linux-image-4.4.0-119-generic (4.4.0-119.143+test1) over (4.4.0-119.143+test1) ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.4.0-119-generic /boot/vmlinuz-4.4.0-119-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.4.0-119-generic /boot/vmlinuz-4.4.0-119-generic
Preparing to unpack linux-image-extra-4.4.0-119-generic_4.4.0-119.143+test1_AMD64.deb ...
Unpacking linux-image-extra-4.4.0-119-generic (4.4.0-119.143+test1) over (4.4.0-119.143+test1) ...
Preparing to unpack linux-tools-4.4.0-119_4.4.0-119.143+test1_AMD64.deb ...
Unpacking linux-tools-4.4.0-119 (4.4.0-119.143+test1) over (4.4.0-119.143+test1) ...
Preparing to unpack linux-tools-4.4.0-119-generic_4.4.0-119.143+test1_AMD64.deb ...
Unpacking linux-tools-4.4.0-119-generic (4.4.0-119.143+test1) over (4.4.0-119.143+test1) ...
dpkg: dependency problems prevent configuration of linux-cloud-tools-4.4.0-119:
 linux-cloud-tools-4.4.0-119 depends on linux-cloud-tools-common; however:
  Package linux-cloud-tools-common is not installed.

dpkg: error processing package linux-cloud-tools-4.4.0-119 (--install):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-cloud-tools-4.4.0-119-generic:
 linux-cloud-tools-4.4.0-119-generic depends on linux-cloud-tools-4.4.0-119; however:
  Package linux-cloud-tools-4.4.0-119 is not configured yet.

dpkg: error processing package linux-cloud-tools-4.4.0-119-generic (--install):
 dependency problems - leaving unconfigured
Setting up linux-headers-4.4.0-119 (4.4.0-119.143+test1) ...
Setting up linux-headers-4.4.0-119-generic (4.4.0-119.143+test1) ...
Setting up linux-image-4.4.0-119-generic (4.4.0-119.143+test1) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Not updating initrd symbolic links since we are being updated/reinstalled 
(4.4.0-119.143+test1 was configured last, according to dpkg)
Not updating image symbolic links since we are being updated/reinstalled 
(4.4.0-119.143+test1 was configured last, according to dpkg)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-119-generic /boot/vmlinuz-4.4.0-119-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-119-generic /boot/vmlinuz-4.4.0-119-generic
update-initramfs: Generating /boot/initrd.img-4.4.0-119-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 4.4.0-119-generic /boot/vmlinuz-4.4.0-119-generic
run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 4.4.0-119-generic /boot/vmlinuz-4.4.0-119-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 4.4.0-119-generic /boot/vmlinuz-4.4.0-119-generic
run-parts: executing /etc/kernel/postinst.d/vboxadd 4.4.0-119-generic /boot/vmlinuz-4.4.0-119-generic
VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel modules.
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.4.0-119-generic /boot/vmlinuz-4.4.0-119-generic
Generating grub configuration file ...
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found linux image: /boot/vmlinuz-4.13.0-38-generic
Found initrd image: /boot/initrd.img-4.13.0-38-generic
Found linux image: /boot/vmlinuz-4.13.0-36-generic
Found initrd image: /boot/initrd.img-4.13.0-36-generic
Found linux image: /boot/vmlinuz-4.4.0-119-generic
Found initrd image: /boot/initrd.img-4.4.0-119-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
done
Setting up linux-image-extra-4.4.0-119-generic (4.4.0-119.143+test1) ...
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-119-generic /boot/vmlinuz-4.4.0-119-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-119-generic /boot/vmlinuz-4.4.0-119-generic
update-initramfs: Generating /boot/initrd.img-4.4.0-119-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 4.4.0-119-generic /boot/vmlinuz-4.4.0-119-generic
run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 4.4.0-119-generic /boot/vmlinuz-4.4.0-119-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 4.4.0-119-generic /boot/vmlinuz-4.4.0-119-generic
run-parts: executing /etc/kernel/postinst.d/vboxadd 4.4.0-119-generic /boot/vmlinuz-4.4.0-119-generic
VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel modules.
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.4.0-119-generic /boot/vmlinuz-4.4.0-119-generic
Generating grub configuration file ...
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found linux image: /boot/vmlinuz-4.13.0-38-generic
Found initrd image: /boot/initrd.img-4.13.0-38-generic
Found linux image: /boot/vmlinuz-4.13.0-36-generic
Found initrd image: /boot/initrd.img-4.13.0-36-generic
Found linux image: /boot/vmlinuz-4.4.0-119-generic
Found initrd image: /boot/initrd.img-4.4.0-119-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
done
dpkg: dependency problems prevent configuration of linux-tools-4.4.0-119:
 linux-tools-4.4.0-119 depends on linux-tools-common; however:
  Package linux-tools-common is not installed.

dpkg: error processing package linux-tools-4.4.0-119 (--install):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-tools-4.4.0-119-generic:
 linux-tools-4.4.0-119-generic depends on linux-tools-4.4.0-119; however:
  Package linux-tools-4.4.0-119 is not configured yet.

dpkg: error processing package linux-tools-4.4.0-119-generic (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 linux-cloud-tools-4.4.0-119
 linux-cloud-tools-4.4.0-119-generic
 linux-tools-4.4.0-119
 linux-tools-4.4.0-119-generic

Mon Ubuntu est 16.04, 64 bits, fonctionnant dans la virtualbox. L'hôte est une latitude de Dell exécutant Ubuntu 14.04. La compilation s'est bien passée, pas d'erreur. Toute aide est la bienvenue.

1
Godo

C'est déjà dans la sortie d'erreur. Il existe certains problèmes de dépendance dus à linux-tools-common non installé. Alors

Sudo apt-get install linux-tools-common

Vous pouvez essayer ceci avant,

Sudo apt-get install -f

2
Mahouk