我想将笔记本电脑上的 Ubuntu 从当前版本 11.10 更新到 12.10,当我单击更新管理器时,我得到一个部分更新 GUI,如果我单击取消,我得到更新 GUI,它有三个按钮:检查、安装更新和升级。升级按钮仅升级到 12.04.1.LTS,当我按下检查时,它会检查并给出此错误:
"W:Failed to fetch h t t p://lb.archive.ubuntu.com/ubuntu/dists/precise/main/i18n/Index No Hash entry in Release file /var/lib/apt/lists/partial/lb.archive.ubuntu.com_ubuntu_dists_precise_main_i18n_Index
, W:Failed to fetch h t t p://lb.archive.ubuntu.com/ubuntu/dists/precise/multiverse/i18n/Index No Hash entry in Release file /var/lib/apt/lists/partial/lb.archive.ubuntu.com_ubuntu_dists_precise_multiverse_i18n_Index
, W:Failed to fetch http://lb.archive.ubuntu.com/ubuntu/dists/precise/restricted/i18n/Index No Hash entry in Release file /var/lib/apt/lists/partial/lb.archive.ubuntu.com_ubuntu_dists_precise_restricted_i18n_Index
, W:Failed to fetch http://lb.archive.ubuntu.com/ubuntu/dists/precise/universe/i18n/Index No Hash entry in Release file /var/lib/apt/lists/partial/lb.archive.ubuntu.com_ubuntu_dists_precise_universe_i18n_Index
, E:Some index files failed to download. They have been ignored, or old ones used instead."
答案1
sudo rm -rf /var/lib/apt/lists/partial/lb.archive.ubuntu.com_ubuntu_dists_precise_universe_i18n_Index
sudo rm -rf /var/lib/apt/lists/partial/lb.archive.ubuntu.com_ubuntu_dists_precise_restrivted_i18n_Index
sudo rm -rf /var/lib/apt/lists/partial/lb.archive.ubuntu.com_ubuntu_dists_precise_multiverse_i18n_Index
sudo apt-get update
这将删除缓存的 apt 列表。然后再次更新它们以获取最新版本。