修改Debian默認程式源

Linux · 2023-12-24 · 197 人浏览

有時會遇到部分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
Linux
本站立足于美利堅合衆國,請讀者自覺遵守當地法律!如有違規,本站不承擔任何法律責任! This site is based in the United States of America, readers are requested to abide by local laws! If there are any violations, this site does not bear any legal responsibility! Theme Jasmine by Kent Liao