Kernel upgrade error

Discussions related to using VirtualBox on Linux hosts.
Post Reply
Jedi
Posts: 16
Joined: 21. Oct 2017, 23:34

Kernel upgrade error

Post by Jedi »

I am running Ubuntu 22.04 guest on Ubuntu 22.04 host.

I got an error when attempting to upgrade the kernel:

Code: Select all

root@ubuntu19:~# lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 22.04.3 LTS
Release:	22.04
Codename:	jammy
root@ubuntu19:~# uname -r
5.15.0-91-generic
root@ubuntu19:~# apt install --install-recommends linux-generic-hwe-22.04
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  linux-headers-6.5.0-14-generic linux-headers-generic-hwe-22.04
  linux-hwe-6.5-headers-6.5.0-14 linux-image-6.5.0-14-generic
  linux-image-generic-hwe-22.04 linux-modules-6.5.0-14-generic
  linux-modules-extra-6.5.0-14-generic
Suggested packages:
  fdutils linux-doc | linux-hwe-6.5-source-6.5.0
  linux-hwe-6.5-tools
The following NEW packages will be installed:
  linux-generic-hwe-22.04 linux-headers-6.5.0-14-generic
  linux-headers-generic-hwe-22.04 linux-hwe-6.5-headers-6.5.0-14
  linux-image-6.5.0-14-generic linux-image-generic-hwe-22.04
  linux-modules-6.5.0-14-generic
  linux-modules-extra-6.5.0-14-generic
0 upgraded, 8 newly installed, 0 to remove and 4 not upgraded.
Need to get 133 MB of archives.
After this operation, 721 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 linux-modules-6.5.0-14-generic amd64 6.5.0-14.14~22.04.1 [25.5 MB]
Get:2 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 linux-image-6.5.0-14-generic amd64 6.5.0-14.14~22.04.1 [14.0 MB]
Get:3 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 linux-modules-extra-6.5.0-14-generic amd64 6.5.0-14.14~22.04.1 [76.5 MB]
Get:4 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 linux-image-generic-hwe-22.04 amd64 6.5.0.14.14~22.04.7 [2,566 B]
Get:5 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 linux-hwe-6.5-headers-6.5.0-14 all 6.5.0-14.14~22.04.1 [13.2 MB]
Get:6 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 linux-headers-6.5.0-14-generic amd64 6.5.0-14.14~22.04.1 [3,435 kB]
Get:7 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 linux-headers-generic-hwe-22.04 amd64 6.5.0.14.14~22.04.7 [2,424 B]
Get:8 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 linux-generic-hwe-22.04 amd64 6.5.0.14.14~22.04.7 [1,722 B]
Fetched 133 MB in 12s (10.7 MB/s)                                   
Selecting previously unselected package linux-modules-6.5.0-14-generi
c.
(Reading database ... 265241 files and directories currently installe
d.)
Preparing to unpack .../0-linux-modules-6.5.0-14-generic_6.5.0-14.14~
22.04.1_amd64.deb ...
Unpacking linux-modules-6.5.0-14-generic (6.5.0-14.14~22.04.1) ...
Selecting previously unselected package linux-image-6.5.0-14-generic.
Preparing to unpack .../1-linux-image-6.5.0-14-generic_6.5.0-14.14~22
.04.1_amd64.deb ...
Unpacking linux-image-6.5.0-14-generic (6.5.0-14.14~22.04.1) ...
Selecting previously unselected package linux-modules-extra-6.5.0-14-
generic.
Preparing to unpack .../2-linux-modules-extra-6.5.0-14-generic_6.5.0-
14.14~22.04.1_amd64.deb ...
Unpacking linux-modules-extra-6.5.0-14-generic (6.5.0-14.14~22.04.1) 
...
Selecting previously unselected package linux-image-generic-hwe-22.04
.
Preparing to unpack .../3-linux-image-generic-hwe-22.04_6.5.0.14.14~2
2.04.7_amd64.deb ...
Unpacking linux-image-generic-hwe-22.04 (6.5.0.14.14~22.04.7) ...
Selecting previously unselected package linux-hwe-6.5-headers-6.5.0-1
4.
Preparing to unpack .../4-linux-hwe-6.5-headers-6.5.0-14_6.5.0-14.14~
22.04.1_all.deb ...
Unpacking linux-hwe-6.5-headers-6.5.0-14 (6.5.0-14.14~22.04.1) ...
Selecting previously unselected package linux-headers-6.5.0-14-generi
c.
Preparing to unpack .../5-linux-headers-6.5.0-14-generic_6.5.0-14.14~
22.04.1_amd64.deb ...
Unpacking linux-headers-6.5.0-14-generic (6.5.0-14.14~22.04.1) ...
Selecting previously unselected package linux-headers-generic-hwe-22.
04.
Preparing to unpack .../6-linux-headers-generic-hwe-22.04_6.5.0.14.14
~22.04.7_amd64.deb ...
Unpacking linux-headers-generic-hwe-22.04 (6.5.0.14.14~22.04.7) ...
Selecting previously unselected package linux-generic-hwe-22.04.
Preparing to unpack .../7-linux-generic-hwe-22.04_6.5.0.14.14~22.04.7
_amd64.deb ...
Unpacking linux-generic-hwe-22.04 (6.5.0.14.14~22.04.7) ...
Setting up linux-modules-6.5.0-14-generic (6.5.0-14.14~22.04.1) ...
Setting up linux-hwe-6.5-headers-6.5.0-14 (6.5.0-14.14~22.04.1) ...
Setting up linux-image-6.5.0-14-generic (6.5.0-14.14~22.04.1) ...
I: /boot/vmlinuz.old is now a symlink to vmlinuz-5.15.0-91-generic
I: /boot/initrd.img.old is now a symlink to initrd.img-5.15.0-91-gene
ric
I: /boot/vmlinuz is now a symlink to vmlinuz-6.5.0-14-generic
I: /boot/initrd.img is now a symlink to initrd.img-6.5.0-14-generic
Setting up linux-modules-extra-6.5.0-14-generic (6.5.0-14.14~22.04.1)
 ...
Setting up linux-image-generic-hwe-22.04 (6.5.0.14.14~22.04.7) ...
Setting up linux-headers-6.5.0-14-generic (6.5.0-14.14~22.04.1) ...
Setting up linux-headers-generic-hwe-22.04 (6.5.0.14.14~22.04.7) ...
Setting up linux-generic-hwe-22.04 (6.5.0.14.14~22.04.7) ...
Processing triggers for linux-image-6.5.0-14-generic (6.5.0-14.14~22.
04.1) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-6.5.0-14-generic
/etc/kernel/postinst.d/vboxadd:
VirtualBox Guest Additions: Building the modules for kernel 6.5.0-14-
generic.

VirtualBox Guest Additions: Look at /var/log/vboxadd-setup.log to fin
d out what 
went wrong
/etc/kernel/postinst.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.5.0-14-generic
Found initrd image: /boot/initrd.img-6.5.0-14-generic
Found linux image: /boot/vmlinuz-5.15.0-91-generic
Found initrd image: /boot/initrd.img-5.15.0-91-generic
Found linux image: /boot/vmlinuz-5.15.0-88-generic
Found initrd image: /boot/initrd.img-5.15.0-88-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
Warning: os-prober will not be executed to detect other bootable part
itions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
done
I have attached the vboxadd-setup.log

Any help with solving this would be much appreciated.
Attachments
vboxadd-setup.log
(3.08 KiB) Downloaded 171 times
fth0
Volunteer
Posts: 5678
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: Kernel upgrade error

Post by fth0 »

In general, Linux kernel 6.5 is only supported by VirtualBox 6.1.46 + 7.0.10 and newer. And I wouldn't be surprised if you have to use the same gcc version that was used for the kernel, but I'm not sure about that. Perhaps you should wait for VirtualBox 6.1.50, which is expected soon (around 2024-01-16).
Post Reply