Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Supposing I am using Ubuntu 12.04(LTS), and it uses the 3.5.0-37 kernel.

If i wanted to use the 3.9.6 kernel, how could i use it? I dont want to upgrade to 13.04

Would I have to manually download this kernel, compile it and make its initrd, or could I fetch it using apt-get install by enabling some repository?

Please Help.

share|improve this question
    
Thank you both Radu Rădeanu and Jorge Castro for helping. Cant mark both answers as solved, so here goes ;) –  Aaditya Bagga Aug 14 '13 at 17:23

2 Answers 2

up vote 2 down vote accepted

Backported kernels are available in 12.04, see these questions for instructions on how to enable them:

Another alternative is to build your own kernel or use a vanilla kernel: How do I get and install an unmodified kernel?

share|improve this answer
    
Ok i will look into it. Thanks :) –  Aaditya Bagga Aug 14 '13 at 16:47
    
So i should type in the terminal sudo apt-get install linux-generic-lts-raring and sudo apt-get install xserver-xorg-lts-raring ? Thanks. Will it be safe to do it? –  Aaditya Bagga Aug 14 '13 at 16:50

If you know some basic bash scripting, from the below scripts (which are very easy to understand even if they look so long) you can see how to download and use any other kernel.

echo " " &&
echo "This script will attempt to install Linux Kernel 3.9 on this machine." &&
echo "Typically, your current version will be kept, and you will be able to ustilise it again later if Kernel 3.9 does not work." &&
echo " " &&
read -p "Press Enter to continue, or abort by pressing CTRL+C" nothing &&
echo " " &&
echo "Downloading Kernel 3.9 Packages" &&
echo "3 Files, 55 MB to Download" &&
echo " " &&
echo "Creating Kernel Directory in Home folder" &&
echo " " &&
mkdir -p $HOME/kernel-htu &&
cd $HOME/kernel-htu &&
echo " " &&
echo "Downloading File 1 of 3, 12 MB" &&
echo " " &&
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.9.11-saucy/linux-headers-3.9.11-030911_3.9.11-030911.201307202035_all.deb &&
echo " " &&
if [ $(getconf LONG_BIT) = "64" ]
then
    echo "64bit Detected" &&
    echo " " &&
    echo "Downloading File 2 of 3, 1 MB" &&
    echo " " &&
    wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.9.11-saucy/linux-headers-3.9.11-030911-generic_3.9.11-030911.201307202035_amd64.deb &&
    echo " " &&
    echo "Downloading File 3 of 3, 43 MB" &&
    wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.9.11-saucy/linux-image-3.9.11-030911-generic_3.9.11-030911.201307202035_amd64.deb
else
    echo "32bit Detected" &&
    echo " " &&
    echo "Downloading File 2 of 3, 1 MB" &&
    echo " " &&
    wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.9.11-saucy/linux-headers-3.9.11-030911-generic_3.9.11-030911.201307202035_i386.deb &&
    echo " " &&
    echo "Downloading File 3 of 3, 42 MB" &&
    echo " " &&
    wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.9.11-saucy/linux-image-3.9.11-030911-generic_3.9.11-030911.201307202035_i386.deb
fi &&
echo " " &&
echo "Installing Kernel" &&
echo "This step will require you password." &&
echo "This is the last step you can safely cancel at." &&
echo "Use Ctrl+C to cancel." &&
echo " " &&
sudo dpkg -i *.deb &&
echo " " &&
echo "Installation Complete" &&
echo " " &&
read -p "Press Enter to Delete the Downloads, or CTRL+C to keep them." nothing &&
echo " " &&
sudo rm -rf $HOME/kernel-htu

Source: How to Install Linux Kernel 3.9 - How to Ubuntu (visit for most up-to-date version).

echo " " &&
echo "This script will attempt to install Linux Kernel 3.10 on this machine." &&
echo "Typically, your current version will be kept, and you will be able to ustilise it again later if Kernel 3.10 does not work." &&
echo " " &&
read -p "Press Enter to continue, or abort by pressing CTRL+C" nothing &&
echo " " &&
echo "Downloading Kernel 3.10 Packages" &&
echo "3 Files, 57 MB to Download" &&
echo " " &&
echo "Creating Kernel Directory in Home folder" &&
echo " " &&
mkdir -p $HOME/kernel-htu &&
cd $HOME/kernel-htu &&
echo " " &&
echo "Downloading File 1 of 3, 12 MB" &&
echo " " &&
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.10.6-saucy/linux-headers-3.10.6-031006_3.10.6-031006.201308112316_all.deb &&
echo " " &&
if [ $(getconf LONG_BIT) = "64" ]
then
    echo "64bit Detected" &&
    echo " " &&
    echo "Downloading File 2 of 3, 1 MB" &&
    echo " " &&
    wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.10.6-saucy/linux-headers-3.10.6-031006-generic_3.10.6-031006.201308112316_amd64.deb &&
    echo " " &&
    echo "Downloading File 3 of 3, 44 MB" &&
    echo " " &&
    wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.10.6-saucy/linux-image-3.10.6-031006-generic_3.10.6-031006.201308112316_amd64.deb
else
    echo "32bit Detected" &&
    echo " " &&
    echo "Downloading File 2 of 3, 1 MB" &&
    echo " " &&
    wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.10.6-saucy/linux-headers-3.10.6-031006-generic_3.10.6-031006.201308112316_i386.deb &&
    echo " " &&
    echo "Downloading File 3 of 3, 43 MB" &&
    wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.10.6-saucy/linux-image-3.10.6-031006-generic_3.10.6-031006.201308112316_i386.deb
fi &&
echo " " &&
echo "Installing Kernel" &&
echo "This step will require you password." &&
echo "This is the last step you can safely cancel at." &&
echo "Use Ctrl+C to cancel." &&
echo " " &&
sudo dpkg -i *.deb &&
echo " " &&
echo "Installation Complete" &&
echo " " &&
read -p "Press Enter to Delete the Downloads, or CTRL+C to keep them." nothing &&
echo " " &&
sudo rm -rf $HOME/kernel-htu

Source: How to Install Linux Kernel 3.10 - How to Ubuntu (visit for most up-to-date version).


You can download any kernel do you wish from: http://kernel.ubuntu.com/~kernel-ppa/mainline.

share|improve this answer
    
OK....Thanks :) –  Aaditya Bagga Aug 14 '13 at 16:54
    
1 up........ :) –  Aaditya Bagga Aug 14 '13 at 17:26

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.