debootstrap can't find xenial kernel

Maxim Blinov maxim.a.blinov at gmail.com
Fri Aug 14 17:23:59 UTC 2020


Hi all,

I would like to use debootstrap to create an ubuntu xenial (16.04)
installation on my filesystem. My host system is also running Xenial.
I have selected /opt/ubuntu_xenial_1604 as the target directory, and
followed the guide here:

https://wiki.debian.org/Debootstrap
(The ubuntu-specific commands are near the bottom of the page.)

This works fine, but I noticed that in the /boot directory, there is
no kernel. So I would like for debootstrap to also install it. I
thought I could do this by specifically adding
"--include=linux-image-amd64" to the command line [1], however
debootstrap said it could not find a package with such a name.

So I decided to try and get debootstrap to install the exact kernel
version that I have:
$ uname -r
4.15.0-112-generic

$ apt show 4.15.0-112-generic
...<trimmed output>...
Package: linux-image-4.15.0-112-generic
Version: 4.15.0-112.113~16.04.1
...<trimmed output>...

Ok, so I know that the package "linux-image-4.15.0-112-generic"
definitely exists in the repository. So then I pass it to the command
line:

$ sudo debootstrap
--components=kernel,multiverse,universe,main,contrib,nonfree,xenial,xenial-updates,xenial-updates/main
--include linux-image-4.15.0-112-generic --arch=amd64 xenial
/opt/ubuntu_xenial_1604/ http://gb.archive.ubuntu.com/ubuntu

(I apologise for the mess in --components, i was just trying
absolutely everything...)
but this still yields the following errors:

I: Retrieving InRelease
I: Checking Release signature
I: Valid Release signature (key id 790BC7277767219C42C86F933B4FE6ACC0B21F32)
I: Validating Packages
I: Validating Packages
I: Validating Packages
I: Resolving dependencies of required packages...
I: Resolving dependencies of base packages...
I: Checking component main on http://gb.archive.ubuntu.com/ubuntu...
I: Checking component universe on http://gb.archive.ubuntu.com/ubuntu...
I: Checking component multiverse on http://gb.archive.ubuntu.com/ubuntu...
E: Couldn't find these debs: linux-image-4.15.0-112-generic

Could someone suggest as to what I'm doing wrong?

Best Regards,
Maxim

[1] https://unix.stackexchange.com/questions/275429/creating-bootable-debian-image-with-debootstrap




More information about the ubuntu-users mailing list