http://askubuntu.com/questions/289869/ubuntu-12-10-i-cant-clean-up-space-in-boot-directory
It's probably because you have too many kernel packages installed (you can only run one at a time).
Check which kernel packages are installed:
dpkg -l 'linux-image*' | grep '^ii'
Check what your current kernel is:
uname -r
% ls -al /boot
And my currently running kernel is:
% uname -r
3.5.0-27-generic
Thus, in my case I could free up space in /boot by removing:
linux-image-3.5.0-26-generic
linux-image-3.5.0-28-generic
by running apt-get remove <package_name>
|
You can remove ALL the old kernels, and keep just the latest one. This will free up space on /boot . This is doable via multiple methods.
Refer this link. User mikewhatever has provided an answer which can do this removal from one single command from command line.
Update: listing the command here itself, from the said link:
sudo apt-get remove --purge $(dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d')
|
分享到:
相关推荐
这是一个令很多linux爱好者振奋的日子,Ubuntu 12.04 LTS发布势必会掀起新的升级高潮,而这篇文章给大家介绍一下升级后的最新版Ubuntu的新特点及需要安装的软件,它们使的最新版本Ubuntu 12.04 LST具有了更强的吸引...
Ubuntu12.04 nginx python uwsgi Django安装步骤
libc6 for ubuntu 12.04 所有依赖的库都打包 .
Ubuntu 12.04 菜鸟完全使用教程让你用最快的速度熟悉使用Ubuntu 12.04!
Ubuntu12.04桌面指南离线版本 打开index.html阅读即可,不用看在线的了,可以永久保存
Ubuntu12.04菜鸟使用手册合集+Ubuntu标准教程Ubuntu12.04菜鸟使用手册合集+Ubuntu标准教程Ubuntu12.04菜鸟使用手册合集+Ubuntu标准教程Ubuntu12.04菜鸟使用手册合集+Ubuntu标准教程Ubuntu12.04菜鸟使用手册合集+...
Linux中的查看文件内容最常用的cat,less,more和vim我们都已经很熟悉了,但是这些命令都是查看文件的全部内 容,如果要查看文件的部分内容可以使用head,tail或sed,下面对这几个命令的用法做一个简单的介绍
ubuntu12.04 server版本,虚拟机共享宿主机的无线网上网,亲测,有图。
用 VMware 安装 Ubuntu 12.04详细过程图解
最全,最好用 自己试试啊ubuntu12.04 vim 配置
详细描述了ubuntu12.04版本的使用,对于linux的详细学习还是要看书
Ubuntu 12.04下如何安装MySQL ,我按照这文档,已经成功在ubuntu 12.04安装成功mysql!
ubuntu12.04安装及配置过程详解
ubuntu12.04下Java开发环境的搭建
Ubuntu12.04下的JDK安装,首先到官网上下载jdk-7u51-linux-x64.tar.gz。
ubuntu12.04 服务器 入门指南,包含有关如何安装和配置各种服务器的信息。
在ubuntu12.04下可以通过这个主题包快速的安装苹果mac主题,我自己也正在用这个主题,分享给大家。
Ubuntu12.04的apt-get搜狐源,直接下载至/etc/apt/下即可,执行apt-get update
Ubuntu 12.04 菜鸟使用手册(全)
VMWare8.0安装Ubuntu12.04教程,傻瓜式安装教程,很详细