Why can't I see Kernel 5.3.0-18 files on the Kernels tab for Ubuntu 19.10?

Asked by Cubic PPA on 2020-01-22

When customizing Ubuntu 19.10, the Kernels tab may not show vmlinuz and initrd version 5.3.0-18, even though Kernel 5.3.0-18 is the default kernel for Ubuntu 19.10.

(In some cases, Cubic may hang when you click on the Next button on the Terminal (chroot) page).

What can I do?

Question information

English Edit question
Cubic Edit question
No assignee Edit question
Solved by:
Cubic PPA
Last query:
Last reply:
Cubic PPA (cubic-wizard) said : #1

Reference Bug #1860345.

This issue occurs because vmlinuz and initrd are broken simlinks in /boot...

    ├── config-5.3.0-18-generic
    ├── grub
    │ ├── gfxblacklist.txt
    │ └── unicode.pf2
    ├── initrd.img -> initrd.img-5.3.0-18-generic [BROKEN LINK!]
    ├── initrd.img.old -> initrd.img-5.3.0-18-generic [BROKEN LINK!]
    ├── memtest86+.bin
    ├── memtest86+.elf
    ├── memtest86+_multiboot.bin
    ├── System.map-5.3.0-18-generic
    ├── vmlinuz -> vmlinuz-5.3.0-18-generic [BROKEN LINK!]
    └── vmlinuz.old -> vmlinuz-5.3.0-18-generic [BROKEN LINK!]

As you can see, all symlinks to the kernel files are broken.

    $ file vmlinuz
    vmlinuz: cannot open `vmlinuz' (No such file or directory)

    $ file vmlinuz.old
    vmlinuz.old: cannot open `vmlinuz.old' (No such file or directory)

    $ file initrd.img
    initrd.img: cannot open `initrd.img' (No such file or directory)

    $ file initrd.img.old
    initrd.img.old: cannot open `initrd.img.old' (No such file or directory)

According to...


...the file "/boot/linux-headers-5.3.0-18" should be included in package linux-headers-5.3.0-18.

Surprisingly, `dpkg -l` shows that linux-headers-5.3.0-18 is actually installed.

    $ dpkg -l linux-image-5.3.0-18-generic
    ii linux-image-5.3.0-18-generic 5.3.0-18.19+1

Cubic PPA (cubic-wizard) said : #2

To resolve this problem, simply install the missing files.

You have two options:

Option (A)

In Cubic's chroot, reinstall the packages with missing files:

$ apt update
$ apt install --reinstall linux-headers-5.3.0-18 linux-headers-5.3.0-18-generic linux-image-5.3.0-18-generic

Option (B)

Alternatively, you can install the latest available Linux kernel.

$ apt update
$ apt install linux-headers linux-headers-generic linux-image-generic