J'utilise Ubuntu 16.04 avec le noyau 4.16.3, à la fois sur mon ordinateur de bureau et sur mon ordinateur portable. Chaque fois que j'essaie de passer à un nouveau noyau avec UKUU, la configuration du paquet échoue et me renvoie cette erreur (exemple d'installation 4.16.6). :
dpkg: error processing package linux-image-unsigned-4.16.6-041606-generic (--install):
dependency problems - leaving unconfigured
Et la seule solution est de l'enlever, comment puis-je le résoudre?
Pour la prise en charge de nVidia, bbswitch et compilation de boîtes virtuelles par dkms, utilisez:
Sudo apt install libelf-dev
Pour contourner les nouvelles erreurs d'installation linux-header
, téléchargez: libssl1.1
Téléchargez le nouveaux noyaux que vous voulez et votre ~/Downloads
devrait ressembler à ceci:
$ ll *.deb
-rw-rw-r-- 1 rick rick 1128420 Oct 28 08:33 libssl1.1_1.1.0g-2ubuntu4.1_AMD64.deb
-rw-rw-r-- 1 rick rick 10741128 Oct 28 08:05 linux-headers-4.14.78-041478_4.14.78-041478.201810200529_all.deb
-rw-rw-r-- 1 rick rick 1052200 Oct 28 08:05 linux-headers-4.14.78-041478-generic_4.14.78-041478.201810200529_AMD64.deb
-rw-rw-r-- 1 rick rick 8243552 Oct 28 08:05 linux-image-unsigned-4.14.78-041478-generic_4.14.78-041478.201810200529_AMD64.deb
-rw-rw-r-- 1 rick rick 47559380 Oct 28 08:06 linux-modules-4.14.78-041478-generic_4.14.78-041478.201810200529_AMD64.deb
Vous devriez maintenant pouvoir installer avec succès:
Sudo dpkg -i *.deb
Les noyaux 4.14.xx
, 4.16.xx
et 4.17.rc(xx)
partagent tous le même bogue au cours de la dernière semaine; 24-30 avril 2018.
Je viens d'essayer 4.14.38
ce soir et il présente les mêmes erreurs que 4.14.36
et 4.14.37
comme indiqué dans ce rapport de bogue .
Dans mon cas ce soir, les erreurs sont les suivantes:
$ Sudo dpkg -i *.deb
Selecting previously unselected package linux-headers-4.14.38-041438.
(Reading database ... 641792 files and directories currently installed.)
Preparing to unpack linux-headers-4.14.38-041438_4.14.38-041438.201804300419_all.deb ...
Unpacking linux-headers-4.14.38-041438 (4.14.38-041438.201804300419) ...
Selecting previously unselected package linux-headers-4.14.38-041438-generic.
Preparing to unpack linux-headers-4.14.38-041438-generic_4.14.38-041438.201804300419_AMD64.deb ...
Unpacking linux-headers-4.14.38-041438-generic (4.14.38-041438.201804300419) ...
Selecting previously unselected package linux-image-unsigned-4.14.38-041438-generic.
Preparing to unpack linux-image-unsigned-4.14.38-041438-generic_4.14.38-041438.201804300419_AMD64.deb ...
Unpacking linux-image-unsigned-4.14.38-041438-generic (4.14.38-041438.201804300419) ...
Selecting previously unselected package linux-modules-4.14.38-041438-generic.
Preparing to unpack linux-modules-4.14.38-041438-generic_4.14.38-041438.201804300419_AMD64.deb ...
Unpacking linux-modules-4.14.38-041438-generic (4.14.38-041438.201804300419) ...
Setting up linux-headers-4.14.38-041438 (4.14.38-041438.201804300419) ...
dpkg: dependency problems prevent configuration of linux-headers-4.14.38-041438-generic:
linux-headers-4.14.38-041438-generic depends on libssl1.1 (>= 1.1.0); however:
Package libssl1.1 is not installed.
dpkg: error processing package linux-headers-4.14.38-041438-generic (--install):
dependency problems - leaving unconfigured
Setting up linux-modules-4.14.38-041438-generic (4.14.38-041438.201804300419) ...
Setting up linux-image-unsigned-4.14.38-041438-generic (4.14.38-041438.201804300419) ...
/var/lib/dpkg/info/linux-image-unsigned-4.14.38-041438-generic.postinst: 50: /var/lib/dpkg/info/linux-image-unsigned-4.14.38-041438-generic.postinst: linux-update-symlinks: not found
dpkg: error processing package linux-image-unsigned-4.14.38-041438-generic (--install):
subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
linux-headers-4.14.38-041438-generic
linux-image-unsigned-4.14.38-041438-generic
Pour corriger les erreurs, j'ai essayé Sudo apt install -f
mais cela ne résoudra pas le problème et provoque un "rapport d'incident":
En utilisant Sudo rm-kernels
j'ai enlevé 4.14.38
autant que j'ai pu:
Cette fois-ci, seuls les en-têtes ont été supprimés avec succès:
The following packages will be REMOVED:
linux-headers-4.14.38-041438*
0 upgraded, 0 newly installed, 1 to remove and 2 not upgraded.
1 not fully installed or removed.
After this operation, 74.6 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 665813 files and directories currently installed.)
Removing linux-headers-4.14.38-041438 (4.14.38-041438.201804300419) ...
Setting up linux-image-unsigned-4.14.38-041438-generic (4.14.38-041438.201804300419) ...
/var/lib/dpkg/info/linux-image-unsigned-4.14.38-041438-generic.postinst: 50: /var/lib/dpkg/info/linux-image-unsigned-4.14.38-041438-generic.postinst: linux-update-symlinks: not found
dpkg: error processing package linux-image-unsigned-4.14.38-041438-generic (--configure):
subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
linux-image-unsigned-4.14.38-041438-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
Voyons maintenant ce qui reste:
$ apt list | grep 4.14.36
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
linux-image-unsigned-4.14.36-041436-generic/now 4.14.36-041436.201804240906 AMD64 [residual-config]
Essayons de l'enlever:
$ Sudo apt remove linux-modules-4.14.38-041438-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
bbswitch-dkms dkms gdm libjansson4 libxnvctrl0 linux-gcp-tools-4.10.0-1008
linux-gcp-tools-4.10.0-1009 linux-headers-4.4.0-103 linux-headers-4.4.0-103-generic
linux-image-4.4.0-103-generic linux-image-extra-4.4.0-103-generic
linux-tools-4.10.0-1008-gcp linux-tools-4.10.0-1009-gcp nvidia-prime nvidia-settings
python-compizconfig python-pyudev screen-resolution-extra
Use 'Sudo apt autoremove' to remove them.
The following packages will be REMOVED:
linux-image-unsigned-4.14.38-041438-generic linux-modules-4.14.38-041438-generic
0 upgraded, 0 newly installed, 2 to remove and 2 not upgraded.
After this operation, 296 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 641771 files and directories currently installed.)
Removing linux-image-unsigned-4.14.38-041438-generic (4.14.38-041438.201804300419) ...
/var/lib/dpkg/info/linux-image-unsigned-4.14.38-041438-generic.prerm: 11: /var/lib/dpkg/info/linux-image-unsigned-4.14.38-041438-generic.prerm: linux-check-removal: not found
dpkg: error processing package linux-image-unsigned-4.14.38-041438-generic (--remove):
subprocess installed pre-removal script returned error exit status 127
dpkg: linux-modules-4.14.38-041438-generic: dependency problems, but removing anyway as you requested:
linux-image-unsigned-4.14.38-041438-generic depends on linux-modules-4.14.38-041438-generic.
Removing linux-modules-4.14.38-041438-generic (4.14.38-041438.201804300419) ...
Errors were encountered while processing:
linux-image-unsigned-4.14.38-041438-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
Editez le fichier /var/lib/dpkg/info/linux-image-unsigned-4.14.38-041438-generic.prerm
:
#!/bin/sh
set -e
version=4.14.38-041438-generic
image_path=/boot/vmlinuz-$version
(... SNIP ...)
Juste en dessous de la première ligne #!/bin/sh
insérez une nouvelle ligne:
exit 0
Enregistrez le fichier et réexécutez la commande ayant échoué:
$ Sudo apt remove linux-image-unsigned-4.14.38-041438-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
bbswitch-dkms dkms gdm libjansson4 libxnvctrl0 linux-gcp-tools-4.10.0-1008
linux-gcp-tools-4.10.0-1009 linux-headers-4.4.0-103 linux-headers-4.4.0-103-generic
linux-image-4.4.0-103-generic linux-image-extra-4.4.0-103-generic
linux-tools-4.10.0-1008-gcp linux-tools-4.10.0-1009-gcp nvidia-prime nvidia-settings
python-compizconfig python-pyudev screen-resolution-extra
Use 'Sudo apt autoremove' to remove them.
The following packages will be REMOVED:
linux-image-unsigned-4.14.38-041438-generic
0 upgraded, 0 newly installed, 1 to remove and 2 not upgraded.
After this operation, 8,663 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 635588 files and directories currently installed.)
Removing linux-image-unsigned-4.14.38-041438-generic (4.14.38-041438.201804300419) ...
/var/lib/dpkg/info/linux-image-unsigned-4.14.38-041438-generic.postrm ... removing pending trigger
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-4.14.38-041438-generic
/etc/kernel/postrm.d/zz-update-grub:
Generating grub configuration file ...
Found background: /home/rick/Pictures/1600x900/19.jpg
Found background image: /home/rick/Pictures/1600x900/19.jpg
Found linux image: /boot/vmlinuz-4.14.34-041434-generic
Found initrd image: /boot/initrd.img-4.14.34-041434-generic
Found linux image: /boot/vmlinuz-4.14.31-041431-generic
Found initrd image: /boot/initrd.img-4.14.31-041431-generic
Found linux image: /boot/vmlinuz-4.14.30-041430-generic
Found initrd image: /boot/initrd.img-4.14.30-041430-generic
Found linux image: /boot/vmlinuz-4.14.27-041427-generic
Found initrd image: /boot/initrd.img-4.14.27-041427-generic
Found linux image: /boot/vmlinuz-4.14.15-041415-generic
Found initrd image: /boot/initrd.img-4.14.15-041415-generic
Found linux image: /boot/vmlinuz-4.14.10-041410-generic
Found initrd image: /boot/initrd.img-4.14.10-041410-generic
Found linux image: /boot/vmlinuz-4.14.4-041404-generic
Found initrd image: /boot/initrd.img-4.14.4-041404-generic
Found linux image: /boot/vmlinuz-4.14.2-041402-generic
Found initrd image: /boot/initrd.img-4.14.2-041402-generic
Found linux image: /boot/vmlinuz-4.13.9-041309-generic
Found initrd image: /boot/initrd.img-4.13.9-041309-generic
Found linux image: /boot/vmlinuz-4.10.0-42-generic
Found initrd image: /boot/initrd.img-4.10.0-42-generic
Found linux image: /boot/vmlinuz-4.9.77-040977-generic
Found initrd image: /boot/initrd.img-4.9.77-040977-generic
Found linux image: /boot/vmlinuz-4.4.0-104-generic
Found initrd image: /boot/initrd.img-4.4.0-104-generic
Found linux image: /boot/vmlinuz-4.4.0-103-generic
Found initrd image: /boot/initrd.img-4.4.0-103-generic
Found linux image: /boot/vmlinuz-3.16.53-031653-generic
Found initrd image: /boot/initrd.img-3.16.53-031653-generic
Found Windows Boot Manager on /dev/nvme0n1p2@/EFI/Microsoft/Boot/bootmgfw.efi
Found Ubuntu 18.04 LTS (18.04) on /dev/nvme0n1p8
Found Windows Boot Manager on /dev/sda1@/efi/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for EFI firmware configuration
done
Vérifiez que tout va bien:
$ Sudo apt install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
bbswitch-dkms dkms gdm libjansson4 libxnvctrl0 linux-gcp-tools-4.10.0-1008
linux-gcp-tools-4.10.0-1009 linux-headers-4.4.0-103 linux-headers-4.4.0-103-generic
linux-image-4.4.0-103-generic linux-image-extra-4.4.0-103-generic
linux-tools-4.10.0-1008-gcp linux-tools-4.10.0-1009-gcp nvidia-prime nvidia-settings
python-compizconfig python-pyudev screen-resolution-extra
Use 'Sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
Utiliser ukuu pour installer les noyaux antérieurs à la v4.16.3 a requis ces étapes
Par exemple, pour le noyau 4.16.7, récupérez le linux-module deb
Vous pouvez trouver votre noyau sur -> http://kernel.ubuntu.com/~kernel-ppa/mainline/
Le noyau fourni avec Ubuntu 18.04 a des problèmes de luminosité pour mon ordinateur (Lenovo IdeaPad S400). Cela a été résolu en mettant à jour la version du noyau.
J'essayais plus tôt de mettre à jour le noyau à la version 4.16.6 en utilisant le logiciel UKUU et cela ne fonctionnait pas. Ensuite, j'ai suivi les instructions (en utilisant le terminal): Comment mettre à jour le noyau avec la dernière version de ligne principale sans aucune mise à jour de Distro?
Pour mon ordinateur, j'ai téléchargé les packages suivants (dans http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.16.6/ ):
linux-headers-4.16.6-041606_4.16.6-041606.201804300418_all.deb
linux-headers-4.16.6-041606-generic_4.16.6-041606.201804300418_AMD64.deb
linux-image-unsigned-4.16.6-041606-generic_4.16.6-041606.201804300418_AMD64.deb
linux-modules-4.16.6-041606-generic_4.16.6-041606.201804300418_AMD64.deb
Ensuite, en suivant les instructions du lien ci-dessus, j'ai écrit:
cd /path/to/folder/where/you/put/the/debs
Sudo dpkg -i *.deb
Cela a fonctionné parfaitement.
Le problème que j'ai rencontré avec la dernière série de noyaux Linux (c’est-à-dire ceux qui suivent K4.16.3>) est que les fichiers "linux-image.deb" ne sont PAS signés. C’est l’absence de fichiers binaires signés qui est à l’origine de tous les problèmes, c’est-à-dire que l’installation n’est pas réussie, le système échouant à chaque tentative.
La seule solution IMO est de retenir et d’attendre patiemment la prochaine version majeure du noyau, à savoir K.4.17 ou même K5.0, dans l’espoir que les fichiers linux-imge.deb requis incluent la signature de clé nécessaire et s’installent donc sans difficulté. .
Cyteck