ฉันจะแก้ไข“ ไม่สามารถดึงข้อมูลที่เก็บถาวรบางอย่างอาจเรียกใช้อัปเดต apt-get หรือลองกับข้อผิดพลาด - หายไป”


14

ฉันพยายามติดตั้ง phpMyAdmin โดยใช้sudo apt-get install phpmyadminแต่พบข้อผิดพลาดนี้

Err http://gb.archive.ubuntu.com/ubuntu/ precise-updates/main mysql-common all 5.5.34-0ubuntu0.12.04.1
  404  Not Found [IP: 194.169.254.10 80]
Err http://security.ubuntu.com/ubuntu/ precise-security/main mysql-common all 5.5.34-0ubuntu0.12.04.1
  404  Not Found [IP: 91.189.91.15 80]
Err http://security.ubuntu.com/ubuntu/ precise-security/main libmysqlclient18 i386 5.5.34-0ubuntu0.12.04.1
  404  Not Found [IP: 91.189.91.15 80]
Err http://security.ubuntu.com/ubuntu/ precise-security/main mysql-client-core-5.5 i386 5.5.34-0ubuntu0.12.04.1
  404  Not Found [IP: 91.189.91.15 80]
Err http://security.ubuntu.com/ubuntu/ precise-security/main mysql-client-5.5 i386 5.5.34-0ubuntu0.12.04.1
  404  Not Found [IP: 91.189.91.15 80]
Err http://security.ubuntu.com/ubuntu/ precise-security/main mysql-client all 5.5.34-0ubuntu0.12.04.1
  404  Not Found [IP: 91.189.91.15 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/m/mysql-5.5/mysql-common_5.5.34-0ubuntu0.12.04.1_all.deb  404  Not Found [IP: 91.189.91.15 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/m/mysql-5.5/libmysqlclient18_5.5.34-0ubuntu0.12.04.1_i386.deb  404  Not Found [IP: 91.189.91.15 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/m/mysql-5.5/mysql-client-core-5.5_5.5.34-0ubuntu0.12.04.1_i386.deb  404  Not Found [IP: 91.189.91.15 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/m/mysql-5.5/mysql-client-5.5_5.5.34-0ubuntu0.12.04.1_i386.deb  404  Not Found [IP: 91.189.91.15 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/m/mysql-5.5/mysql-client_5.5.34-0ubuntu0.12.04.1_all.deb  404  Not Found [IP: 91.189.91.15 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

สิ่งที่อาจเป็นปัญหาที่นี่? ฉันจะแก้มันได้อย่างไร


1
ไฟล์ '/etc/apt/source.list' ของฉันไม่มีบรรทัดที่มี ' security.ubuntu.com/ubuntu ' ฉันควรทำอย่างไร บรรทัดนั้นแนะนำอะไร

คำตอบ:


22

ลองใช้ดู

sudo apt-get update

จากนั้นลองอีกครั้ง


ฉันได้ลองแล้วยังมีปัญหาอยู่หลายครั้ง ฉันไม่สามารถติดตั้ง Filezilla บนระบบ Ubuntu ของฉัน
Archana Sharma

10

หากsudo apt-get updateยังใช้งานไม่ได้ให้ทำตามขั้นตอนด้านล่าง: -

  1. เปิด/etc/apt/sources.listไฟล์
  2. ตรวจสอบคำหลังจากhttp://security.ubuntu.com/ubuntu/ในsources.listไฟล์ให้คำเป็นxyz
  3. ไปที่ที่อยู่http://security.ubuntu.com/ubuntu/แล้วคลิก dists ตรวจสอบว่าxyzมีอยู่ที่เส้นทางนี้หรือไม่ หากไม่มีอยู่ให้แทนที่xyzด้วยองค์ประกอบที่มีอยู่ใน 'dists' เช่น: - saucy, lucid, trusty เป็นต้น
  4. ตอนนี้เรียกใช้sudo apt-get updateคำสั่ง

+1 แม้ว่าหนึ่งหมายเหตุ: หากสิ่งนี้เกิดขึ้นหมายความว่า linux ของคุณไม่ได้รับการสนับสนุนอีกต่อไปซึ่งในกรณีนี้อาจเปลี่ยนเป็นเวอร์ชันที่ใหม่กว่าได้
ntg

นี่เป็นการตอบสนองที่ดีกว่าการยอมรับ ดูความคิดเห็นของ ntg tho
Dredok

นี่คือคำตอบที่ดี ฉันกำลังใช้งาน 18.04 และรายชื่อแหล่งข้อมูลของฉันคือ archive.ubuntu.com เปลี่ยนเป็น security.ubuntu.com ตอนนี้มันทำงานได้อย่างสมบูรณ์แบบ
อดัม

2

มีคำสั่งให้ชี้แหล่ง URL ในการเผยแพร่รุ่นเก่า

คำอธิบาย goog ใน github gist นี้:

https://gist.github.com/dergachev/f5da514802fcbbb441a1


1
คุณไม่จำเป็นต้องไปที่ Github สำหรับการที่เรามีหนึ่งขวาที่นี่: askubuntu.com/q/91815/158442 ถึงกระนั้นก็ยังไม่สามารถใช้ได้ที่นี่เนื่องจาก OP ใช้ 12.04 และ 12.04 ยังคงรองรับอยู่
muru

0

ลองเปลี่ยนเป็นเซิร์ฟเวอร์หลักภายใต้ซอฟต์แวร์และอัปเดตในการตั้งค่าระบบ จากนั้นใช้ sudo apt-get update แล้วลองติดตั้ง ฉันมีปัญหาเดียวกันขณะติดตั้งตัวจัดการแพคเกจ synaptic


ก่อนที่คุณจะลองเปลี่ยนเป็นเซิร์ฟเวอร์หลักให้ไปที่ URL ที่ให้404 Not Foundข้อความในเว็บเบราว์เซอร์เพื่อตรวจสอบว่ามันไม่ทำงานหรือไม่
karel

0

ลองเปลี่ยนhttp://security.ubuntu.com/ubuntuไปhttp://old-releases.ubuntu.com/ubuntuใน/etc/apt/sources.listแล้วเรียกใช้apt-get update

(คุณสามารถตรวจสอบว่ามี distro เฉพาะของคุณโดยเข้าไปที่http://old-releases.ubuntu.com/ubuntu/ในเบราว์เซอร์ของคุณแล้วเลือก / dists แต่ถ้ามันไม่ได้อยู่ใน security.ubuntu.com ก็ควร เป็นรุ่นเก่า

โดยการใช้ไซต์ของเรา หมายความว่าคุณได้อ่านและทำความเข้าใจนโยบายคุกกี้และนโยบายความเป็นส่วนตัวของเราแล้ว
Licensed under cc by-sa 3.0 with attribution required.