/boot is 100% full ubuntu

系统的/boot分区满了

apt-get -f install 和

sudo apt-get remove linux-image-VERSION

命令均不起作用,在这里https://askubuntu.com/questions/345588/what-is-the-safest-way-to-clean-up-boot-partition的第二篇解答NOTE: this is only if you can't use apt to clean up due to a 100% full /boot起作用了

转载于:https://www.cnblogs.com/imageSet/p/10325831.html

[02:34:38] ✅ 密码正确,开始部署... [02:34:38] 🔧 设置非交互模式并修复中断的 dpkg... [02:34:38] ⚙️ 正在运行 dpkg --configure -a --force-confdef --force-confold... Setting up cloud-init (24.4.1-0ubuntu0~20.04.3) ... Configuration file '/etc/cloud/cloud.cfg' ==> Modified (by you or by a script) since installation. ==> Package distributor has shipped an updated version. ==> Keeping old config file as default. Installing new version of config file /etc/cloud/cloud.cfg.d/05_logging.cfg ... Installing new version of config file /etc/cloud/templates/chrony.conf.alpine.tmpl ... Installing new version of config file /etc/cloud/templates/chrony.conf.debian.tmpl ... Installing new version of config file /etc/cloud/templates/chrony.conf.fedora.tmpl ... Installing new version of config file /etc/cloud/templates/chrony.conf.opensuse.tmpl ... Installing new version of config file /etc/cloud/templates/chrony.conf.photon.tmpl ... Installing new version of config file /etc/cloud/templates/chrony.conf.rhel.tmpl ... Installing new version of config file /etc/cloud/templates/chrony.conf.sles.tmpl ... Installing new version of config file /etc/cloud/templates/chrony.conf.ubuntu.tmpl ... Installing new version of config file /etc/cloud/templates/hosts.alpine.tmpl ... Installing new version of config file /etc/cloud/templates/ntp.conf.alpine.tmpl ... Installing new version of config file /etc/cloud/templates/ntp.conf.debian.tmpl ... Installing new version of config file /etc/cloud/templates/ntp.conf.fedora.tmpl ... Installing new version of config file /etc/cloud/templates/ntp.conf.opensuse.tmpl ... Installing new version of config file /etc/cloud/templates/ntp.conf.photon.tmpl ... Installing new version of config file /etc/cloud/templates/ntp.conf.rhel.tmpl ... Installing new version of config file /etc/cloud/templates/ntp.conf.sles.tmpl ... Installing new version of config file /etc/cloud/templates/ntp.conf.ubuntu.tmpl ... Installing new version of config file /etc/profile.d/Z99-cloud-locale-test.sh ... Installing new version of config file /etc/profile.d/Z99-cloudinit-warnings.sh ... Removing obsolete conffile /etc/NetworkManager/dispatcher.d/hook-network-manager ... Setting up libnss-systemd:amd64 (245.4-4ubuntu3.24) ... Setting up python3-distupgrade (1:20.04.41) ... Setting up ubuntu-release-upgrader-core (1:20.04.41) ... Setting up update-manager-core (1:20.04.10.23) ... Setting up libpam-systemd:amd64 (245.4-4ubuntu3.24) ... Setting up update-notifier-common (3.192.30.19) ... Setting up dbus-user-session (1.12.16-2ubuntu2.3) ... Setting up snapd (2.67.1+20.04) ... Installing new version of config file /etc/apparmor.d/usr.lib.snapd.snap-confine.real ... Installing new version of config file /etc/apt/apt.conf.d/20snapd.conf ... snapd.failure.service is a disabled or a static unit not running, not starting it. snapd.snap-repair.service is a disabled or a static unit not running, not starting it. Processing triggers for initramfs-tools (0.136ubuntu6.8) ... update-initramfs: Generating /boot/initrd.img-5.4.0-110-generic Processing triggers for libc-bin (2.31-0ubuntu9.18) ... Processing triggers for rsyslog (8.2001.0-1ubuntu1.3) ... Processing triggers for ufw (0.36-6ubuntu1.1) ... Processing triggers for man-db (2.9.1-1) ... Processing triggers for plymouth-theme-ubuntu-text (0.9.4git20200323-0ubuntu6.2) ... update-initramfs: deferring update (trigger activated) Processing triggers for dbus (1.12.16-2ubuntu2.3) ... Processing triggers for install-info (6.7.0.dfsg.2-5) ... Processing triggers for linux-image-5.4.0-216-generic (5.4.0-216.236) ... /etc/kernel/postinst.d/initramfs-tools: update-initramfs: Generating /boot/initrd.img-5.4.0-216-generic /etc/kernel/postinst.d/zz-update-grub: Sourcing file `/etc/default/grub' Sourcing file `/etc/default/grub.d/50-cloudimg-settings.cfg' Sourcing file `/etc/default/grub.d/init-select.cfg' Generating grub configuration file ... Found linux image: /boot/vmlinuz-5.4.0-216-generic Found initrd image: /boot/initrd.img-5.4.0-216-generic Found linux image: /boot/vmlinuz-5.4.0-110-generic Found initrd image: /boot/initrd.img-5.4.0-110-generic done Processing triggers for mime-support (3.64ubuntu1) ... Processing triggers for initramfs-tools (0.136ubuntu6.8) ... update-initramfs: Generating /boot/initrd.img-5.4.0-216-generic [02:35:36] ✅ 系统已进入全自动非交互模式 [02:35:36] 🚀 优化系统资源使用:启用最大线程与内存 [02:35:36] 🧠 检测到 CPU 核心数: 32 [02:35:36] 🔧 执行: 📦 安装 pigz(并行 gzip) (最长等待 120 秒) Reading package lists... Building dependency tree... Reading state information... The following NEW packages will be installed: pigz 0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded. Need to get 57.4 kB of archives. After this operation, 259 kB of additional disk space will be used. Get:1 http://mirrors.aliyun.com/ubuntu focal/universe amd64 pigz amd64 2.4-1 [57.4 kB] Fetched 57.4 kB in 0s (286 kB/s) Selecting previously unselected package pigz. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 134865 files and directories currently installed.) Preparing to unpack .../archives/pigz_2.4-1_amd64.deb ... Unpacking pigz (2.4-1) ... Setting up pigz (2.4-1) ... Processing triggers for man-db (2.9.1-1) ... [02:37:36] ⏰ 超时失败: 📦 安装 pigz(并行 gzip) [02:37:36] ⚡ 已启用多线程加速: 7z + pigz [02:37:36] 🔍 正在检测系统兼容性... [02:37:36] ✅ 操作系统: Ubuntu 20.04 (focal) [02:37:36] 🟢 版本受支持 [02:37:36] ✅ CPU 架构: x86_64 [02:37:36] 🔧 正在清理 APT 锁文件和占用进程... [02:37:39] ✅ APT 锁已清除且中断状态已修复 [02:37:39] 🌐 正在配置阿里云 APT 源... [02:37:39] ✅ 已切换至阿里云 APT 源 [02:37:39] 🔧 执行: 🔄 更新 APT 包列表 (最长等待 300 秒) WARNING: apt does not have a stable CLI interface. Use with caution in scripts. Hit:1 http://mirrors.aliyun.com/ubuntu focal InRelease Hit:2 http://mirrors.aliyun.com/ubuntu focal-updates InRelease Hit:3 http://mirrors.aliyun.com/ubuntu focal-security InRelease Get:4 http://mirrors.aliyun.com/ubuntu focal-backports InRelease [128 kB] Get:5 http://mirrors.aliyun.com/ubuntu focal-backports/universe Sources [10.5 kB] Hit:6 http://ppa.launchpad.net/git-core/ppa/ubuntu focal InRelease Get:7 http://mirrors.aliyun.com/ubuntu focal-backports/main Sources [9604 B] Get:8 http://mirrors.aliyun.com/ubuntu focal-backports/main amd64 Packages [45.7 kB] Get:9 http://mirrors.aliyun.com/ubuntu focal-backports/main i386 Packages [36.1 kB] Get:10 http://mirrors.aliyun.com/ubuntu focal-backports/main Translation-en [16.3 kB] Get:11 http://mirrors.aliyun.com/ubuntu focal-backports/main amd64 c-n-f Metadata [1420 B] Get:12 http://mirrors.aliyun.com/ubuntu focal-backports/restricted amd64 c-n-f Metadata [116 B] Get:13 http://mirrors.aliyun.com/ubuntu focal-backports/universe i386 Packages [13.8 kB] Get:14 http://mirrors.aliyun.com/ubuntu focal-backports/universe amd64 Packages [25.0 kB] Get:15 http://mirrors.aliyun.com/ubuntu focal-backports/universe Translation-en [16.3 kB] Get:16 http://mirrors.aliyun.com/ubuntu focal-backports/universe amd64 c-n-f Metadata [880 B] Get:17 http://mirrors.aliyun.com/ubuntu focal-backports/multiverse amd64 c-n-f Metadata [116 B] Fetched 304 kB in 2s (190 kB/s) Reading package lists... Building dependency tree... Reading state information... 2 packages can be upgraded. Run 'apt list --upgradable' to see them. [02:37:50] ✅ 成功: 🔄 更新 APT 包列表 [02:37:50] 🔧 执行: 📦 安装 p7zip-full(用于高速解压) (最长等待 300 秒) Reading package lists... Building dependency tree... Reading state information... The following additional packages will be installed: p7zip Suggested packages: p7zip-rar The following NEW packages will be installed: p7zip p7zip-full 0 upgraded, 2 newly installed, 0 to remove and 2 not upgraded. Need to get 1545 kB of archives. After this operation, 5896 kB of additional disk space will be used. Get:1 http://mirrors.aliyun.com/ubuntu focal/universe amd64 p7zip amd64 16.02+dfsg-7build1 [358 kB] Get:2 http://mirrors.aliyun.com/ubuntu focal/universe amd64 p7zip-full amd64 16.02+dfsg-7build1 [1187 kB] Fetched 1545 kB in 1s (3010 kB/s) Selecting previously unselected package p7zip. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 134874 files and directories currently installed.) Preparing to unpack .../p7zip_16.02+dfsg-7build1_amd64.deb ... Unpacking p7zip (16.02+dfsg-7build1) ... Selecting previously unselected package p7zip-full. Preparing to unpack .../p7zip-full_16.02+dfsg-7build1_amd64.deb ... Unpacking p7zip-full (16.02+dfsg-7build1) ... Setting up p7zip (16.02+dfsg-7build1) ... Setting up p7zip-full (16.02+dfsg-7build1) ... Processing triggers for man-db (2.9.1-1) ... [02:42:50] ⏰ 超时失败: 📦 安装 p7zip-full(用于高速解压) [02:42:50] 📦 开始解压 /2-必备库.zip (117M) 到 / ... [02:42:50] 🔧 执行: 📦 解压 '2-必备库.zip' 到根目录并删除 (最长等待 900 秒) 7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21 p7zip Version 16.02 (locale=C,Utf16=off,HugeFiles=on,64 bits,32 CPUs Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz (50657),ASM,AES-NI) Scanning the drive for archives: 1 file, 122590172 bytes (117 MiB) Extracting archive: /2-必备库.zip -- Path = /2-必备库.zip Type = zip Physical Size = 122590172 Everything is Ok Folders: 8 Files: 9 Size: 123340880 Compressed: 122590172 [02:42:50] ✅ 成功: 📦 解压 '2-必备库.zip' 到根目录并删除 [02:42:50] 📦 开始解压 /1-接4.0genshin.zip (3.2G) 到 /www ... [02:42:50] 🔧 执行: 📦 解压 '1-接4.0genshin.zip' 到 /www 并删除 (最长等待 900 秒) 7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21 p7zip Version 16.02 (locale=C,Utf16=off,HugeFiles=on,64 bits,32 CPUs Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz (50657),ASM,AES-NI) Scanning the drive for archives: 1 file, 3384784610 bytes (3228 MiB) Extracting archive: /1-接4.0genshin.zip
最新发布
12-03
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值