避免Debian缓存溢出可从以下方面入手:
sudo apt-get clean
。sudo apt-get autoclean
。sudo apt-get autoremove
。/etc/apt/apt.conf.d/95local
文件,添加 APT::Cache-Limit "500";
(单位为MB,按需调整)。/etc/apt/apt.conf.d/95local
中添加 Acquire::http::Cache::Expire "7d";
。/etc/apt/sources.list
替换为本地镜像地址。df -h
检查磁盘空间,及时清理大文件。apt-get clean
)。执行前建议备份重要数据,避免误删影响系统稳定性。