Can't upgrade kernel on raspberry pi3b+
[Steps to Reproduce] 1. dd the image in an SD card: http://cdimage.ubuntu.com/ubuntu/releases/18.04/release/ubuntu-18.04.3-preinstalled-server-armhf+raspi3.img.xz 2. Boot rpi3a+ with the sd card 3. Upgrade the kernel using following command: sudo apt update sudo apt install linux-raspi2 4. Check output message
[Expected Result] Current stable kernel(4.15.0-1043-raspi2) is installed.
[Actual Result] Error shows up during the installation, and the kernel is still the original one after reboot.
[Additional Info] Command output:
ubuntu@ubuntu:~$ sudo apt install linux-raspi2 Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: linux-headers-4.15.0-1043-raspi2 linux-headers-raspi2 linux-image-4.15.0-1043-raspi2 linux-image-raspi2 linux-modules-4.15.0-1043-raspi2 linux-raspi2-headers-4.15.0-1043 Suggested packages: fdutils linux-raspi2-doc-4.15.0 | linux-raspi2-source-4.15.0 linux-raspi2-tools The following NEW packages will be installed: linux-headers-4.15.0-1043-raspi2 linux-image-4.15.0-1043-raspi2 linux-modules-4.15.0-1043-raspi2 linux-raspi2-headers-4.15.0-1043 The following packages will be upgraded: linux-headers-raspi2 linux-image-raspi2 linux-raspi2 3 upgraded, 4 newly installed, 0 to remove and 16 not upgraded. Need to get 45.1 MB of archives. After this operation, 214 MB of additional disk space will be used. Do you want to continue? [Y/n] Get:1 http://ports.ubuntu.com/ubuntu-ports bionic-updates/universe armhf linux-raspi2-headers-4.15.0-1043 armhf 4.15.0-1043.46 [11.0 MB] Get:2 http://ports.ubuntu.com/ubuntu-ports bionic-updates/universe armhf linux-headers-4.15.0-1043-raspi2 armhf 4.15.0-1043.46 [852 kB] Get:3 http://ports.ubuntu.com/ubuntu-ports bionic-updates/universe armhf linux-modules-4.15.0-1043-raspi2 armhf 4.15.0-1043.46 [26.5 MB] Get:4 http://ports.ubuntu.com/ubuntu-ports bionic-updates/universe armhf linux-image-4.15.0-1043-raspi2 armhf 4.15.0-1043.46 [6,751 kB] Get:5 http://ports.ubuntu.com/ubuntu-ports bionic-updates/universe armhf linux-raspi2 armhf 4.15.0.1043.41 [1,884 B] Get:6 http://ports.ubuntu.com/ubuntu-ports bionic-updates/universe armhf linux-image-raspi2 armhf 4.15.0.1043.41 [2,524 B] Get:7 http://ports.ubuntu.com/ubuntu-ports bionic-updates/universe armhf linux-headers-raspi2 armhf 4.15.0.1043.41 [2,512 B] Fetched 45.1 MB in 19s (2,363 kB/s) Selecting previously unselected package linux-raspi2-headers-4.15.0-1043. (Reading database ... 62492 files and directories currently installed.) Preparing to unpack .../0-linux-raspi2-headers-4.15.0-1043_4.15.0-1043.46_armhf.deb ... Unpacking linux-raspi2-headers-4.15.0-1043 (4.15.0-1043.46) ... Selecting previously unselected package linux-headers-4.15.0-1043-raspi2. Preparing to unpack .../1-linux-headers-4.15.0-1043-raspi2_4.15.0-1043.46_armhf.deb ... Unpacking linux-headers-4.15.0-1043-raspi2 (4.15.0-1043.46) ... Selecting previously unselected package linux-modules-4.15.0-1043-raspi2. Preparing to unpack .../2-linux-modules-4.15.0-1043-raspi2_4.15.0-1043.46_armhf.deb ... Unpacking linux-modules-4.15.0-1043-raspi2 (4.15.0-1043.46) ... Selecting previously unselected package linux-image-4.15.0-1043-raspi2. Preparing to unpack .../3-linux-image-4.15.0-1043-raspi2_4.15.0-1043.46_armhf.deb ... Unpacking linux-image-4.15.0-1043-raspi2 (4.15.0-1043.46) ... Preparing to unpack .../4-linux-raspi2_4.15.0.1043.41_armhf.deb ... Unpacking linux-raspi2 (4.15.0.1043.41) over (4.15.0.1041.39) ... Preparing to unpack .../5-linux-image-raspi2_4.15.0.1043.41_armhf.deb ... Unpacking linux-image-raspi2 (4.15.0.1043.41) over (4.15.0.1041.39) ... Preparing to unpack .../6-linux-headers-raspi2_4.15.0.1043.41_armhf.deb ... Unpacking linux-headers-raspi2 (4.15.0.1043.41) over (4.15.0.1041.39) ... Setting up linux-raspi2-headers-4.15.0-1043 (4.15.0-1043.46) ... Setting up linux-modules-4.15.0-1043-raspi2 (4.15.0-1043.46) ... Setting up linux-image-4.15.0-1043-raspi2 (4.15.0-1043.46) ... I: /boot/vmlinuz is now a symlink to vmlinuz-4.15.0-1043-raspi2 I: /boot/initrd.img is now a symlink to initrd.img-4.15.0-1043-raspi2 Setting up linux-headers-4.15.0-1043-raspi2 (4.15.0-1043.46) ... Setting up linux-image-raspi2 (4.15.0.1043.41) ... Setting up linux-headers-raspi2 (4.15.0.1043.41) ... Setting up linux-raspi2 (4.15.0.1043.41) ... Processing triggers for linux-image-4.15.0-1043-raspi2 (4.15.0-1043.46) ... /etc/kernel/postinst.d/initramfs-tools: update-initramfs: Generating /boot/initrd.img-4.15.0-1043-raspi2 flash-kernel: deferring update (trigger activated) /etc/kernel/postinst.d/zz-flash-kernel: flash-kernel: deferring update (trigger activated) Processing triggers for flash-kernel (3.90ubuntu3.18.04.2) ... Unsupported platform. dpkg: error processing package flash-kernel (--configure): installed flash-kernel package post-installation script subprocess returned error exit status 1 E: Sub-process /usr/bin/dpkg returned an error code (1) ubuntu@ubuntu:~$ ubuntu@ubuntu:~$ sudo apt install -f Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 16 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Setting up flash-kernel (3.90ubuntu3.18.04.2) ... W: APT had planned for dpkg to do more than it reported back (0 vs 4). Affected packages: flash-kernel:armhf ubuntu@ubuntu:~$ sudo apt update Hit:1 http://ports.ubuntu.com/ubuntu-ports bionic InRelease Hit:2 http://ports.ubuntu.com/ubuntu-ports bionic-updates InRelease Hit:3 http://ports.ubuntu.com/ubuntu-ports bionic-backports InRelease Hit:4 http://ports.ubuntu.com/ubuntu-ports bionic-security InRelease Reading package lists... Done Building dependency tree Reading state information... Done 16 packages can be upgraded. Run 'apt list --upgradable' to see them. ubuntu@ubuntu:~$ sudo apt list --upgradeable Listing... Done dpkg/bionic-updates 1.19.0.5ubuntu2.2 armhf [upgradable from: 1.19.0.5ubuntu2.1] libldap-2.4-2/bionic-updates 2.4.45+dfsg-1ubuntu1.4 armhf [upgradable from: 2.4.45+dfsg-1ubuntu1.3] libldap-common/bionic-updates 2.4.45+dfsg-1ubuntu1.4 all [upgradable from: 2.4.45+dfsg-1ubuntu1.3] libnss-systemd/bionic-updates 237-3ubuntu10.25 armhf [upgradable from: 237-3ubuntu10.24] libpam-systemd/bionic-updates 237-3ubuntu10.25 armhf [upgradable from: 237-3ubuntu10.24] libprocps6/bionic-updates 2:3.3.12-3ubuntu1.2 armhf [upgradable from: 2:3.3.12-3ubuntu1.1] libsystemd0/bionic-updates 237-3ubuntu10.25 armhf [upgradable from: 237-3ubuntu10.24] libudev1/bionic-updates 237-3ubuntu10.25 armhf [upgradable from: 237-3ubuntu10.24] libzstd1/bionic-updates,bionic-security 1.3.3+dfsg-2ubuntu1.1 armhf [upgradable from: 1.3.3+dfsg-2ubuntu1] procps/bionic-updates 2:3.3.12-3ubuntu1.2 armhf [upgradable from: 2:3.3.12-3ubuntu1.1] python3-software-properties/bionic-updates 0.96.24.32.11 all [upgradable from: 0.96.24.32.9] software-properties-common/bionic-updates 0.96.24.32.11 all [upgradable from: 0.96.24.32.9] systemd/bionic-updates 237-3ubuntu10.25 armhf [upgradable from: 237-3ubuntu10.24] systemd-sysv/bionic-updates 237-3ubuntu10.25 armhf [upgradable from: 237-3ubuntu10.24] udev/bionic-updates 237-3ubuntu10.25 armhf [upgradable from: 237-3ubuntu10.24] wpasupplicant/bionic-updates,bionic-security 2:2.6-15ubuntu2.4 armhf [upgradable from: 2:2.6-15ubuntu2.3] ubuntu@ubuntu:~$
Can't upgrade kernel on raspberry pi3b+
[Steps to Reproduce] cdimage. ubuntu. com/ubuntu/ releases/ 18.04/release/ ubuntu- 18.04.3- preinstalled- server- armhf+raspi3. img.xz
1. dd the image in an SD card:
http://
2. Boot rpi3a+ with the sd card
3. Upgrade the kernel using following command:
sudo apt update
sudo apt install linux-raspi2
4. Check output message
[Expected Result] 4.15.0- 1043-raspi2) is installed.
Current stable kernel(
[Actual Result]
Error shows up during the installation, and the kernel is still the original one after reboot.
[Additional Info]
Command output:
ubuntu@ubuntu:~$ sudo apt install linux-raspi2 headers- 4.15.0- 1043-raspi2 linux-headers- raspi2 linux-image- 4.15.0- 1043-raspi2 linux-image-raspi2 linux-modules- 4.15.0- 1043-raspi2 raspi2- headers- 4.15.0- 1043 doc-4.15. 0 | linux-raspi2- source- 4.15.0 linux-raspi2-tools headers- 4.15.0- 1043-raspi2 linux-image- 4.15.0- 1043-raspi2 linux-modules- 4.15.0- 1043-raspi2 linux-raspi2- headers- 4.15.0- 1043 headers- raspi2 linux-image-raspi2 linux-raspi2 ports.ubuntu. com/ubuntu- ports bionic- updates/ universe armhf linux-raspi2- headers- 4.15.0- 1043 armhf 4.15.0-1043.46 [11.0 MB] ports.ubuntu. com/ubuntu- ports bionic- updates/ universe armhf linux-headers- 4.15.0- 1043-raspi2 armhf 4.15.0-1043.46 [852 kB] ports.ubuntu. com/ubuntu- ports bionic- updates/ universe armhf linux-modules- 4.15.0- 1043-raspi2 armhf 4.15.0-1043.46 [26.5 MB] ports.ubuntu. com/ubuntu- ports bionic- updates/ universe armhf linux-image- 4.15.0- 1043-raspi2 armhf 4.15.0-1043.46 [6,751 kB] ports.ubuntu. com/ubuntu- ports bionic- updates/ universe armhf linux-raspi2 armhf 4.15.0.1043.41 [1,884 B] ports.ubuntu. com/ubuntu- ports bionic- updates/ universe armhf linux-image-raspi2 armhf 4.15.0.1043.41 [2,524 B] ports.ubuntu. com/ubuntu- ports bionic- updates/ universe armhf linux-headers- raspi2 armhf 4.15.0.1043.41 [2,512 B] headers- 4.15.0- 1043. raspi2- headers- 4.15.0- 1043_4. 15.0-1043. 46_armhf. deb ... headers- 4.15.0- 1043 (4.15.0-1043.46) ... 4.15.0- 1043-raspi2. headers- 4.15.0- 1043-raspi2_ 4.15.0- 1043.46_ armhf.deb ... 4.15.0- 1043-raspi2 (4.15.0-1043.46) ... 4.15.0- 1043-raspi2. modules- 4.15.0- 1043-raspi2_ 4.15.0- 1043.46_ armhf.deb ... 4.15.0- 1043-raspi2 (4.15.0-1043.46) ... 4.15.0- 1043-raspi2. image-4. 15.0-1043- raspi2_ 4.15.0- 1043.46_ armhf.deb ... 4.15.0- 1043-raspi2 (4.15.0-1043.46) ... raspi2_ 4.15.0. 1043.41_ armhf.deb ... image-raspi2_ 4.15.0. 1043.41_ armhf.deb ... headers- raspi2_ 4.15.0. 1043.41_ armhf.deb ... raspi2 (4.15.0.1043.41) over (4.15.0.1041.39) ... headers- 4.15.0- 1043 (4.15.0-1043.46) ... 4.15.0- 1043-raspi2 (4.15.0-1043.46) ... 4.15.0- 1043-raspi2 (4.15.0-1043.46) ... 4.15.0- 1043-raspi2 img-4.15. 0-1043- raspi2 4.15.0- 1043-raspi2 (4.15.0-1043.46) ... raspi2 (4.15.0.1043.41) ... 4.15.0- 1043-raspi2 (4.15.0-1043.46) ... postinst. d/initramfs- tools: img-4.15. 0-1043- raspi2 postinst. d/zz-flash- kernel: 18.04.2) ... 18.04.2) ... ports.ubuntu. com/ubuntu- ports bionic InRelease ports.ubuntu. com/ubuntu- ports bionic-updates InRelease ports.ubuntu. com/ubuntu- ports bionic-backports InRelease ports.ubuntu. com/ubuntu- ports bionic-security InRelease 2.4-2/bionic- updates 2.4.45+ dfsg-1ubuntu1. 4 armhf [upgradable from: 2.4.45+ dfsg-1ubuntu1. 3] common/ bionic- updates 2.4.45+ dfsg-1ubuntu1. 4 all [upgradable from: 2.4.45+ dfsg-1ubuntu1. 3] systemd/ bionic- updates 237-3ubuntu10.25 armhf [upgradable from: 237-3ubuntu10.24] systemd/ bionic- updates 237-3ubuntu10.25 armhf [upgradable from: 237-3ubuntu10.24] bionic- updates 2:3.3.12-3ubuntu1.2 armhf [upgradable from: 2:3.3.12- 3ubuntu1. 1] bionic- updates 237-3ubuntu10.25 armhf [upgradable from: 237-3ubuntu10.24] bionic- updates 237-3ubuntu10.25 armhf [upgradable from: 237-3ubuntu10.24] bionic- updates, bionic- security 1.3.3+dfsg- 2ubuntu1. 1 armhf [upgradable from: 1.3.3+dfsg- 2ubuntu1] bionic- updates 2:3.3.12-3ubuntu1.2 armhf [upgradable from: 2:3.3.12- 3ubuntu1. 1] software- properties/ bionic- updates 0.96.24.32.11 all [upgradable from: 0.96.24.32.9] properties- common/ bionic- updates 0.96.24.32.11 all [upgradable from: 0.96.24.32.9] bionic- updates 237-3ubuntu10.25 armhf [upgradable from: 237-3ubuntu10.24] sysv/bionic- updates 237-3ubuntu10.25 armhf [upgradable from: 237-3ubuntu10.24] bionic- updates, bionic- security 2:2.6-15ubuntu2.4 armhf [upgradable from: 2:2.6-15ubuntu2.3]
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
linux-
linux-
Suggested packages:
fdutils linux-raspi2-
The following NEW packages will be installed:
linux-
The following packages will be upgraded:
linux-
3 upgraded, 4 newly installed, 0 to remove and 16 not upgraded.
Need to get 45.1 MB of archives.
After this operation, 214 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://
Get:2 http://
Get:3 http://
Get:4 http://
Get:5 http://
Get:6 http://
Get:7 http://
Fetched 45.1 MB in 19s (2,363 kB/s)
Selecting previously unselected package linux-raspi2-
(Reading database ... 62492 files and directories currently installed.)
Preparing to unpack .../0-linux-
Unpacking linux-raspi2-
Selecting previously unselected package linux-headers-
Preparing to unpack .../1-linux-
Unpacking linux-headers-
Selecting previously unselected package linux-modules-
Preparing to unpack .../2-linux-
Unpacking linux-modules-
Selecting previously unselected package linux-image-
Preparing to unpack .../3-linux-
Unpacking linux-image-
Preparing to unpack .../4-linux-
Unpacking linux-raspi2 (4.15.0.1043.41) over (4.15.0.1041.39) ...
Preparing to unpack .../5-linux-
Unpacking linux-image-raspi2 (4.15.0.1043.41) over (4.15.0.1041.39) ...
Preparing to unpack .../6-linux-
Unpacking linux-headers-
Setting up linux-raspi2-
Setting up linux-modules-
Setting up linux-image-
I: /boot/vmlinuz is now a symlink to vmlinuz-
I: /boot/initrd.img is now a symlink to initrd.
Setting up linux-headers-
Setting up linux-image-raspi2 (4.15.0.1043.41) ...
Setting up linux-headers-
Setting up linux-raspi2 (4.15.0.1043.41) ...
Processing triggers for linux-image-
/etc/kernel/
update-initramfs: Generating /boot/initrd.
flash-kernel: deferring update (trigger activated)
/etc/kernel/
flash-kernel: deferring update (trigger activated)
Processing triggers for flash-kernel (3.90ubuntu3.
Unsupported platform.
dpkg: error processing package flash-kernel (--configure):
installed flash-kernel package post-installation script subprocess returned error exit status 1
E: Sub-process /usr/bin/dpkg returned an error code (1)
ubuntu@ubuntu:~$
ubuntu@ubuntu:~$ sudo apt install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 16 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up flash-kernel (3.90ubuntu3.
W: APT had planned for dpkg to do more than it reported back (0 vs 4).
Affected packages: flash-kernel:armhf
ubuntu@ubuntu:~$ sudo apt update
Hit:1 http://
Hit:2 http://
Hit:3 http://
Hit:4 http://
Reading package lists... Done
Building dependency tree
Reading state information... Done
16 packages can be upgraded. Run 'apt list --upgradable' to see them.
ubuntu@ubuntu:~$ sudo apt list --upgradeable
Listing... Done
dpkg/bionic-updates 1.19.0.5ubuntu2.2 armhf [upgradable from: 1.19.0.5ubuntu2.1]
libldap-
libldap-
libnss-
libpam-
libprocps6/
libsystemd0/
libudev1/
libzstd1/
procps/
python3-
software-
systemd/
systemd-
udev/bionic-updates 237-3ubuntu10.25 armhf [upgradable from: 237-3ubuntu10.24]
wpasupplicant/
ubuntu@ubuntu:~$