ฉันรู้ว่ามี GUI ใน Ubuntu Software & Updatesเพื่อเปิดใช้งานช่องทางอัพเดต
- การปรับปรุง
- เสนอ
- backports
- ความปลอดภัย
ดังที่แสดงในภาพหน้าจอนี้:
ฉันกำลังมองหาวิธีที่ง่ายในการทำสิ่งนี้จากภายในเทอร์มินัลโดยใช้คำสั่งเช่น
sudo apt-add-update enable updates
sudo apt-add-update enable proposed
sudo apt-add-update enable backports
sudo apt-add-update enable security
sudo apt-add-update disable updates
sudo apt-add-update disable proposed
sudo apt-add-update disable backports
sudo apt-add-update disable security
และสิ่งเพิ่มเติม
sudo apt-add-update enable default
sudo apt-add-update disable default
ตัวอย่างบางส่วนเพื่อความเข้าใจที่ดีขึ้น
ที่ว่างเปล่า
sources.listcat /etc/apt/sources.list<empty>sudo apt-add-update enable security<empty>
ที่เก็บที่เปิดใช้งานหนึ่งรายการ (
main)cat /etc/apt/sources.listdeb http://archive.ubuntu.com/ubuntu wily mainsudo apt-add-update enable securitydeb http://archive.ubuntu.com/ubuntu wily main deb http://archive.ubuntu.com/ubuntu wily-security main
ที่เก็บที่เปิดใช้งานสองแห่งขึ้นไปในหนึ่งหรือสองบรรทัด
cat /etc/apt/sources.listdeb http://archive.ubuntu.com/ubuntu wily main universeหรือ
deb http://archive.ubuntu.com/ubuntu wily main deb http://archive.ubuntu.com/ubuntu wily universesudo apt-add-update enable securitydeb http://archive.ubuntu.com/ubuntu wily main universe deb http://archive.ubuntu.com/ubuntu wily-security main universeหรือ
deb http://archive.ubuntu.com/ubuntu wily main deb http://archive.ubuntu.com/ubuntu wily-security main deb http://archive.ubuntu.com/ubuntu wily universe deb http://archive.ubuntu.com/ubuntu wily-security universe
ด้วย
deb-srcรายการcat /etc/apt/sources.listdeb http://archive.ubuntu.com/ubuntu wily main universe deb-src http://archive.ubuntu.com/ubuntu wily main universesudo apt-add-update enable securitydeb http://archive.ubuntu.com/ubuntu wily main universe deb-src http://archive.ubuntu.com/ubuntu wily main universe deb http://archive.ubuntu.com/ubuntu wily-security main universe deb-src http://archive.ubuntu.com/ubuntu wily-security main universe
ด้วย
deb-srcรายการที่ไม่ได้ใช้งานcat /etc/apt/sources.listdeb http://archive.ubuntu.com/ubuntu wily main universe # deb-src http://archive.ubuntu.com/ubuntu wily main universesudo apt-add-update enable securitydeb http://archive.ubuntu.com/ubuntu wily main universe # deb-src http://archive.ubuntu.com/ubuntu wily main universe deb http://archive.ubuntu.com/ubuntu wily-security main universe
defaultสิ่งcat /etc/apt/sources.listdeb http://archive.ubuntu.com/ubuntu wily-security universesudo apt-add-update enable defaultdeb http://archive.ubuntu.com/ubuntu wily universe deb http://archive.ubuntu.com/ubuntu wily-security universe
รายการเดียวเท่านั้นและการ
disableกระทำcat /etc/apt/sources.listdeb http://archive.ubuntu.com/ubuntu wily-security universesudo apt-add-update disable security<empty>
แตกต่างกันหรือเซิร์ฟเวอร์เดียวกันสำหรับที่แตกต่างกันหรือ samerepositories เคารพแต่ละเซิร์ฟเวอร์
cat /etc/apt/sources.listdeb http://archive.ubuntu.com/ubuntu wily universe deb http://us.archive.ubuntu.com/ubuntu wily mainsudo apt-add-update enable securitydeb http://archive.ubuntu.com/ubuntu wily universe deb http://us.archive.ubuntu.com/ubuntu wily main deb http://archive.ubuntu.com/ubuntu wily-security universe deb http://us.archive.ubuntu.com/ubuntu wily-security main
Ubuntu รุ่นต่าง ๆ สำหรับที่เก็บข้อมูลที่แตกต่างกันเคารพแต่ละรุ่น
cat /etc/apt/sources.listdeb http://archive.ubuntu.com/ubuntu wily main universe deb http://archive.ubuntu.com/ubuntu trusty mainsudo apt-add-update enable securitydeb http://archive.ubuntu.com/ubuntu wily main universe deb http://archive.ubuntu.com/ubuntu trusty main deb http://archive.ubuntu.com/ubuntu wily-security main universe deb http://archive.ubuntu.com/ubuntu trusty-security main
สัญญาซื้อขายไฟฟ้าหรือแหล่งแพคเกจอื่น ๆ (ไม่ยอมรับ) ใน
sources.list?Ignore!
อย่าเปลี่ยนโปรโตคอลเช่น
https,http,tor...



