有時會遇到部分VPS的debian系統無法通過 apt install命令來安裝程式,那麽解決辦法就是修改源
路徑:/etc/apt/sources.list
打開后粘貼如下内容:
deb http://deb.debian.org/debian/ buster main contrib non-free
deb-src http://deb.debian.org/debian/ buster main contrib non-free
deb http://deb.debian.org/debian/ buster-updates main contrib non-free
deb-src http://deb.debian.org/debian/ buster-updates main contrib non-free
deb http://security.debian.org/debian-security buster/updates main contrib non-free
deb-src http://security.debian.org/debian-security buster/updates main contrib non-free
最後保存退出后運行:
apt install -y sudo && sudo apt-get update -y && sudo apt-get upgrade -y