Unable to locate package linux-image-4.8.0-53-generic

I am trying to prepare a Debian 8.9 boot disk following these instructions. Obtaining a kernel image via apt is part of this process. However, if I try

apt install linux-image-`uname -r`

I run into the following errors:

Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-image-4.8.0-53-generic
E: Couldn't find any package by regex 'linux-image-4.8.0-53-generic'

My /etc/apt/sources.list is as follows:

deb jessie main contrib non-free 

What is the appropriate way for obtaining /boot/vmlinuz-4.8.0-53-generic (or an equivalent) with a Debian package?

4

3 Answers

You can not install the linux-image-4.8.0-53-generic using the sources.list :

deb jessie main contrib non-free 

because the package belong to Ubuntu.

The only available linux-image for debian Jessie on the main component is inux-image-3.16.0-4-amd64

You should edit your sources.list as follow:

deb jessie main contrib non-free
deb jessie/updates main 

then:

apt update
apt install linux-image-3.16.0-4-amd64

I have circumnavigated the problem by copying the "host"'s kernel image into the "guest"'s filesystem. This amount to executing this copy before chroot $TARGET:

cp /boot/vmlinuz-4.8.0-53-generic $TARGET/boot/vmlinuz-4.8.0-53-generic

Here's what you may need to do

sudo apt-get update # This will update the repositories list
sudo apt-get upgrade # This will update all the necessary packages on your system
sudo apt-get dist-upgrade # This will add/remove any needed packages
reboot # You may need this since sometimes after a upgrade/dist-upgrade, there are some left over entries that get fixed after a reboot
sudo apt-get install linux-image-$(uname -r) # This should work now
1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like