4.16.3 이후 커널을 업그레이드 할 수 없습니다


11

UKUU를 사용하여 최신 커널로 업그레이드하려고 할 때마다 Ubuntu 16.04에서 4.16.3 커널로 데스크탑 및 랩톱에서 실행 중입니다. 패키지 구성이 실패 하고이 오류가 반환됩니다 (예 : 4.16.6 설치) :

dpkg: error processing package linux-image-unsigned-4.16.6-041606-generic (--install):
dependency problems - leaving unconfigured

유일한 해결책은 그것을 제거하는 것입니다. 어떻게 해결할 수 있습니까?


1
4.16.4에 버그가 있습니다. 4.14.36과 동일
WinEunuuchs2Unix

작업 릴리스를 기다려야합니까?
Fabi0_Z

예. 그러나 apt install -f수정 될 때까지 다른 프로그램을 추가 할 수 없습니다 .
WinEunuuchs2Unix

1
그것을 제거 할 수 없습니다. 퇴근 후 답변을 드리겠습니다.
WinEunuuchs2Unix

답변:


10

2018 년 10 월 28 일 업데이트

nVidia, bbswitch 및 virtual box 컴파일 사용의 dkms 지원 :

sudo apt install libelf-dev

최신 linux-header설치 오류 를 피하려면 : libssl1.1

원하는 최신 커널 을 다운로드하면 ~/Downloads다음과 같아야합니다.

$ 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

이제 다음을 성공적으로 설치할 수 있습니다 :

sudo dpkg -i *.deb

원래 답변

커널 4.14.xx, 4.16.xx그리고 4.17.rc(xx)모든 주이 지난 주에 걸쳐 같은 버그; 2018 년 4 월 24-30 일.

방금 4.14.38오늘 밤에 시도했지만 이 버그 보고서4.14.36 와 동일한 오류가 표시됩니다 .4.14.37

내 경우 오늘 밤 오류는 다음과 같습니다.

$ 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

내가 시도 sudo apt install -f했지만 오류를 수정 하지 않으면 "충돌 보고서"가 발생합니다.

커널 4.14.38 crash.png

를 사용하여 가능한 한 많이 sudo rm-kernels제거 4.14.38했습니다.

4.14.38 커널 제거

이번에는 헤더 만 성공적으로 제거되었습니다.

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)

이제 무엇이 남았는지 봅시다 :

$ 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]

그것을 제거하려고합니다 :

$ 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)

파일을 편집하십시오 /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 ...)

첫 번째 줄 바로 아래 #!/bin/sh에 새 줄을 삽입하십시오.

exit 0

파일을 저장하고 실패한 명령을 다시 실행하십시오.

$ 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

모든 것을 다시 확인하십시오.

$ 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.

7

v4.16.3 이후의 커널을 설치하기 위해 ukuu를 사용하려면 다음 단계가 필요합니다

  1. https://packages.ubuntu.com/bionic/amd64/libssl1.1/download 에서 libssl1.1을 설치 하십시오.
  2. 커널에 맞는 리눅스 모듈 deb 설치

예를 들어 4.16.7 커널의 경우 리눅스 모듈 deb를

커널은-> http://kernel.ubuntu.com/~kernel-ppa/mainline/ 에서 찾을 수 있습니다.


현명한 설치에서 오늘 커널을 v4.14.37에서 v4.14.41로 업그레이드하려면 생체 공학에서 libssl1.1을 설치해야했습니다.
José Alfredo Romero L.

3

Ubuntu 18.04와 함께 제공된 커널에 내 컴퓨터 (Lenovo IdeaPad S400)에 밝기 문제가 있습니다. 이것은 커널 버전을 업데이트하여 해결되었습니다.

UKUU 소프트웨어를 사용하여 커널을 4.16.6 버전으로 업데이트하려고했지만 작동하지 않았습니다. 그런 다음 (터미널 사용) : Distro-upgrade없이 최신 메인 라인 버전으로 커널을 업데이트하는 방법 의 지침을 따랐습니다 .

내 컴퓨터의 경우 다음 패키지를 다운로드했습니다 ( http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.16.6/ ) :

  1. linux-headers-4.16.6-041606_4.16.6-041606.201804300418_all.deb
  2. linux-headers-4.16.6-041606-generic_4.16.6-041606.201804300418_amd64.deb
  3. linux-image-unsigned-4.16.6-041606-generic_4.16.6-041606.201804300418_amd64.deb
  4. linux-modules-4.16.6-041606-generic_4.16.6-041606.201804300418_amd64.deb

그런 다음 위 링크의 지침에 따라 썼습니다.

cd /path/to/folder/where/you/put/the/debs

sudo dpkg -i *.deb

완벽하게 작동했습니다.


감사합니다! 이것은 매우 간단하며 도움이되었습니다.
Sergey Brunov

1

최신 Linux 커널 시리즈 (K4.16.3> 이후)에서 겪었던 문제는 "linux-image.deb"파일이 서명되지 않았다는 것입니다. 서명되지 않은 바이너리 파일이 없기 때문에 모든 문제가 발생합니다.

유일한 솔루션 IMO는 필요한 linux-imge.deb 파일에 필요한 키 서명이 포함되어 아무런 어려움없이 설치되기를 희망하여 다음 주요 커널 릴리스, 즉 K.4.17 또는 K5.0을 참을성있게 기다립니다. .

사이텍

당사 사이트를 사용함과 동시에 당사의 쿠키 정책개인정보 보호정책을 읽고 이해하였음을 인정하는 것으로 간주합니다.
Licensed under cc by-sa 3.0 with attribution required.