debian: บันทึกการใช้งาน stable

Topic: 
 

ใช้งานเดสก์ทอป sid มานานจนย่ามใจ ลองอัปเกรดเซิร์ฟเวอร์ที่ใช้เป็น testing แบบ dist-upgrade ผลปรากฎว่าเครื่องวินโดวส์ตระกูล 9x ติดต่อแม่ข่ายไม่ได้ ทำให้วุ่นวายหลายวัน

บันทึกข้อควรจำ

  1. ถ้าเป็นเครื่อง production ควรใช้ stable เท่านั้น
  2. หากต้องการซอฟต์แวร์ที่ทันสมัย แต่ยังเสถียรที่สุดเท่าที่เป็นไปได้ ให้พ่วง testing เข้ามาโดยยังไม่ต้องทิ้ง stable ตัวอย่างไฟล์ /etc/apt/sources.list คือ
    deb     http://ftp.debian.org/debian stable main contrib non-free
    deb-src http://ftp.debian.org/debian stable main contrib non-free
    deb     http://security.debian.org/ stable/updates main contrib non-free
    deb-src http://security.debian.org/ stable/updates main contrib non-free
    deb     http://ftp.debian.org/debian testing main contrib non-free
    deb-src http://ftp.debian.org/debian testing main contrib non-free
    deb     http://security.debian.org/ testing/updates main contrib non-free
    deb-src http://security.debian.org/ testing/updates main contrib non-free

    โดยมีข้อปฏิบัติคือ

    • ห้ามใช้ apt-get dist-upgrade เด็ดขาด
    • เวลาต้องการติดตั้งแพกเกจใหม่ ให้ติดตั้งเป็น stable เช่นจะติดตั้ง samba ใช้คำสั่งว่า
      $ sudo apt-get install samba/stable
      เสร็จแล้วจึง apt-get upgrade อีกทีนึง
 

Syndicate

Subscribe to Syndicate

Who's online

There are currently 0 users online.