Question: Is there a way to remove kernel 3.1 from Oneiric?

I downloaded and upgraded to 3.1 with these instructions:

> 
> Open the terminal and run these two commands for both 32-bit and
>  64-bit versions of Ubuntu 11.10/11.04:
> 
> 
> 
> ```
> wget http://kernel.ubuntu.com/~kernel-ppa...241006_all.deb
> sudo dpkg -i linux-headers-3.1.0-030100_3.1.0-030100.201110241006_all.deb
> 
> ```
> 
> Ubuntu (64-bit)
> 
> 
> For Ubuntu 11.10/11.04 (64-bit), issue these commands:
> 
> 
> 
> ```
> wget http://kernel.ubuntu.com/~kernel-ppa...1006_amd64.deb
> sudo dpkg -i linux-headers-3.1.0-030100-generic_3.1.0-030100.201110241006_amd64.deb
> wget http://kernel.ubuntu.com/~kernel-ppa...1006_amd64.deb
> sudo dpkg -i linux-image-3.1.0-030100-generic_3.1.0-030100.201110241006_amd64.deb
> 
> ```
> 
> 

Everything went well. I was able to reboot quickly, but Firefox and Chrome constantly crash with Kernel 3.1. I am using Gnome 3.2 and saw improvement with 3.0.0.13 provided by ppa. Any help with 3.1 or just removing it would be helpful. Thanks to all that reply.

Answer: 
First boot into a kernel that you DONT want to remove i.e. boot into 3.0.x not 3.1.x.

To remove the packages you have just installed, you will need to find out their names. Run the following in a terminal:

```
dpkg -l | grep "linux\-[a-z]*\-"

```

For example - in my case:

![enter image description here](https://i.stack.imgur.com/x9gEL.png)

What you are looking for are similarly named kernel 3.1 packages -

For my example - I've highlighted similar packages I want to remove - the command syntax would be:

```
sudo apt-get remove linux-headers-2.6.38-11
sudo apt-get remove linux-headers-2.6.38-11-generic
sudo apt-get remove linux-image-2.6.38-11-generic

```

To make it easier, just copy and paste the package names after typing `sudo apt-get remove`

Finish off by running:

```
sudo update-grub

```
Reboot and from the grub menu you should be able to select the previous installed kernel, if your old kernel has been removed, you can find the package to install with `sudo aptitude search linux-image`

you can then find your 3.1 kernel using `sudo aptitude search ~i | grep linux-image` and remove with `sudo apt-get remove linux-image-XXX`

run `sudo update-grub` to remove the outdated kernel entries from the boot menu