安装安全更新时提示空间不足

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
trx81
帖子: 27
注册时间: 2010-05-02 23:17

安装安全更新时提示空间不足

#1

帖子 trx81 » 2017-11-24 21:27

2017-11-24 09-15-20屏幕截图.png
提示:The upgrade needs a total of 51.9 M free space on disk '/boot'. Please free at least an additional 30.5 M of disk space on '/boot'. You can remove old kernels using 'sudo apt autoremove', and you could also set COMPRESS=xz in /etc/initramfs-tools/initramfs.conf to reduce the size of your initramfs.

安装的是双系统, ubuntu启动项安装在 win的uef启动里面,没有分boot分区。
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 安装安全更新时提示空间不足

#2

帖子 poloshiao » 2017-11-24 22:06

把下面指令 複製 貼進終端機 執行
1. df -k
2. sudo cat -n /var/log/dpkg.log | grep "install"
把結果直接 選取/複製 貼上來
trx81
帖子: 27
注册时间: 2010-05-02 23:17

Re: 安装安全更新时提示空间不足

#3

帖子 trx81 » 2017-11-25 11:17

tian@tian-Lenovo-Xiaoxin-510S-14IKB:~$ df -k
文件系统 1K-块 已用 可用 已用% 挂载点
udev 1914624 0 1914624 0% /dev
tmpfs 388232 11812 376420 4% /run
/dev/sda10 9546944 5895296 3146972 66% /
tmpfs 1941156 21792 1919364 2% /dev/shm
tmpfs 5120 4 5116 1% /run/lock
tmpfs 1941156 0 1941156 0% /sys/fs/cgroup
/dev/sda13 146478028 26592716 112374940 20% /home
/dev/sda12 185301 150653 20958 88% /boot
/dev/sda1 262144 41672 220472 16% /boot/efi
tmpfs 388228 16 388212 1% /run/user/121
tmpfs 388228 1952 386276 1% /run/user/1000
trx81
帖子: 27
注册时间: 2010-05-02 23:17

Re: 安装安全更新时提示空间不足

#4

帖子 trx81 » 2017-11-25 11:48

更新文件只有几百K
头像
astolia
论坛版主
帖子: 6444
注册时间: 2008-09-18 13:11

Re: 安装安全更新时提示空间不足

#5

帖子 astolia » 2017-11-25 12:03

很明显的,你升级的软件包是initramfs的组件之一,升级后需要重建initramfs,所以需要的空间主要和initramfs的大小有关。你可以去看看/boot下面initrd.img开头的文件有多大。
删除几个旧内核就可以了。胆子大点的也可以直接删除 /boot/initrd.img-当前内核版本,反正会重建(注意先备份)
trx81
帖子: 27
注册时间: 2010-05-02 23:17

Re: 安装安全更新时提示空间不足

#6

帖子 trx81 » 2017-11-25 12:13

http://blog.csdn.net/xhw035/article/details/52422970
参考上文,只要一个内核,空出100多M。建议安装时boot 分500M
fuhuizn
帖子: 948
注册时间: 2006-01-06 22:55
系统: ubuntu
联系:

Re: 安装安全更新时提示空间不足

#7

帖子 fuhuizn » 2017-11-26 14:25

不要单独分 /boot 分区,没用,还会引起楼主的问题
回复