请大家帮助我修复更新 Ubuntu 12.04 桌面时出现的问题:
Get:38 http://us.archive.ubuntu.com precise/universe Translation-en [3,341 kB]
Fetched 24.5 MB in 7min 9s (57.1 kB/s)
W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/precise/main/i18n/Index No Hash entry in Release file /var/lib/apt/lists/partial/extras.ubuntu.com_ubuntu_dists_precise_main_i18n_Index
E: Some index files failed to download. They have been ignored, or old ones used instead.
答案1
第一的,
确保您的互联网连接良好且稳定,尽量坚持使用受信任的服务器(如果您最近更改了 apt-get 服务器,请改回主服务器之一)。
然后,
移动文件提示错误:
cd /var/lib/apt/lists/partial/
sudo mv extras.ubuntu.com_ubuntu_dists_precise_main_i18n_Index main_copy
更新 gpg 密钥:
gpg --keyserver keyserver.ubuntu.com --recv 40976EAF437D05B5
重建缓存:
cd /var/lib/apt
sudo mv lists lists.old
sudo mkdir -p lists/partial
最后,
在再次尝试升级之前,请先更新、清理、自动清理和自动删除以确保万无一失:
sudo apt-get update && sudo apt-get clean && sudo apt-get autoremove && sudo apt-get autoclean && sudo apt-get upgrade
如果这确实是您最初的目标,那么您可以sudo apt-get upgrade
用 来替换。sudo apt-get dist-upgrade
如果您遇到任何错误,请发布。
来源:
https://unix.stackexchange.com/questions/82707/failing-on-apt-get-update
http://ubuntuforums.org/showthread.php?t=1983355
和