在 Debian 系统中,“清理启动项”通常指以下几类操作之一:
下面按常见场景说明。
Debian 默认使用 systemd。
systemctl list-unit-files --type=service | grep enabled
sudo systemctl disable 服务名
例如:
sudo systemctl disable bluetooth
sudo systemctl disable --now 服务名
sudo systemctl enable 服务名
dpkg --list | grep linux-image
sudo apt purge linux-image-旧版本
sudo apt purge linux-headers-旧版本
sudo update-grub
sudo nano /etc/default/grub
修改后执行:
sudo update-grub
~/.config/autostart/
删除对应 .desktop 文件:
rm ~/.config/autostart/xxx.desktop
ls /etc/init.d/
移除自启:
sudo update-rc.d 服务名 remove
bluetooth(无蓝牙)cups(无打印机)avahi-daemon(无局域网发现)snapd(不用 Snap)systemctl list-unit-files~/.config/autostart/如果你愿意,可以告诉我:
我可以给你更精确的操作命令。