[問題] armhf上的apt-get失敗

作者: jiqian (JIM)   2014-07-24 19:04:16
各位Linux先進們好,
我現在要建構一個嵌入式系統,
因此我先在原本的ubuntu12.04上安裝qemu-arm-static以chroot的方式
建立一個ubuntu-core-12.04-core-armhf
現在遇到的問題點是, 我使用apt-get update會發生以下錯誤
Err http://ports.ubuntu.com precise/restricted Sources 404 Not Found

100% [50 Translation-en gzip 0 B] [Waiting for headers]E: Unable to parse
package file /var/lib/apt/lists/partial/ports.ubuntu.com_ubuntu-ports_dists_precise_multiverse_i18n_Translation-en.decomp (1)
100% [55 Translation-en gzip 0 B]
96.5 kB/s 0sE : Unable to parse package file
/var/lib/apt/lists/partial/ports.ubuntu.com_ubuntu-ports_dists_precise_main_i18n_Translation-en.decomp (1)

W: Failed to fetch
gzip:/var/lib/apt/lists/partial/ports.ubuntu.com_ubuntu-ports_dists_precise_ma
in_source_Sources Hash Sum mismatch
W: Failed to fetch
http://ports.ubuntu.com/ubuntu-ports/dists/precise/restricted/source/Sources
404 Not Found
W: Failed to fetch
gzip:/var/lib/apt/lists/partial/ports.ubuntu.com_ubuntu-ports_dists_precise_un
iverse_source_Sources Hash Sum mismatch
後面還有, 但都大概是 Hash Sum mismatch, Encountered a section with no Package: header
之類的
然後不管它,做install的話會發生
Reading package lists... Error!
E: Encountered a section with no Package: header
E: Problem with MergeList
/var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_precise_restricted_i18n_Translation-en
E: The package lists or status file could not be parsed or opened.
而在/var/lib/apt/lists/partial則有一堆.decomp.FAILED的檔案
ports.ubuntu.com_ubuntu-ports_dists_precise-security_main_binary-armel_Packages
ports.ubuntu.com_ubuntu-ports_dists_precise-security_main_binary-armel_Packages.decomp.FAILED
這個問題已經試了蠻久了, 找不太到方法, 因此尋求版上高手幫我找找看盲點在哪?
謝謝!!

Links booklink

Contact Us: admin [ a t ] ucptt.com