升級當前系統軟件,保持Debian9最新版本:
apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y
先備份一下,再將/etc/apt/sources.list裡所有“stretch”替換為“buster”:
cp /etc/apt/sources.list /etc/apt/sources.list.orig
sed -i ‘s/stretch/buster/g’ /etc/apt/sources.list
sed -i ‘s/stretch/buster/g’ /etc/apt/sources.list.d/*
再更新升級一遍當前系統:
apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y
最後重啟機器:
reboot
檢查當前系統版本:
lsb_release -a
清理老版本軟件:
apt-get autoremove
本文出自快速备案,转载时请注明出处及相应链接。
本文永久链接: https://www.175ku.com/40786.html