ubuntu:low disk space on /boot

今天更新了一下ubuntu18.04,kernel版本从原本的5.3.0-45-generic升级为5.3.0-62-generic,注意到我的notification里面有一个low disk space on /boot(因为解决了,所以没留下证据…)
做法其实不复杂

cd /boot
dpkg -l | grep linux-image

在这里插入图片描述

这个时候可以看到一堆linux-image-****-generic
这个是之前老版本的内核和新版本的内核文件的存储情况
uname -r
查看到当前电脑linux版本为5.4.0-42
在这里插入图片描述

sudo fc-cache -fv 2>&1 | grep failed | cut -f1 -d ":"| xargs -i sudo touch {} && sudo fc-cache -fv

额,然后可以找一些老版本的image给删除掉
sudo apt-get remove --purge *****-generic(这里需要自己输入要删除的kernel的版本号,不要用通配符这里,否则会炸)
(其次,不建议删掉很多,因为linux的内核是linux系统启动并正常运行的关键,删错了的话,也会炸掉)
渐渐的boot空间就空出来了
但是这样子删除并不能删除掉一些老版本中的一些对应的关联文件,除非你知道名字
所以

sudo apt-get autoremove

就好了
##########################
sudo update-grub(当有内核无法进入时,打开一个可以进入的内核,【在ubuntu高级选项哪那里】,终端中输入这个然后重启电脑
##########################

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
root@6527d9173397:/# apt update Ign:1 http://archive.ubuntu.com/ubuntu jammy InRelease Ign:2 http://security.ubuntu.com/ubuntu jammy-security InRelease Ign:2 http://security.ubuntu.com/ubuntu jammy-security InRelease Ign:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease Ign:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease Ign:2 http://security.ubuntu.com/ubuntu jammy-security InRelease Ign:1 http://archive.ubuntu.com/ubuntu jammy InRelease Err:2 http://security.ubuntu.com/ubuntu jammy-security InRelease Temporary failure resolving 'security.ubuntu.com' Ign:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease Ign:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease Ign:1 http://archive.ubuntu.com/ubuntu jammy InRelease Ign:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease Ign:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease Err:1 http://archive.ubuntu.com/ubuntu jammy InRelease Temporary failure resolving 'archive.ubuntu.com' Err:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease Temporary failure resolving 'archive.ubuntu.com' Err:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease Temporary failure resolving 'archive.ubuntu.com' Reading package lists... Done Building dependency tree... Done Reading state information... Done All packages are up to date. W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jammy/InRelease Temporary failure resolving 'archive.ubuntu.com' W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jammy-updates/InRelease Temporary failure resolving 'archive.ubuntu.com' W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jammy-backports/InRelease Temporary failure resolving 'archive.ubuntu.com' W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/jammy-security/InRelease Temporary failure resolving 'security.ubuntu.com' W: Some index files failed to download. They have been ignored, or old ones used instead.
06-12

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值