一、只要使用apt-get update && apt-get upgrade就好

当然上面那个命令不会改变你Ubuntu的版本,如果你还要升级Ubuntu的版本(比如从13.10升级到14.04),那你要敲:sudo dist-upgrade


更新列表

apt-get update 

更新软件包

apt-get upgrade


查看软件源内核信息

apt-cache search linux-p_w_picpath-xxxx


查看某一版本内核有哪些包

root@10-15-126-114:~# apt-cache search  3.16.0-77-generic

linux-cloud-tools-3.13.0-95-generic - Linux kernel version specific cloud tools for version 3.13.0-95

linux-headers-3.13.0-95-generic - Linux kernel headers for version 3.13.0 on 64 bit x86 SMP

linux-p_w_picpath-3.13.0-95-generic - Linux kernel p_w_picpath for version 3.13.0 on 64 bit x86 SMP

linux-p_w_picpath-extra-3.13.0-95-generic - Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP

linux-signed-p_w_picpath-3.13.0-95-generic - Signed kernel p_w_picpath generic

linux-tools-3.13.0-95-generic - Linux kernel version specific tools for version 3.13.0-95



安装相应内核

apt-get install linux-headers-3.13.0-95-generic linux-p_w_picpath-3.13.0-95-generic linux-p_w_picpath-extra-3.13.0-95-generic linux-tools-3.13.0-95-generic



查看当前安装了哪些内核版本

dpkg --list | grep linux-p_w_picpath



查看该内核版本有哪些包

dpkg --list | grep 3.2.0-96.136




删除多余内核包

apt-get remove linux-p_w_picpath-3.13.0-63-generic

apt-get remove linux-p_w_picpath-extra-3.13.0-63-generic

apt-get remove linux-headers-3.13.0-63-generic


清理无用的包

apt-get clean && sudo apt-get autoclean