我已经在计算机上安装了Ubuntu 12.04。一切都很好,无需更新。安装后,它显示了大约200 MB的更新要下载。从那时起,我一直在尝试安装所有更新。现在已部分完成,其中一些软件(firefox,VLC)已更新。它仍然显示要下载的39.3 MB更新,并且一次又一次失败。每次我尝试安装这些39.3 MB的更新时,它都表明它无法连接到Internet,但是我的连接没有问题(网络指示器表明它已连接,并且我可以浏览和下载任何内容)。它给了我以下信息:
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/l/linux/linux-image-3.2.0-43-generic-pae_3.2.0-43.68_i386.deb Size mismatch
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/l/linux/linux-headers-3.2.0-43-generic-pae_3.2.0-43.68_i386.deb Size mismatch
我认为这是来源列表的问题。所以我给了以下命令
sudo rm -vf /var/lib/apt/lists/partial/*
以前,我在另一台计算机上遇到过类似的问题。当时,这种解决方案对我有用,但是现在我仍然面临这个问题。任何人都可以帮助我解决这个问题。
更新资料
这是输出 sudo apt-get update
Hit http://dl.google.com stable Release.gpg
Hit http://archive.canonical.com precise Release.gpg
Get:1 http://extras.ubuntu.com precise Release.gpg [72 B]
Hit http://dl.google.com stable Release
Hit http://us.archive.ubuntu.com precise Release.gpg
Hit http://archive.canonical.com precise Release
Hit http://dl.google.com stable/main i386 Packages
Hit http://extras.ubuntu.com precise Release
Ign http://dl.google.com stable/main TranslationIndex
Get:2 http://us.archive.ubuntu.com precise-updates Release.gpg [198 B]
Hit http://archive.canonical.com precise/partner i386 Packages
Hit http://extras.ubuntu.com precise/main Sources
Hit http://us.archive.ubuntu.com precise-backports Release.gpg
Ign http://archive.canonical.com precise/partner TranslationIndex
Hit http://extras.ubuntu.com precise/main i386 Packages
Hit http://us.archive.ubuntu.com precise-security Release.gpg
Ign http://extras.ubuntu.com precise/main TranslationIndex
Hit http://us.archive.ubuntu.com precise Release
Ign http://dl.google.com stable/main Translation-en_US
Get:3 http://us.archive.ubuntu.com precise-updates Release [49.6 kB]
Ign http://dl.google.com stable/main Translation-en
Get:4 http://us.archive.ubuntu.com precise-updates Release [49.6 kB]
Ign http://archive.canonical.com precise/partner Translation-en_US
Ign http://archive.canonical.com precise/partner Translation-en
Hit http://us.archive.ubuntu.com precise-backports Release
Hit http://us.archive.ubuntu.com precise-security Release
Ign http://extras.ubuntu.com precise/main Translation-en_US
Hit http://us.archive.ubuntu.com precise/main Sources
Ign http://extras.ubuntu.com precise/main Translation-en
Hit http://us.archive.ubuntu.com precise/restricted Sources
Hit http://us.archive.ubuntu.com precise/universe Sources
Hit http://us.archive.ubuntu.com precise/multiverse Sources
Hit http://us.archive.ubuntu.com precise/main i386 Packages
Hit http://us.archive.ubuntu.com precise/restricted i386 Packages
Hit http://us.archive.ubuntu.com precise/universe i386 Packages
Hit http://us.archive.ubuntu.com precise/multiverse i386 Packages
Hit http://us.archive.ubuntu.com precise/main TranslationIndex
Hit http://us.archive.ubuntu.com precise/multiverse TranslationIndex
Hit http://us.archive.ubuntu.com precise/restricted TranslationIndex
Hit http://us.archive.ubuntu.com precise/universe TranslationIndex
Get:5 http://us.archive.ubuntu.com precise-updates/main Sources [383 kB]
Get:6 http://us.archive.ubuntu.com precise-updates/main Sources [383 kB]
Get:7 http://us.archive.ubuntu.com precise-updates/restricted Sources [5,467 B]
Get:8 http://us.archive.ubuntu.com precise-updates/universe Sources [87.1 kB]
Get:9 http://us.archive.ubuntu.com precise-updates/universe Sources [87.1 kB]
Get:10 http://us.archive.ubuntu.com precise-updates/universe Sources [87.1 kB]
Get:11 http://us.archive.ubuntu.com precise-updates/multiverse Sources [6,582 B]
Get:12 http://us.archive.ubuntu.com precise-updates/main i386 Packages [625 kB]
Get:13 http://us.archive.ubuntu.com precise-updates/restricted i386 Packages [10.0 kB]
Get:14 http://us.archive.ubuntu.com precise-updates/universe i386 Packages [203 kB]
Get:15 http://us.archive.ubuntu.com precise-updates/multiverse i386 Packages [13.8 kB]
Get:16 http://us.archive.ubuntu.com precise-updates/multiverse i386 Packages [13.8 kB]
100% [16 Packages bzip2 0 B] [Connecting to us.archive.ubuntu.com (91.189.91.14
bzip2: Compressed file ends unexpectedly;
perhaps it is corrupted? *Possible* reason follows.
bzip2: Inappropriate ioctl for device
Input file = (stdin), output file = (stdout)
It is possible that the compressed file(s) have become corrupted.
You can use the -tvv option to test integrity of such files.
You can use the `bzip2recover' program to attempt to recover
data from undamaged sections of corrupted files.
Hit http://us.archive.ubuntu.com precise-updates/main TranslationIndex
Hit http://us.archive.ubuntu.com precise-updates/multiverse TranslationIndex
Hit http://us.archive.ubuntu.com precise-updates/restricted TranslationIndex
Hit http://us.archive.ubuntu.com precise-updates/universe TranslationIndex
Hit http://us.archive.ubuntu.com precise-backports/main Sources
Hit http://us.archive.ubuntu.com precise-backports/restricted Sources
Hit http://us.archive.ubuntu.com precise-backports/universe Sources
Hit http://us.archive.ubuntu.com precise-backports/multiverse Sources
Hit http://us.archive.ubuntu.com precise-backports/main i386 Packages
Hit http://us.archive.ubuntu.com precise-backports/restricted i386 Packages
Hit http://us.archive.ubuntu.com precise-backports/universe i386 Packages
Hit http://us.archive.ubuntu.com precise-backports/multiverse i386 Packages
Hit http://us.archive.ubuntu.com precise-backports/main TranslationIndex
Hit http://us.archive.ubuntu.com precise-backports/multiverse TranslationIndex
Hit http://us.archive.ubuntu.com precise-backports/restricted TranslationIndex
Hit http://us.archive.ubuntu.com precise-backports/universe TranslationIndex
Hit http://us.archive.ubuntu.com precise-security/main Sources
Hit http://us.archive.ubuntu.com precise-security/restricted Sources
Hit http://us.archive.ubuntu.com precise-security/universe Sources
Hit http://us.archive.ubuntu.com precise-security/multiverse Sources
Hit http://us.archive.ubuntu.com precise-security/main i386 Packages
Hit http://us.archive.ubuntu.com precise-security/restricted i386 Packages
Hit http://us.archive.ubuntu.com precise-security/universe i386 Packages
Hit http://us.archive.ubuntu.com precise-security/multiverse i386 Packages
Hit http://us.archive.ubuntu.com precise-security/main TranslationIndex
Hit http://us.archive.ubuntu.com precise-security/multiverse TranslationIndex
Hit http://us.archive.ubuntu.com precise-security/restricted TranslationIndex
Hit http://us.archive.ubuntu.com precise-security/universe TranslationIndex
Hit http://us.archive.ubuntu.com precise/main Translation-en
Hit http://us.archive.ubuntu.com precise/multiverse Translation-en
Hit http://us.archive.ubuntu.com precise/restricted Translation-en
Hit http://us.archive.ubuntu.com precise/universe Translation-en
Hit http://us.archive.ubuntu.com precise-updates/main Translation-en
Hit http://us.archive.ubuntu.com precise-updates/multiverse Translation-en
Hit http://us.archive.ubuntu.com precise-updates/restricted Translation-en
Hit http://us.archive.ubuntu.com precise-updates/universe Translation-en
Hit http://us.archive.ubuntu.com precise-backports/main Translation-en
Hit http://us.archive.ubuntu.com precise-backports/multiverse Translation-en
Hit http://us.archive.ubuntu.com precise-backports/restricted Translation-en
Hit http://us.archive.ubuntu.com precise-backports/universe Translation-en
Hit http://us.archive.ubuntu.com precise-security/main Translation-en
Hit http://us.archive.ubuntu.com precise-security/multiverse Translation-en
Hit http://us.archive.ubuntu.com precise-security/restricted Translation-en
Hit http://us.archive.ubuntu.com precise-security/universe Translation-en
Fetched 935 kB in 3min 39s (4,261 B/s)
W: Failed to fetch gzip:/var/lib/apt/lists/partial/us.archive.ubuntu.com_ubuntu_dists_precise-updates_multiverse_binary-i386_Packages Hash Sum mismatch
E: Some index files failed to download. They have been ignored, or old ones used instead.
sudo apt-get update
应该为您提供当前的包裹索引...