分页: 1 / 1

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

发表于 : 2017-11-24 21:27
trx81
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分区。

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

发表于 : 2017-11-24 22:06
poloshiao
把下面指令 複製 貼進終端機 執行
1. df -k
2. sudo cat -n /var/log/dpkg.log | grep "install"
把結果直接 選取/複製 貼上來

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

发表于 : 2017-11-25 11:17
trx81
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

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

发表于 : 2017-11-25 11:48
trx81
更新文件只有几百K

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

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

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

发表于 : 2017-11-25 12:13
trx81
http://blog.csdn.net/xhw035/article/details/52422970
参考上文,只要一个内核,空出100多M。建议安装时boot 分500M

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

发表于 : 2017-11-26 14:25
fuhuizn
不要单独分 /boot 分区,没用,还会引起楼主的问题