由于磁盘空间不足,无法升级

由于磁盘空间不足,无法升级

我目前正在运行 Ubuntu 15.10 版本,今天系统要求升级到 16.04。我运行了升级,但由于磁盘空间不足错误,升级中途停止了。我清理了旧内核,只留下了我当前正在运行的内核,但它仍然没有足够的空间进行升级。这是我当前的内核列表:

ii  linux-image-4.2.0-42-generic       4.2.0-42.49  amd64        Linux kernel image for version 4.2.0 on 64 bit x86 SMP
ii  linux-image-extra-4.2.0-42-generic 4.2.0-42.49  amd64        Linux kernel extra modules for version 4.2.0 on 64 bit x86 SMP
ii  linux-image-generic                4.2.0.42.45  amd64        Generic Linux kernel image

ii  linux-headers-4.2.0-42         4.2.0-42.49  all          Header files related to Linux kernel version 4.2.0
ii  linux-headers-4.2.0-42-generic 4.2.0-42.49  amd64        Linux kernel headers for version 4.2.0 on 64 bit x86 SMP
ii  linux-headers-generic          4.2.0.42.45  amd64        Generic Linux kernel headers

结果如下df -h

Filesystem      Size  Used Avail Use% Mounted on
udev            1,9G     0  1,9G   0% /dev
tmpfs           388M  6,5M  381M   2% /run
/dev/dm-1       454G   15G  416G   4% /
tmpfs           1,9G  160K  1,9G   1% /dev/shm
tmpfs           5,0M  4,0K  5,0M   1% /run/lock
tmpfs           1,9G     0  1,9G   0% /sys/fs/cgroup
/dev/sda2       237M  119M  106M  53% /boot
/dev/sda1       511M  3,4M  508M   1% /boot/efi
tmpfs           388M   48K  388M   1% /run/user/1000

这是错误消息(清理旧内核之后):

Not enough free disk space 

The upgrade has aborted. The upgrade needs a total of 183 M free 
space on disk '/boot'. Please free at least an additional 72,6 M of 
disk space on '/boot'. Empty your trash and remove temporary packages 
of former installations using 'sudo apt-get clean'. 

我试过了sudo apt-get clean,我的垃圾箱已经清空了。我还能做些什么来释放更多空间/boot

答案1

也许调整分区大小?

如果你还没有尝试过,建议使用 apt-get autoremove

相关内容