I'm trying to install a newer kernel version on my Debian (squeeze) machine as I need it to get my wireless card working. I have Debian on one partition of my hard drive, Fedora on the other. I'm looking for SIMPLE instructions on how to do this which I cannot find anywhere on the net. Any help would be greatly appreciated! I'm even wondering if it is possible to copy the kernel across from one partition to the next?
Assuming you have a machine that is connected to the internet, and that
apt is properly configured on your squeeze machine, you can do e.g.
apt-get install --print-uris linux-image-2.6.32
which will give you a list of urls for packages to install. Then you can use another machine to download them. On my machine, for example, this list starts with
'http://debian.csail.mit.edu/debian/pool/main/l/linux-2.6/linux-image-2.6.32-5-486_2.6.32-39_i386.deb' linux-image-2.6.32-5-486_2.6.32-39_i386.deb 27475516 MD5Sum:be5608eefba4b7180d91b7888abde8da
Then you can download the packages on another machine by doing (for example)
wget -c http://debian.csail.mit.edu/debian/pool/main/l/linux-2.6/linux-image-2.6.32-5-486_2.6.32-39_i386.deb
Then copy them to your Debian machine. Then do
dpkg -i linux-image-2.6.32-5-486_2.6.32-39_i386.deb pkg2.deb pkg3.deb...
You need to give all the package files as arguments.
If you see errors, try running this command again. Sometimes
dpkg, when called with a list of packages which are dependent on each other, has trouble with dependency resolution. If it still doesn't work, try
apt-get -f install
which will try to resolve your dependencies.
An alternative is gdebi
apt-cache show gdebi
Description: Simple tool to install deb files - GNOME GUI gdebi lets you install local deb packages resolving and installing its dependencies. apt does the same, but only for remote (http, ftp) located packages.
It sounds like you need a more recent version of the kernel than what's in Debian squeeze. The easiest thing to try is the kernel from the backports. The kernel is in a package called
linux-image-$VERSION-$FLAVOR. Pick the flavor from what you already have (e.g.
amd64 or … and get the most recent version you can find. The sqeeze backports currently have version 2.6.39.
If that's recent enough for you, download the
.deb file from the website and copy it to your machine however you like (e.g. on a USB stick). Also grab every package that's listed as a dependency; you'll need the package containing the actual kernel file (not just the
linux-image-2.6-… metapackage) and updated
initramfs-tools, and possibly more recent
firmware-linux-free and other firmware as well. Install the packages by typing the command
dpkg -iGE /path/to/*.deb as root in a terminal. This will automatically create an entry for the new kernel in the boot menu. Reboot and see if it works.
If you need to recompile third-party modules in addition to what's distributed ith the kernel, grab the
linux-headers-… package alongside the
If you find you need an even more recent kernel (3.0 or 3.1), it doesn't look like there's any readily available package for Debian squeeze at the moment. Try a 3.x kernel from testing or unstable (or even a 3.2rc in experimental). Note that this may require more effort; you may need more recent module and initramfs tools.
If you have following scenario, this may be helpful
Tried to install Debian Wheezy which have kernel without some WiFi driver which is available only in higher kernel (Not in 3.2 but available in 3.13 version of kernel). You may have found it out by running Debian jessie installation DVD.
You do not want jessie which is unstable
Now if you install Debian wheezy, you do not have working WiFi/wired connection. So you can not update to newer kernel.
=========Then do as follows (Thanks for above comments)=========
In a computer with Internet add jessie in /etc/apt/source.list
deb http://ftp.iitm.ac.in/debian/ jessie main
To find if kernel 3.13 is available
apt-cache search linux-image
wget -c 'http://ftp.iitm.ac.in/debian/pool/main/i/initramfs-tools/initramfs-tools_0.115_all.deb'
wget -c http://ftp.iitm.ac.in/debian/pool/main/l/linux/linux-image-3.13-1-amd64_3.13.10-1_i386.deb'
apt-get download linux-headers-3.13-1-amd64
copy files downloaded to computer with no Internet
reboot and select amd64 kernel
Above instructions were helpful to me to install debian wheezy with kernel 3.13 on laptop ACER Aspire V5-123