It is always recommended to leave the 2 latest versions of the kernel, but to remove other kernel versions I used the following commands:
dpkg -l | fgrep linux-image-
Never remove the kernel shown in uname -r or linux-image-generic-lts-utopic.
Finally sudo apt-get purge <package names> for the kernels you want to remove (see screenshot for reference)...
Access the Ubuntu kernel PPA mainline repository here.
Download the following:
cd into the download directory and run
You can use this one-liner to automatically clean up all old kernels (make sure to restart the computer before doing this if you have just updated the kernel):
sudo apt purge $( dpkg --list | grep -P -o "linux-(headers|image)-\d\S+" | grep -v $(uname -r | grep -P -o ".+\d") )
What it does is uninstall (apt purge) the installed packages (dpkg --list) whose ...
From the official elementary blog:
If you’re already running Freya, you will already have received all of the above (with the exception of the newly added hardware support) in your regular updates.
If you really need kernel 3.19 try:
sudo apt-get install linux-generic-lts-vivid
If you are now unable to boot, press (or tap) Shift while booting (right after BIOS post screen) to show the GRUB menu. You can choose an older kernel to boot into from the recovery options menu item.
Install 3.19 Kernel
sudo apt-get install linux-generic-lts-vivid
The above command will install the backported 3.19 kernel from the LTS ...
Now that the Ubuntu 16.04.2 was released, you can safely update to the 4.8 kernel version. It's safe and works without issues. You can use this command:
sudo apt-get install --install-recommends xserver-xorg-hwe-16.04
You can simply run
sudo apt-get autoremove
to "remove all unused packages" which includes older kernels.
You should test a reboot before to be shure the new kernel works!
It is more secure to leave the 2 latest versions as John pointed out in his answer.
The kernel should be identical to the Ubuntu 14.04's kernel. elementary is built on on Ubuntu Minimal, so an Ubuntu tutorial should work just fine.
That said, a new version of the kernel is coming to Ubuntu 14.04 this month.
That upgrade expands hardware support, so it might fix your problem!
You can update kernel and mesa without reinstall the system.
Enter following command in Terminal:
sudo apt-get install --install-recommends linux-generic-lts-vivid xserver-xorg-core-lts-vivid xserver-xorg-lts-vivid xserver-xorg-video-all-lts-vivid xserver-xorg-input-all-lts-vivid libwayland-egl1-mesa-lts-vivid
If you run a multiarch desktop (for example, ...
Starting from elementary OS Loki, the OS is only available for 64-bit CPUs. So if you downloaded the ISO from the official page, you already have the 64-bit version.
Hola Ruben, desde el lanzamiento de elementary OS Loki, el SO sólo está disponible para arquitecturas de 64 bits. Si descargaste la ISO desde la página oficial, ya tenés la versión de ...
Please define "supports" :) I'm writing this on my new Dell Precision 5510 featuring an Intel i7-6820hq (Skylake chipset), running elementaryOS 0.3.2 (Freya). My only kernel related issue has been the lack of out-of-the-box support for the Intel Wireless chipset responsible for wifi and bluetooth, but that was solved by installing a back-ported driver after ...
It is relatively safe, though problems can always manifest. I recommend using Ukuu to do the upgrade and follow the method listed here:
This allows you to easily roll back to 4.4 if you are experiencing issues.
You can remove all Linux 4.4 kernels via:
sudo apt remove --purge linux-image-4.4.*
However you might want to keep always at least two kernel versions (the running one and a backup in case an upgrade goes wrong).
Not sure, if your system freezes completely, or if it's "just" the desktop.
In case you are very new to linux and didn't already know:
Try switching to a Terminal by pressing CTRL+ALT+F1 or ...+F2 (your desktop should be at ...+F7)
From there you can view all active processes using the command
Each process has an ID. You can force-quit any process ...
Run sudo apt-get purge linux-image-4.2.0-30-generic in terminal to remove the new 4.2 kernel.Then reboot
WARNING : If you have removed your old kernel using apt-get or synaptic this can result in an unbootable computer
I had the same problem and i got to fix it by
*opening the terminal
*run ¨ sudo apt-get purge xserver-xorg-video-intel
* run autoremove
and finally reboot
it fixed the flickering and now even the wallpaper changes all normal. no glitches anymore.
You can always try to upgrade you kernel.
However, as there is no 4.9 kernel package in elementary OS, you should understand the risks (as in: your system will not boot any more or there will be driver errors; there is only a very small chance of danger as in actually bricking it).
If you are sure to go on with the upgrade, I would start at http://kernel....
Please beware of building new kernels as if you don't get all the correct options for your hardware, your computer could stop booting. Though it should be possible to recover. The latest version of elementary now ships with kernal 4.10, so see if that meets your needs before building another.
However, if you still want to continue:
The apt-get source ...
To remove old kernels you can also use synaptic:
To install synaptic:
sudo apt-get install synaptic
Now open synaptic and search for linux-image under installed tab as shown and then
Right click on selected old kernel and select mark for complete removal
Note: Screenshots are only examples from my system.I already deleted old kernels.Please select old ...
Removing old kernels:
(I suggest boot to latest kernel)
First list current kernel:
To list all kernels :
dpkg --list | grep linux-image
Now purge old kernels manually,(be sure don't purge current kernel)
sudo apt-get purge linux-image-3.16.0-34 linux-image-3.16.0-46 linux-image-...
sudo apt-get install synaptic
Open synaptic and search for linux-image
Now select the one which you don't want to update.
Now click on package in menu bar --> click on lock version
You have to repeat the same for all the entries in software-updater related to 3.19
You can also use alternative methods mentioned at:
How to prevent ...
from reading the messages on the kernel mailing list I understand that the data loss only is a problem when using the SSD in a raid0 or raid10 configuration.
They have fixed the bug in the kernel, but I can't seem to find in which version the fix was released.
NVIDIA drivers were causing the problem. I removed drivers completely with --purge flag and then installed current drivers again and now everything works. Here's how to do this: https://askubuntu.com/questions/41681/blank-screen-after-installing-nvidia-restricted-driver
Well, thanks to some assistance on the Purism forums I found the answer to this. (Unfortunately, not before paving the OS, returning to PureOS, and wasting a lot of time tearing my hair out.)
The solution is extremely straightforward, so much so it made me feel very stupid.
Pressing Fn + F1 enables/disables the touchpad on the Purism Librem 13. So at some ...
Kernel updates are included through updates to the Ubuntu base. Loki is based on Ubuntu 16.04, which will get updates every 6 months for the next 5 years. (See the Ubuntu releases page for more details).
The last release was in July, so I'd expect the next one to arrive in January 2017.