Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 04-03-2006, 06:33 AM   #1
Registered: Mar 2006
Location: Istanbul, TR
Distribution: Red Hat, CentOS, Ubuntu
Posts: 180

Rep: Reputation: 30
Kernel update - Debian Style?


I tried to update my kernel to yesterday. I have downloaded the kernel to /usr/src and untar'ed it and then finished the menuconfig. When I typed

/usr/src/linux. clean
I get the following error message:

make:*** No rule to make target `kpkg-clean'. Stop.
Meantime, when I type

/usr/src/linux. fakeroot make-kpkg --initrd --revision=custom.1.0 kernel-image-

I get the following error message:

Error: Unknown target kernel-image- use --targets to display help on valid targets

I am following tutorials from the following website to update my kernel:

and also from official Debian site:

I did a fresh install of Debian Sarge on my Toshiba Satellite Pro 6100 [didn't do dist-upgrade]. And yes, I have never compiled a kernel before.


Edit: I have typed the "Meantime when I type" sentence twice. Deleted one.
Old 04-03-2006, 09:13 AM   #2
LQ Newbie
Registered: Feb 2003
Posts: 29

Rep: Reputation: 15
Here's the bare minimum of what I do to install a kernel the debian way:

1. Unpack the kernel tarball to a directory under my home directory -- there is absolutely no reason to be root just to compile a program.

cp linux-2.6.16.tar.bz2 $HOME/projects/kernel
cd $HOME/projects/kernel
tar xfj linux-2.6.16.tar.bz2
2. Configure kernel options.

cd linux-2.6.16
make menuconfig
3. Issue make-kpkg command.

time fakeroot make-kpkg --append-to-version='-1' --bzimage kernel_image
4. Install new debian package, install initrd with yaird, and update grub assuming you have sudo permissions to run the necessary commands.

sudo dpkg -i ../linux-image-$KERN*.deb
sudo yaird -v --output=/boot/initrd.img-$KERN
sudo update-grub
5. Reboot

Now, what I actually do every time I want to install a kernel the debian way is after unpacking the kernel source and configuring it, I run a script I wrote that calls make-kpkg to also create packages for additional modules e.g. unionfs, cloop, nvidia-kernel. I then install all the resulting packages into a local apt repository with reprepro, and then install using aptitude. That may be too advanced yet, but if you're interested about either my extremely simple make-kpkg wrapper script (which I wrote so I wouldn't have to remember make-kpkg syntax all the time, and do a lot of extra manual work wrt extra kernel modules), or anything else I mentioned, feel free to ask.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
NO BOOTLOG MESSAGES after Kernel Update on Debian Sarge cccc Debian 1 01-09-2006 06:19 PM
Sax2 Style Interface For Debian carrie Linux - General 0 11-19-2004 12:58 PM
Unable to update Kernel, Debian release rdd Debian 7 11-10-2004 07:36 PM
ddns-update-style none; Eileen Linux - Networking 1 10-26-2004 09:34 PM
installation of debian program into R.H. style distro thomassounness Debian 4 07-06-2003 04:05 AM > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 04:24 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration