linux的源代码是公开的吗(linux的源)
linux系統裝好后怎么更新源?
Linux軟件源的設置方法
1 打開數據源配置文件
vi /etc/apt/sources.list
添加相關的數據源,可以選擇以下的數據源,不要寫太多,否則會影響更新速度。
之后使用apt-get update更新源列表
為防止非官方源中軟件包不全的問題,請在sources.list文件中尾部添加一組官方源。
#######################################
# 163
#######################################
deb http://mirrors.163.com/debian/ lenny main contrib non-free
deb-src http://mirrors.163.com/debian lenny main contrib non-free
deb http://mirrors.163.com/debian-security/ stable/updates main
deb-src http://mirrors.163.com/debian-security/ stable/updates main
#######################################
# official
#######################################
deb http://ftp.debian.org/debian/ lenny main contrib non-free
deb-src http://ftp.debian.org/debian/ lenny main contrib non-free
deb http://ftp.us.debian.org/debian/ lenny main contrib non-free
deb-src http://ftp.us.debian.org/debian/ lenny main contrib non-free
deb http://security.debian.org/ stable/updates main
deb-src http://security.debian.org/ stable/updates main
deb http://volatile.debian.org/debian-volatile stable/volatile main
deb-src http://volatile.debian.org/debian-volatile stable/volatile main
#######################################
# 臺灣及大陸教育網高校等
#######################################
deb http://ftp.tw.debian.org/debian/ lenny main contrib non-free
deb-src http://ftp.tw.debian.org/debian lenny main contrib non-free
deb http://mirrors.geekbone.org/debian/ lenny main contrib non-free
deb-src http://mirrors.geekbone.org/debian/ lenny main contrib non-free
deb http://mirror.dlut.edu.cn/debian/ lenny main contrib non-free
deb-src http://mirror.dlut.edu.cn/debian/ lenny main contrib non-free
deb http://debian.csie.ntu.edu.tw/debian/ lenny main contrib non-free
deb-src http://debian.csie.ntu.edu.tw/debian/ lenny main contrib non-free
### ustc debian-multimedia
deb http://debian.ustc.edu.cn/debian-multimedia/ stable main
deb-src http://debian.ustc.edu.cn/debian-multimedia/ stable main
### ustc debian-security
deb http://debian.ustc.edu.cn/debian-security/ stable/updates main non-free contrib
deb-src http://debian.ustc.edu.cn/debian-security/ stable/updates main non-free contrib
臺灣及大陸教育網高校等
#######################################
deb http://ftp.tw.debian.org/debian/ lenny main contrib non-free
deb-src http://ftp.tw.debian.org/debian lenny main contrib non-free
deb http://mirrors.geekbone.org/debian/ lenny main contrib non-free
deb-src http://mirrors.geekbone.org/debian/ lenny main contrib non-free
deb http://mirror.dlut.edu.cn/debian/ lenny main contrib non-free
deb-src http://mirror.dlut.edu.cn/debian/ lenny main contrib non-free
deb http://debian.csie.ntu.edu.tw/debian/ lenny main contrib non-free
deb-src http://debian.csie.ntu.edu.tw/debian/ lenny main contrib non-free
### ustc debian-multimedia
deb http://debian.ustc.edu.cn/debian-multimedia/ stable main
deb-src http://debian.ustc.edu.cn/debian-multimedia/ stable main
### ustc debian-security
deb http://debian.ustc.edu.cn/debian-security/ stable/updates main non-free contrib
deb-src http://debian.ustc.edu.cn/debian-security/ stable/updates main non-free contrib
如何設置Linux最快的更新源?
我一般是通過命令獲取的:
#sudo apt-get update
而/etc/apt/sources.list這個文件中是一個指示apt程序到哪里去獲取資源的資源列表文件。apt-get update之后的內容不會反應在這里。另外,apt-get update只是更新了apt的資源列表,沒有真正的對系統執行更新。如果需要,要使用apt-get upgrade來更新。
這個英文短文就是一些關于這個命令的說明,可以查看一下
Syncking with Repository After saving your sources.list file, we first want to update our local database so that it's in sync with Debian's sources:
apt-get updateThe output will show apt-get downloading the information from Debian's servers and then syncking its own database. Your output should look something like this:
linuxhelp.net:~# apt-get updateGet:1 ftp://ftp.debian.org testing/main Packages Get:2 http://security.debian.org stable/updates/main Packages Get:3 http://security.debian.org stable/updates/main Release Get:4 ftp://ftp.debian.org testing/main Release Get:5ftp://ftp.debian.org testing/main Sources Get:6 ftp://ftp.debian.org testing/main Release Fetched 4744kB in 2m40s (29.5kB/s)Reading Package Lists... Donelinuxhelp.net:~#
總結
以上是生活随笔為你收集整理的linux的源代码是公开的吗(linux的源)的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: mysqlbinlog: [ERROR]
- 下一篇: 商标权备案申请查询(商标权备案查询)