I don't know how the, recently installed, 22.04 has got in this mess but assume that a repository I added to get something in the last week caused this as I'm clearly booting into a 5.19.0-38 kernel but the kernel headers for that are not present. (I know because VirtualBox stopped working and is complaining, clearly correctly, that the vboxdrv module is not present.) The output from /sbin/vboconfig is:
This system is currently not set up to build kernel modules.
Please install the Linux kernel "header" files matching the current kernel
for adding new hardware support to the system.
The distribution packages containing the headers are probably:
linux-headers-generic linux-headers-5.19.0-38-generic
This system is currently not set up to build kernel modules.
Please install the Linux kernel "header" files matching the current kernel
for adding new hardware support to the system.
The distribution packages containing the headers are probably:
linux-headers-generic linux-headers-5.19.0-38-generic
But apt-get install linux-headers-generic linux-headers-5.19.0-38-generic (as root and after apt update) says:
root@Clevo2:/home/chris# apt-get install linux-headers-generic linux-headers-5.19.0-38-generic
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package linux-headers-5.19.0-38-generic is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'linux-headers-5.19.0-38-generic' has no installation candidate
I suspect that my grub settings might be the problem. update-grub gives me this:
root@Clevo2:/home/chris# 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-5.19.0-38-generic
Found initrd image: /boot/initrd.img-5.19.0-38-generic
Found linux image: /boot/vmlinuz-5.19.0-32-generic
Found initrd image: /boot/initrd.img-5.19.0-32-generic
Found linux image: /boot/vmlinuz-5.15.0-58-generic
Found initrd image: /boot/initrd.img-5.15.0-58-generic
Memtest86+ needs a 16-bit boot, that is not available on EFI, exiting
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
Adding boot menu entry for UEFI Firmware Settings ...
done
I haven't rebooted the machine since running that though as I would rather see what advice I get here first. Can anyone see a way forward? I am in moderately urgent need of virtualbox (sadly in order to get back to be able to use M$oft Wurd: apologies!)
TIA,
Chris
output added 16.iv.2023
root@Clevo2:/home/chris# apt-cache policy linux-headers-5.19.0-38-generic
linux-headers-5.19.0-38-generic:
Installed: (none)
Candidate: (none)
Version table:
Contents of /etc/apt/sources.list added 16.iv.2023:
# deb cdrom:[Ubuntu 22.04.2 LTS _Jammy Jellyfish_ - Release amd64 (20230223)]/ jammy main restricted
See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
newer versions of the distribution.
deb http://mirror.infomaniak.ch/ubuntu/ jammy main restricted
deb-src http://fr.archive.ubuntu.com/ubuntu/ jammy main restricted
Major bug fix updates produced after the final release of the
distribution.
deb http://mirror.infomaniak.ch/ubuntu/ jammy-updates main restricted
deb-src http://fr.archive.ubuntu.com/ubuntu/ jammy-updates main restricted
N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
team. Also, please note that software in universe WILL NOT receive any
review or updates from the Ubuntu security team.
deb http://mirror.infomaniak.ch/ubuntu/ jammy universe
deb-src http://fr.archive.ubuntu.com/ubuntu/ jammy universe
deb http://mirror.infomaniak.ch/ubuntu/ jammy-updates universe
deb-src http://fr.archive.ubuntu.com/ubuntu/ jammy-updates universe
N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
team, and may not be under a free licence. Please satisfy yourself as to
your rights to use the software. Also, please note that software in
multiverse WILL NOT receive any review or updates from the Ubuntu
security team.
deb http://mirror.infomaniak.ch/ubuntu/ jammy multiverse
deb-src http://fr.archive.ubuntu.com/ubuntu/ jammy multiverse
deb http://mirror.infomaniak.ch/ubuntu/ jammy-updates multiverse
deb-src http://fr.archive.ubuntu.com/ubuntu/ jammy-updates multiverse
N.B. software from this repository may not have been tested as
extensively as that contained in the main release, although it includes
newer versions of some applications which may provide useful features.
Also, please note that software in backports WILL NOT receive any review
or updates from the Ubuntu security team.
deb http://mirror.infomaniak.ch/ubuntu/ jammy-backports main restricted universe multiverse
deb-src http://fr.archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse
deb http://mirror.infomaniak.ch/ubuntu/ jammy-security main restricted
deb-src http://security.ubuntu.com/ubuntu jammy-security main restricted
deb http://mirror.infomaniak.ch/ubuntu/ jammy-security universe
deb-src http://security.ubuntu.com/ubuntu jammy-security universe
deb http://mirror.infomaniak.ch/ubuntu/ jammy-security multiverse
deb-src http://security.ubuntu.com/ubuntu jammy-security multiverse
This system was installed using small removable media
(e.g. netinst, live or single CD). The matching "deb cdrom"
entries were disabled at the end of the installation process.
For information about how to configure apt package sources,
see the sources.list(5) manual.
root@Clevo2:/home/chris#
I think that says that updates are requested.
apt-get install linux-generic-hwe-22.04installed the linux-headers-generic-hwe-22.04 package. That feels like key progress butrcvboxdrv setupstill says "This system is currently not set up to build kernel modules. Please install the Linux kernel "header" files matching the current kernel" Do I need to reboot to get things back in alignment? – cpsyctc Apr 16 '23 at 18:48apt-get install linux-generic-hwe-22.04gets me: Reading package lists... Done Building dependency tree... Done Reading state information... Done linux-generic-hwe-22.04 is already the newest version (5.15.0.58.56). Butuname -allsays Linux Clevo2 5.19.0-38-generic #39~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Mar 17 21:16:15 UTC 2 x86_64 x86_64 x86_64 GNU/Linux So I seem stuck with some bizarre inconsistency in the packages. Any thoughts about what to do next? – cpsyctc Apr 16 '23 at 21:20