[problem help] 系统更新,/boot/snapshot 目录挤满了boot分区
Tofloor
poster avatar
177******05
deepin
2024-07-29 09:22
Author

/boot路径默认分的1.5G,以前没发现,最近只要已更新,/boot/snapshot目录就把/boot写满了,今天直接无法更新了

命令行都无法

sudo apt update && sudo apt dist-upgrade -y
命中:1 https://mirrors.aliyun.com/docker-ce/linux/debian bookworm InRelease
命中:2 https://proposed-packages.deepin.com/beige-testing unstable InRelease                                             
命中:3 https://apt.enpass.io stable InRelease                                                                            
命中:5 https://community-packages.deepin.com/driver-23 driver InRelease                                                  
命中:4 https://community-packages.deepin.com/beige beige InRelease 
命中:6 https://app-store-files.uniontech.com/240726180415983/appstorev23 beige InRelease
正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
正在读取状态信息... 完成             
有 2 个软件包可以升级。请执行 ‘apt list --upgradable’ 来查看它们。
正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
正在读取状态信息... 完成             
正在计算更新... 完成
下列软件包将被【卸载】:
  linux-headers-6.6.36-amd64-desktop-hwe linux-image-6.6.36-amd64-desktop-hwe
下列软件包的版本将保持不变:
  ffmpeg4.szbt
下列软件包将被升级:
  deepin-wine-runtime
升级了 1 个软件包,新安装了 0 个软件包,要卸载 2 个软件包,有 1 个软件包未被升级。
有 3 个软件包没有被完全安装或卸载。
需要下载 140 MB 的归档。
解压缩后将会空出 581 MB 的空间。
获取:1 https://com-store-packages.uniontech.com/appstorev23 beige/appstore amd64 deepin-wine-runtime amd64 0.1.9 [140 MB]
已下载 140 MB,耗时 7秒 (19.6 MB/s)                                                                                      
(正在读取数据库 ... 系统当前共安装有 366440 个文件和目录。)
正在卸载 linux-headers-6.6.36-amd64-desktop-hwe (23.01.00.29) ...
正在卸载 linux-image-6.6.36-amd64-desktop-hwe (23.01.00.29) ...
dkms: removing: deepin-anything 0.0 (6.6.36-amd64-desktop-hwe) (x86_64)
Module deepin-anything-0.0 for kernel 6.6.36-amd64-desktop-hwe (x86_64).
Before uninstall, this module version was ACTIVE on this kernel.

vfs_monitor.ko:
 - Uninstallation
   - Deleting from: /lib/modules/6.6.36-amd64-desktop-hwe/updates//
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.
depmod...
dkms: removing: nvidia-current 535.161.08 (6.6.36-amd64-desktop-hwe) (x86_64)
Module nvidia-current-535.161.08 for kernel 6.6.36-amd64-desktop-hwe (x86_64).
Before uninstall, this module version was ACTIVE on this kernel.

nvidia-current.ko:
 - Uninstallation
   - Deleting from: /lib/modules/6.6.36-amd64-desktop-hwe/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

nvidia-current-modeset.ko:
 - Uninstallation
   - Deleting from: /lib/modules/6.6.36-amd64-desktop-hwe/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

nvidia-current-drm.ko:
 - Uninstallation
   - Deleting from: /lib/modules/6.6.36-amd64-desktop-hwe/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

nvidia-current-uvm.ko:
 - Uninstallation
   - Deleting from: /lib/modules/6.6.36-amd64-desktop-hwe/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

nvidia-current-peermem.ko:
 - Uninstallation
   - Deleting from: /lib/modules/6.6.36-amd64-desktop-hwe/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.
depmod...
update-initramfs: Deleting /boot/initrd.img-6.6.36-amd64-desktop-hwe
Generating grub configuration file ...
Found theme: /boot/grub/themes/deepin/theme.txt
Found background image: /boot/grub/themes/deepin/background.jpg
Found linux image: /boot/vmlinuz-6.6.40-amd64-desktop-hwe
Found initrd image: /boot/initrd.img-6.6.40-amd64-desktop-hwe
Found linux image: /boot/vmlinuz-6.6.38-amd64-desktop-hwe
Found initrd image: /boot/initrd.img-6.6.38-amd64-desktop-hwe
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Adding boot menu entry for UEFI Firmware Settings ...
/etc/grub.d/99_deepin-boot-kit: 第 45 行:echo: 写入错误:设备上没有空间
run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code 1
dpkg: 处理软件包 linux-image-6.6.36-amd64-desktop-hwe (--remove)时出错:
 已安装 linux-image-6.6.36-amd64-desktop-hwe 软件包 post-removal 脚本 子进程返回错误状态 1
dpkg: 出现过多错误,正在停止
在处理时有错误发生:
 linux-image-6.6.36-amd64-desktop-hwe
由于出现了太多错误,处理过程被中止了。
E: Sub-process /usr/bin/dpkg returned an error code (1)
long@long-PC:~$ df -h | grep /boot
/dev/nvme0n1p2  1.5G  1.5G     0  100% /boot

Reply Favorite View the author
All Replies
把一切操作变成GUI
deepin
Backbone of ecological co-construction group
2024-07-29 09:43
#1

更新时别选择备份

Reply View the author
177******05
deepin
2024-07-29 09:47
#2
把一切操作变成GUI

更新时别选择备份

我这是拿命令更新的啊,命令更新本身就不备份的撒

Reply View the author
花雨落逝
Moderator
2024-07-29 10:52
#3
177******05

我这是拿命令更新的啊,命令更新本身就不备份的撒

但是我感觉像是N卡驱动的问题呢为什么()

Reply View the author
uos008
deepin
2024-07-29 16:54
#4

安装新内核的时候没有卸载旧的内核,如果只想保留当前的内核可以试试:

#参考自openAI.

current_kernel=$(uname -r | sed 's/-.//')
dpkg -l 'linux-image-
' | awk '{ if ($1 == "ii") print $2 }' | grep -v $current_kernel | xargs sudo apt-get -y purge

sudo apt autoremove

慎用,会清除所有非当前内核。

Reply View the author
177******05
deepin
2024-07-30 16:32
#5
花雨落逝

但是我感觉像是N卡驱动的问题呢为什么()

驱动都是官方自带的,我没手动调整过

Reply View the author