[Aptitude-devel] aptitude *sometimes* doesn't the bzip partials and also full-update doesn't help.

shirish शिरीष shirishag75 at gmail.com
Tue Sep 25 05:27:16 BST 2012


Hi all,
Thank you all for working on aptitude. Please CC me if somebody
answers me. I dunno if this is a known bug or not but aptitude
sometimes gives something like this :-

~$ sudo aptitude update
Hit http://ftp.debian.org wheezy InRelease
Hit http://ftp.debian.org unstable InRelease
Hit http://ftp.debian.org experimental InRelease
Ign http://ftp.debian.org stable InRelease
Hit http://ftp.debian.org wheezy/main Sources/DiffIndex
Hit http://ftp.debian.org wheezy/contrib Sources/DiffIndex
Hit http://ftp.debian.org wheezy/non-free Sources/DiffIndex
Hit http://ftp.debian.org wheezy/main amd64 Packages/DiffIndex
Hit http://ftp.debian.org wheezy/contrib amd64 Packages/DiffIndex
Hit http://ftp.debian.org wheezy/non-free amd64 Packages/DiffIndex
Hit http://ftp.debian.org wheezy/contrib Translation-en/DiffIndex
Get: 1 http://ftp.debian.org wheezy/main Translation-en [3,913 kB]
Get: 2 http://ftp.debian.org wheezy/non-free Translation-en [67.1 kB]
Hit http://ftp.debian.org unstable/main Sources/DiffIndex
Hit http://ftp.debian.org unstable/contrib Sources/DiffIndex
Hit http://ftp.debian.org unstable/non-free Sources/DiffIndex
Hit http://ftp.debian.org unstable/main amd64 Packages/DiffIndex
Hit http://ftp.debian.org unstable/contrib amd64 Packages/DiffIndex
Hit http://ftp.debian.org unstable/non-free amd64 Packages/DiffIndex
Get: 3 http://ftp.debian.org unstable/contrib Translation-en [37.3 kB]
Get: 4 http://ftp.debian.org unstable/main Translation-en [4,053 kB]
Hit http://ftp.debian.org unstable/non-free Translation-en/DiffIndex
Hit http://ftp.debian.org experimental/main amd64 Packages/DiffIndex
Get: 5 http://ftp.debian.org experimental/main Translation-en [327 kB]
Hit http://ftp.debian.org stable Release.gpg
Hit http://ftp.debian.org stable Release
Hit http://ftp.debian.org stable/main Sources
Hit http://ftp.debian.org stable/contrib Sources
Hit http://ftp.debian.org stable/non-free Sources
Hit http://ftp.debian.org stable/main amd64 Packages
Hit http://ftp.debian.org stable/non-free amd64 Packages
Hit http://ftp.debian.org stable/contrib amd64 Packages
Fetched 5 B in 8s (0 B/s)
W: Failed to fetch
bzip2:/var/lib/apt/lists/partial/ftp.debian.org_debian_dists_wheezy_main_i18n_Translation-en:
Hash Sum mismatch
W: Failed to fetch
bzip2:/var/lib/apt/lists/partial/ftp.debian.org_debian_dists_wheezy_non-free_i18n_Translation-en:
Hash Sum mismatch
W: Failed to fetch
bzip2:/var/lib/apt/lists/partial/ftp.debian.org_debian_dists_unstable_contrib_i18n_Translation-en:
Hash Sum mismatch
W: Failed to fetch
bzip2:/var/lib/apt/lists/partial/ftp.debian.org_debian_dists_unstable_main_i18n_Translation-en:
Hash Sum mismatch
W: Failed to fetch
bzip2:/var/lib/apt/lists/partial/ftp.debian.org_debian_dists_experimental_main_i18n_Translation-en:
Hash Sum mismatch
E: Some index files failed to download. They have been ignored, or old
ones used instead.
E: Couldn't rebuild package cache

 I have been hit with this a few times. Sometimes removing the diff's
or/and cache from /var/lib/apt/lists and updating anew fixes the
situation above while sometimes even this solution does not work.

/var/lib/apt/lists$ sudo rm -rf *

$ sudo aptitude update
Get: 1 http://ftp.debian.org wheezy InRelease [207 kB]
Get: 2 http://ftp.debian.org unstable InRelease [258 kB]
Get: 3 http://ftp.debian.org experimental InRelease [162 kB]
Ign http://ftp.debian.org stable InRelease
Get: 4 http://ftp.debian.org wheezy/main Sources [6,045 kB]
Get: 5 http://ftp.debian.org wheezy/contrib Sources [50.2 kB]
Get: 6 http://ftp.debian.org wheezy/non-free Sources [95.3 kB]
Get: 7 http://ftp.debian.org wheezy/main amd64 Packages [5,929 kB]
Get: 8 http://ftp.debian.org wheezy/contrib amd64 Packages [43.7 kB]
Get: 9 http://ftp.debian.org wheezy/non-free amd64 Packages [81.2 kB]
Get: 10 http://ftp.debian.org wheezy/contrib Translation-en [35.6 kB]
Get: 11 http://ftp.debian.org wheezy/main Translation-en [3,913 kB]
Get: 12 http://ftp.debian.org wheezy/non-free Translation-en [67.1 kB]
Get: 13 http://ftp.debian.org unstable/main Sources [6,335 kB]
Get: 14 http://ftp.debian.org unstable/contrib Sources [53.6 kB]
Get: 15 http://ftp.debian.org unstable/non-free Sources [100 kB]
Get: 16 http://ftp.debian.org unstable/main amd64 Packages [6,138 kB]
Get: 17 http://ftp.debian.org unstable/contrib amd64 Packages [45.7
kB]
Get: 18 http://ftp.debian.org unstable/non-free amd64 Packages [84.7
kB]
Get: 19 http://ftp.debian.org unstable/contrib Translation-en [37.3
kB]
Get: 20 http://ftp.debian.org unstable/main Translation-en [4,053 kB]
Get: 21 http://ftp.debian.org unstable/non-free Translation-en [70.5
kB]
Get: 22 http://ftp.debian.org experimental/main amd64 Packages [561
kB]
Get: 23 http://ftp.debian.org experimental/main Translation-en [327
kB]
Get: 24 http://ftp.debian.org stable Release.gpg [1,672 B]
Get: 25 http://ftp.debian.org stable Release [111 kB]
Get: 26 http://ftp.debian.org stable/main Sources [4,541 kB]
Get: 27 http://ftp.debian.org stable/contrib Sources [40.9 kB]
Get: 28 http://ftp.debian.org stable/non-free Sources [73.4 kB]
Get: 29 http://ftp.debian.org stable/main amd64 Packages [6,542 kB]
Get: 30 http://ftp.debian.org stable/non-free amd64 Packages [102 kB]
Get: 31 http://ftp.debian.org stable/contrib amd64 Packages [53.0 kB]
Fetched 46.2 MB in 15min 0s (51.2 kB/s)
W: Failed to fetch
bzip2:/var/lib/apt/lists/partial/ftp.debian.org_debian_dists_wheezy_main_i18n_Translation-en:
Hash Sum mismatch
W: Failed to fetch
bzip2:/var/lib/apt/lists/partial/ftp.debian.org_debian_dists_wheezy_non-free_i18n_Translation-en:
Hash Sum mismatch
W: Failed to fetch
bzip2:/var/lib/apt/lists/partial/ftp.debian.org_debian_dists_unstable_contrib_i18n_Translation-en:
Hash Sum mismatch
W: Failed to fetch
bzip2:/var/lib/apt/lists/partial/ftp.debian.org_debian_dists_unstable_main_i18n_Translation-en:
Hash Sum mismatch
W: Failed to fetch
bzip2:/var/lib/apt/lists/partial/ftp.debian.org_debian_dists_experimental_main_i18n_Translation-en:
Hash Sum mismatch
E: Some index files failed to download. They have been ignored, or old
ones used instead.
E: Couldn't rebuild package cache

As can be seen something is off.  This has happened before and is not
an isolated example.

If this is a known bug and already reported please share the bug
number. If not  please lemme know so will report it via reportbug.

If somebody knows workaround for this would be appreciative of this as
well. I have no idea whether the above solution which works sometimes
is the appropriate one or is there a better way to fix it.

Looking forward for help.
-- 
          Regards,
          Shirish Agarwal  शिरीष अग्रवाल
  My quotes in this email licensed under CC 3.0
http://creativecommons.org/licenses/by-nc/3.0/
http://flossexperiences.wordpress.com
065C 6D79 A68C E7EA 52B3  8D70 950D 53FB 729A 8B17



More information about the Aptitude-devel mailing list