Jump to content

Debian更換源


Jack

Recommended Posts

-------------------------------------------
Debian更換源
-------------------------------------------

修改源,也可以看到主機商是使用哪個源

 

--------------------------------------
有些主機商是寫在這裡

vi  /etc/apt/sources.list

 

--------------------------------------
有的主機商是放在 /sources.list.d/ 目錄下,檔名未知,自己找

cd /etc/apt/sources.list.d/

vi xxxxxxxxxxxxxx.list

 

--------------------------------------
然後修改

例如 debian官方站

deb http://deb.debian.org/debian/ bookworm main non-free-firmware
deb-src http://deb.debian.org/debian/ bookworm main non-free-firmware
deb http://security.debian.org/debian-security bookworm-security main non-free-firmware
deb-src http://security.debian.org/debian-security bookworm-security main non-free-firmware
deb http://deb.debian.org/debian/ bookworm-updates main non-free-firmware
deb-src http://deb.debian.org/debian/ bookworm-updates main non-free-firmware

 

 


ESC儲存並離開
:wq

 


重開機
reboot

 


更新
apt-get update

apt-get upgrade

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...