แก้ไขปัญหาอัพเดท Ubuntu 14.04 ไม่ได้

Ubuntu 14.04 บนเครื่องผมมันเกิดอัพเดทไม่ได้ขึ้นมา… จะบอกว่า อัพเดทไม่ได้มาเป็นเดือนแล้วล่ะ T-T

ที่ด้านบนหน้าจอมันจะขึ้นเตือนให้อัพเดท Ubuntu ตลอดเลย พอกด check updates แต่ละทีก็ไม่ได้ทุกที มันขึ้นแบบนี้อ่ะ

Failed to download repository information
Failed to download repository information

แล้วลองเปลี่ยน Server ที่ไว้อัพเดทดู ก็ไม่ได้ซักที

Software and Updates
Software and Updates

จริงๆ มันมีข้อสังเกตอยู่ที่ update manager มันหา package ไม่เจอ

W: Failed to fetch http://archive.canonical.com/ubuntu/dists/trusty/partner/binary-amd64/Packages  404  Not Found

W: Failed to fetch http://archive.canonical.com/ubuntu/dists/trusty/partner/binary-i386/Packages  404  Not Found

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/main/binary-amd64/Packages  404  Not Found

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/universe/binary-amd64/Packages  404  Not Found

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/main/binary-i386/Packages  404  Not Found

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/universe/binary-i386/Packages  404  Not Found

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/main/binary-amd64/Packages  404  Not Found

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/universe/binary-amd64/Packages  404  Not Found

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/main/binary-i386/Packages  404  Not Found

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/universe/binary-i386/Packages  404  Not Found

W: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/main/binary-amd64/Packages  404  Not Found

W: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/main/binary-i386/Packages  404  Not Found

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-updates/main/binary-amd64/Packages  404  Not Found

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-updates/universe/binary-amd64/Packages  404  Not Found

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-updates/main/binary-i386/Packages  404  Not Found

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-updates/universe/binary-i386/Packages  404  Not Found

W: Failed to fetch http://dl.google.com/linux/talkplugin/deb/dists/stable/main/binary-amd64/Packages  404  Not Found

W: Failed to fetch http://dl.google.com/linux/talkplugin/deb/dists/stable/main/binary-i386/Packages  404  Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.

มันจะไปหาที่ http://archive.canonical.com/ubuntu/dists/trusty/partner/binary-amd64/Packages ตลอด ซึ่งลองเข้าบน web browser ก็ไม่มีจริงๆน่ะแหละ แต่พอเข้าไปที่ http://archive.canonical.com/ubuntu/dists/trusty/partner/binary-amd64/ ก็จะเจอไฟล์ชื่อ Packages.gz ซึ่งก็สงสัยอยู่เหมือนกันว่าทำไมมันไม่ดาวน์โหลดกับไฟล์นี้นะ


หลังจากหาอยู่นาน ถึงขนาดไปถามบน ubuntuclub ด้วยนะ  … ไม่มีใครแก้ปัญหาได้หรอก

ไปเจอ AptGet/Howto แล้วดูในส่วน APT configuration file method จะเจอไฟล์ /etc/apt/apt.conf ก็เลยลองหาดูครับ

แล้วก็เจอ!! ไปตั้ง proxy ไว้จริงๆน่ะแหละ ตามข้างล่างนี้เลย

Acquire::http::proxy "http://103.246.18.11:80/";

ทีนี้ก็คอมเม้นท์ออกสิครับ แล้วลอง sudo apt-get update ใหม่อีกที แล้วก็….. ติดแล้วครับ ! แก้ได้แล้ววว!!

จบ…

Ubuntu update: BADSIG

หลายๆครั้งที่ ใช้ update manager จะขึ้น error เช่น

W: GPG error: http://archive.canonical.com intrepid Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key

W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used.GPG error: http://wine.budgetdedicated.com intrepid Release: The following signatures were invalid: BADSIG 58403026387EE263 Scott Ritchie

W: GPG error: http://security.ubuntu.com intrepid-security Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key

W: GPG error: http://packages.medibuntu.org intrepid Release: The following signatures were invalid: BADSIG 2EBC26B60C5A2783 Medibuntu Packaging Team

W: GPG error: http://us.archive.ubuntu.com intrepid Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key

W: GPG error: http://us.archive.ubuntu.com intrepid-updates Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key

W: GPG error: http://us.archive.ubuntu.com intrepid-backports Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key

W: Failed to fetch http://wine.budgetdedicated.com/apt/dists/intrepid/Release

อ่านเพิ่มเติม “Ubuntu update: BADSIG”