ubuntu下用apt-get install 安装软件时出现 initramfs-tools错误
2013-09-30 00:03
627 查看
错误提示:
gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-3.2.0-29-generic with 1.
dpkg:处理 initramfs-tools (–configure)时出错:
子进程 已安装 post-installation 脚本 返回了错误号 1
在处理时有错误发生:
initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)
用df -h查看一下 空间的使用情况
解决这个问题就是删除多余的内核:
方法一:
打开终端:
sudo aptitude purge ~ilinux-image-.*\(\!`uname -r`\)
这条命令的作用:删除当前系统没有正在使用的所有内核,一般系统使用的都是最
新的内核版本(如果你没有自己设置的话)
这样你的GRUB启动菜单中只留下最新版本内核的菜单了
方法二:
查看全部内核的命令:
dpkg –get-selections|grep linux
查看当前使用内核的命令:
uname -r
删除多余的内核:
sudo apt-get remove linux-image-<版本号>
不要随便删除其他的内核,只删除前面是image的
出现卸载不完全时,用以下命令:
sudo apt-get autoremove
gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-3.2.0-29-generic with 1.
dpkg:处理 initramfs-tools (–configure)时出错:
子进程 已安装 post-installation 脚本 返回了错误号 1
在处理时有错误发生:
initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)
用df -h查看一下 空间的使用情况
解决这个问题就是删除多余的内核:
方法一:
打开终端:
sudo aptitude purge ~ilinux-image-.*\(\!`uname -r`\)
这条命令的作用:删除当前系统没有正在使用的所有内核,一般系统使用的都是最
新的内核版本(如果你没有自己设置的话)
这样你的GRUB启动菜单中只留下最新版本内核的菜单了
方法二:
查看全部内核的命令:
dpkg –get-selections|grep linux
查看当前使用内核的命令:
uname -r
删除多余的内核:
sudo apt-get remove linux-image-<版本号>
不要随便删除其他的内核,只删除前面是image的
出现卸载不完全时,用以下命令:
sudo apt-get autoremove
相关文章推荐
- ubuntu图下安装软件出现You might want to run 'apt-get -f install' to correct these解决
- apt-get install安装软件时出现依赖错误解决方式
- 在Ubuntu终端中使用安装命令Sudo apt-get install xxx时时出现E: 无法获得锁 /var/lib/dpkg/lock - open (11: 资源暂时不可用)的错误解决方案
- 安装Ubuntu之后默认英文,选简体中文,正常来说这样装好就应该能用的,可是这个时候又出现了错误,說:broken package database. 请用apt-get install -f解决问题
- ubuntu图下安装软件出现You might want to run 'apt-get -f install' to correct these解决
- ubuntu图下安装软件出现You might want to run 'apt-get -f install' to correct these解决
- ubuntu图下安装软件出现You might want to run 'apt-get -f install' to correct these解决
- linux(ubuntu)安装软件出现You might want to run 'apt-get -f install' to correct these解决
- 在ubuntu中使用apt-get install 安装软件时出现无法获得锁
- ubuntu下安装软件出现You might want to run 'apt-get -f install' to correct these解决
- apt-get install安装软件时出现依赖错误解决方案
- ubuntu图下安装软件出现You might want to run 'apt-get -f install' to correct these解决
- Ubuntu使用apt-get install 安装软件时报错:could not get lock /var/lib/dpkg/lock -open
- sudo apt-get install **时,出现错误{更换介质:请把标有 “Ubuntu-Kylin 14.04 LTS _Trusty Tahr_ ...}
- ubuntu使用”apt-get install“安装程序时遇到错误提示: you might want to run 'apt-get -f install' to correct these
- ubuntu采用apt-get安装软件出现依赖问题的解决方案
- 在Ubuntu中,有时候运用sudo apt-get install 安装软件时,会出现一下的情况 E: Could not get lock /var/lib/dpkg/lock - open
- ubuntu如何卸载apt-get install安装的软件
- Ubuntu 的apt-get install的安装错误
- ubuntu apt-get 安装软件包时 出现依赖的包版本过高