First, install the kernel
Aptitude Install Linux-image-3.13.0-24-generic Linux-headers-3.13.0-24-generic
Second, view the installed kernel
Dpkg--get-selections | grep linux-image
Third, remove the unwanted kernel
sudo apt-get remove--purge linux-image-3.8.0-39-generic
Reference:
Http://blog.hickwu.com/vps%E5%8D%87%E7%BA%A7linux%E5%86%85%E6%A0%B8%E9%9A%8F%E8%AE%B0
The following is the original copy of the reference:
Want to toss the more fashionable Docker, due to the kernel version requirements, at least 3.2 recommended 3.8, found BUDGETVM OpenVZ VPS is ubuntu 12.04, kernel version 2.6.32! Not familiar with the kernel, and found a lot of articles 12.04 LTS should be 3.2 kernel, reckoned is probably manually switched, that is, downgrade using 2.6 kernel?
Reprint please indicate the source http://blog.hickwu.com/posts/329 by Hick
Try to upgrade by searching for data:
sudo apt-get updatesudo apt-get upgradesudo apt-get install linux-image-generic-lts-raring linux-headers-generic-lts-raring
The error of the result hint is not clear, the search has no effect (omitted part):
dpkg: dependency problems prevent configuration of linux-image-generic-lts-raring: linux-image-generic-lts-raring depends on linux-image-3.8.0-39-generic; however: Package linux-image-3.8.0-39-generic is not configured yet.dpkg: error processing linux-image-generic-lts-raring (--configure): dependency problems - leaving unconfiguredNo apport report written because the error message indicates its a followup error from a previous failure. Errors were encountered while processing: linux-image-3.8.0-39-generic linux-image-generic-lts-raringE: Sub-process /usr/bin/dpkg returned an error code (1)
Probably understand is because the installation of multiple cores, many of the solution is to prompt the deletion, so similar to the deletion can resolve some errors, but eventually can not upgrade, reboot many times no results:
Note This command can view the current installed Linux kernel, and if the above command does not have--purge, the status may appear as deinstall and not completely removed:
[email protected]:/var/www# dpkg --get-selections | grep linux-imagelinux-image-3.2.0-61-generic installlinux-image-3.5.0-49-generic deinstalllinux-image-3.8.0-25-generic deinstalllinux-image-3.8.0-39-generic deinstall
At least I learned something, not to waste me a blind toss.
Later replaced the keyword search, similar to the VPS upgrade kernel class, found that the VPS core may be associated with its host? means the VPS core is shared with the host, a single VPS can not be upgraded alone? Some VPS providers can choose to upgrade the kernel in the Control Panel, run to my VPS service provider BUDGETVM A look, really do not have this operation, but can choose another version of the OS. By the way Ubuntu offers multiple versions of the selection, to the official check, 12.04 and 14.04 official support for a long time, seemingly similar to the Linux kernel version, the main version number even is a stable long-term support version, 13.X is not recommended as a long-term consideration to use, no wonder to see a lot of articles before Are 12.04, 14.04 came out at the beginning of the year.
As a result, the final upgrade kernel, still have to ask VPS service.
[2014/05/18 12:29:35] According to BUDGETVM's latest reply, their OpenVZ-based VPS does not support upgrading the kernel, Xen can:
These are OpenVZ VPS. You are not able to upgrade the kernel.We would recommend using our Xen services, which will allow you to install any kernel of your choice.
VPS Switching Kernel