Package manager troubleshooting procedure report

Asked by Terry Barker

While trying to update I get a hash sum mismatch error

I have clean installed 11.10 onto my PC and have not been able to either use the software center to install programs or the normal synaptic package manager as I get the error message Hash Sum Mismatch.

I have run the code located here - https://help.ubuntu.com/community/PackageManagerTroubleshootingProcedure

and here is the resultant code...sorry for the length.

I managed to update 'once' after running the code, but trying to install other subsequent packages brings up the same error message. Can anyone suggest anything?

terry@terry-A7N8X-E:~$ sudo fuser -vvv /var/lib/dpkg/lock
[sudo] password for terry:
terry@terry-A7N8X-E:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=11.10
DISTRIB_CODENAME=oneiric
DISTRIB_DESCRIPTION="Ubuntu 11.10"
terry@terry-A7N8X-E:~$ uname -a
Linux terry-A7N8X-E 3.0.0-13-generic #22-Ubuntu SMP Wed Nov 2 13:25:36 UTC 2011 i686 athlon i386 GNU/Linux
terry@terry-A7N8X-E:~$ sudo rm /var/lib/apt/lists/lock
terry@terry-A7N8X-E:~$ sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
terry@terry-A7N8X-E:~$ sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status
terry@terry-A7N8X-E:~$ sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
terry@terry-A7N8X-E:~$ sudo rm -rf /var/lib/dpkg/updates/*
terry@terry-A7N8X-E:~$ sudo rm -rf /var/lib/apt/lists
terry@terry-A7N8X-E:~$ sudo rm /var/cache/apt/*.bin
terry@terry-A7N8X-E:~$ sudo mkdir /var/lib/apt/lists
terry@terry-A7N8X-E:~$ sudo mkdir /var/lib/apt/lists/partial
terry@terry-A7N8X-E:~$ LANG=C;sudo apt-get clean
terry@terry-A7N8X-E:~$ LANG=C;sudo apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
terry@terry-A7N8X-E:~$ LANG=C;sudo apt-get --purge autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  libmpg123-0* ttf-droid* winbind* winetricks*
0 upgraded, 0 newly installed, 4 to remove and 0 not upgraded.
22 not fully installed or removed.
After this operation, 23.9 MB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 182705 files and directories currently installed.)
Removing libmpg123-0 ...
Purging configuration files for libmpg123-0 ...
Removing ttf-droid ...
Purging configuration files for ttf-droid ...
Removing winbind ...
 * Stopping the Winbind daemon winbind [ OK ]
Purging configuration files for winbind ...
Removing winetricks ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Processing triggers for fontconfig ...
Processing triggers for ureadahead ...
ureadahead will be reprofiled on next reboot
Processing triggers for man-db ...
Processing triggers for hicolor-icon-theme ...
Processing triggers for desktop-file-utils ...
Processing triggers for gnome-menus ...
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf.index...
Setting up linux-image-3.0.0-13-generic (3.0.0-13.22) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms 3.0.0-13-generic /boot/vmlinuz-3.0.0-13-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.0.0-13-generic /boot/vmlinuz-3.0.0-13-generic
update-initramfs: Generating /boot/initrd.img-3.0.0-13-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.0.0-13-generic /boot/vmlinuz-3.0.0-13-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.0.0-13-generic /boot/vmlinuz-3.0.0-13-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.0.0-13-generic /boot/vmlinuz-3.0.0-13-generic
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.0.0-13-generic
Found initrd image: /boot/initrd.img-3.0.0-13-generic
Found linux image: /boot/vmlinuz-3.0.0-12-generic
Found initrd image: /boot/initrd.img-3.0.0-12-generic
Found memtest86+ image: /boot/memtest86+.bin
done
Setting up command-not-found-data (0.2.44.1ubuntu1) ...
Setting up command-not-found (0.2.44.1ubuntu1) ...
Setting up libgs9-common (9.04~dfsg-0ubuntu11.2) ...
Setting up libgs9 (9.04~dfsg-0ubuntu11.2) ...
Setting up ghostscript (9.04~dfsg-0ubuntu11.2) ...
Setting up ghostscript-cups (9.04~dfsg-0ubuntu11.2) ...
Setting up ghostscript-x (9.04~dfsg-0ubuntu11.2) ...
Setting up python-ubuntuone-client (2.0.0-0ubuntu2.2) ...
Setting up ubuntuone-client (2.0.0-0ubuntu2.2) ...
Setting up libsyncdaemon-1.0-1 (2.0.0-0ubuntu2.2) ...
Setting up libunity-2d-private0 (4.12.0-0ubuntu1.1) ...
Setting up linux-image-generic (3.0.0.13.15) ...
Setting up linux-generic (3.0.0.13.15) ...
Setting up thunderbird (8.0+build1-0ubuntu0.11.10.1) ...
Setting up thunderbird-globalmenu (8.0+build1-0ubuntu0.11.10.1) ...
Setting up thunderbird-gnome-support (8.0+build1-0ubuntu0.11.10.1) ...
Setting up unity-2d-launcher (4.12.0-0ubuntu1.1) ...
Setting up unity-2d-panel (4.12.0-0ubuntu1.1) ...
Setting up unity-2d-places (4.12.0-0ubuntu1.1) ...
Setting up unity-2d-spread (4.12.0-0ubuntu1.1) ...
Setting up unity-2d (4.12.0-0ubuntu1.1) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
terry@terry-A7N8X-E:~$ LANG=C;sudo apt-get update -o APT::Cache-Limit=25165824
Ign http://gb.archive.ubuntu.com oneiric InRelease
Ign http://gb.archive.ubuntu.com oneiric-updates InRelease
Ign http://gb.archive.ubuntu.com oneiric-backports InRelease
Ign http://archive.ubuntu.com oneiric InRelease
Ign http://archive.canonical.com oneiric InRelease
Ign http://gb.archive.ubuntu.com oneiric-security InRelease
Get:1 http://gb.archive.ubuntu.com oneiric Release.gpg [198 B]
Get:2 http://archive.ubuntu.com oneiric Release.gpg [198 B]
Get:3 http://archive.canonical.com oneiric Release.gpg [198 B]
Get:4 http://gb.archive.ubuntu.com oneiric-updates Release.gpg [198 B]
Get:5 http://gb.archive.ubuntu.com oneiric-backports Release.gpg [198 B]
Get:6 http://archive.ubuntu.com oneiric Release [40.8 kB]
Get:7 http://archive.canonical.com oneiric Release [5922 B]
Get:8 http://gb.archive.ubuntu.com oneiric-security Release.gpg [198 B]
Get:9 http://gb.archive.ubuntu.com oneiric Release [40.8 kB]
Get:10 http://archive.canonical.com oneiric/partner Sources [1848 B]
Get:11 http://archive.canonical.com oneiric/partner i386 Packages [3512 B]
Ign http://archive.canonical.com oneiric/partner TranslationIndex
Get:12 http://archive.ubuntu.com oneiric/main Sources [877 kB]
Get:13 http://gb.archive.ubuntu.com oneiric-updates Release [32.4 kB]
Get:14 http://gb.archive.ubuntu.com oneiric-backports Release [24.3 kB]
Get:15 http://gb.archive.ubuntu.com oneiric-security Release [32.4 kB]
Ign http://gb.archive.ubuntu.com oneiric-backports Release
Get:16 http://gb.archive.ubuntu.com oneiric/restricted Sources [5351 B]
Get:17 http://gb.archive.ubuntu.com oneiric/main Sources [877 kB]
Ign http://archive.canonical.com oneiric/partner Translation-en
Get:18 http://archive.ubuntu.com oneiric/restricted Sources [5351 B]
94% [12 Sources bzip2 0 B] [18 Sources 2492 B/5351 B 46%] [17 Sources 782 kB/87
bzip2: Data integrity error when decompressing.
 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.

Get:19 http://gb.archive.ubuntu.com oneiric/multiverse Sources [149 kB]
94% [17 Sources bzip2 0 B] [12 Sources bzip2 936 kB] [19 Sources 40.3 kB/149 kB
bzip2: Data integrity error when decompressing.
 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.

Get:20 http://gb.archive.ubuntu.com oneiric/universe Sources [4677 kB]
Get:21 http://gb.archive.ubuntu.com oneiric/main i386 Packages [1226 kB]
Get:22 http://gb.archive.ubuntu.com oneiric/restricted i386 Packages [8216 B]
Get:23 http://gb.archive.ubuntu.com oneiric/universe i386 Packages [4468 kB]
Get:24 http://gb.archive.ubuntu.com oneiric/multiverse i386 Packages [119 kB]
Get:25 http://gb.archive.ubuntu.com oneiric/main TranslationIndex [3289 B]
Get:26 http://gb.archive.ubuntu.com oneiric/multiverse TranslationIndex [2265 B]
Get:27 http://gb.archive.ubuntu.com oneiric/restricted TranslationIndex [2263 B]
Get:28 http://gb.archive.ubuntu.com oneiric/universe TranslationIndex [2640 B]
Get:29 http://gb.archive.ubuntu.com oneiric-updates/restricted Sources [1348 B]
Get:30 http://gb.archive.ubuntu.com oneiric-updates/main Sources [93.5 kB]
Get:31 http://gb.archive.ubuntu.com oneiric-updates/multiverse Sources [1992 B]
Get:32 http://gb.archive.ubuntu.com oneiric-updates/universe Sources [22.3 kB]
Get:33 http://gb.archive.ubuntu.com oneiric-updates/main i386 Packages [217 kB]
Get:34 http://gb.archive.ubuntu.com oneiric-updates/restricted i386 Packages [2935 B]
Get:35 http://gb.archive.ubuntu.com oneiric-updates/universe i386 Packages [57.2 kB]
Get:36 http://gb.archive.ubuntu.com oneiric-updates/multiverse i386 Packages [4396 B]
Get:37 http://gb.archive.ubuntu.com oneiric-updates/main TranslationIndex [73 B]
Get:38 http://gb.archive.ubuntu.com oneiric-updates/multiverse TranslationIndex [72 B]
Get:39 http://gb.archive.ubuntu.com oneiric-updates/restricted TranslationIndex [71 B]
Get:40 http://gb.archive.ubuntu.com oneiric-updates/universe TranslationIndex [73 B]
Get:41 http://gb.archive.ubuntu.com oneiric-backports/main Sources [1577 B]
Get:42 http://gb.archive.ubuntu.com oneiric-backports/restricted Sources [14 B]
Get:43 http://gb.archive.ubuntu.com oneiric-backports/universe Sources [5071 B]
Get:44 http://gb.archive.ubuntu.com oneiric-backports/multiverse Sources [14 B]
Get:45 http://gb.archive.ubuntu.com oneiric-backports/main i386 Packages [1912 B]
Get:46 http://gb.archive.ubuntu.com oneiric-backports/restricted i386 Packages [14 B]
Get:47 http://gb.archive.ubuntu.com oneiric-backports/universe i386 Packages [5199 B]
Get:48 http://gb.archive.ubuntu.com oneiric-backports/multiverse i386 Packages [14 B]
Get:49 http://gb.archive.ubuntu.com oneiric-backports/main TranslationIndex [72 B]
Get:50 http://gb.archive.ubuntu.com oneiric-backports/multiverse TranslationIndex [70 B]
Get:51 http://gb.archive.ubuntu.com oneiric-backports/restricted TranslationIndex [70 B]
Get:52 http://gb.archive.ubuntu.com oneiric-backports/universe TranslationIndex [72 B]
Get:53 http://gb.archive.ubuntu.com oneiric-security/restricted Sources [14 B]
Get:54 http://gb.archive.ubuntu.com oneiric-security/main Sources [18.0 kB]
Get:55 http://gb.archive.ubuntu.com oneiric-security/multiverse Sources [653 B]
Get:56 http://gb.archive.ubuntu.com oneiric-security/universe Sources [5590 B]
Get:57 http://gb.archive.ubuntu.com oneiric-security/main i386 Packages [54.8 kB]
Get:58 http://gb.archive.ubuntu.com oneiric-security/restricted i386 Packages [14 B]
Get:59 http://gb.archive.ubuntu.com oneiric-security/universe i386 Packages [15.5 kB]
Get:60 http://gb.archive.ubuntu.com oneiric-security/multiverse i386 Packages [1653 B]
Get:61 http://gb.archive.ubuntu.com oneiric-security/main TranslationIndex [73 B]
Get:62 http://gb.archive.ubuntu.com oneiric-security/multiverse TranslationIndex [71 B]
Get:63 http://gb.archive.ubuntu.com oneiric-security/restricted TranslationIndex [70 B]
Get:64 http://gb.archive.ubuntu.com oneiric-security/universe TranslationIndex [73 B]
Get:65 http://gb.archive.ubuntu.com oneiric/main Translation-en [701 kB]
Get:66 http://gb.archive.ubuntu.com oneiric/multiverse Translation-en [92.6 kB]
Get:67 http://gb.archive.ubuntu.com oneiric/restricted Translation-en [2229 B]
Get:68 http://gb.archive.ubuntu.com oneiric/universe Translation-en [3165 kB]
Get:69 http://gb.archive.ubuntu.com oneiric-updates/main Translation-en [99.1 kB]
Get:70 http://gb.archive.ubuntu.com oneiric-updates/multiverse Translation-en [2419 B]
Get:71 http://gb.archive.ubuntu.com oneiric-updates/restricted Translation-en [508 B]
Get:72 http://gb.archive.ubuntu.com oneiric-updates/universe Translation-en [35.4 kB]
Get:73 http://gb.archive.ubuntu.com oneiric-backports/main Translation-en [1203 B]
Get:74 http://gb.archive.ubuntu.com oneiric-backports/multiverse Translation-en [14 B]
Get:75 http://gb.archive.ubuntu.com oneiric-backports/restricted Translation-en [14 B]
Get:76 http://gb.archive.ubuntu.com oneiric-backports/universe Translation-en [4803 B]
Get:77 http://gb.archive.ubuntu.com oneiric-security/main Translation-en [28.3 kB]
Get:78 http://gb.archive.ubuntu.com oneiric-security/multiverse Translation-en [840 B]
Get:79 http://gb.archive.ubuntu.com oneiric-security/restricted Translation-en [14 B]
Get:80 http://gb.archive.ubuntu.com oneiric-security/universe Translation-en [10.9 kB]
99% [68 Translation-en bzip2 0 B] 87.0 kB/s 0s
bzip2: Data integrity error when decompressing.
 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.

Fetched 17.3 MB in 4min 0s (71.8 kB/s)
W: GPG error: http://gb.archive.ubuntu.com oneiric-backports Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <email address hidden>
W: Failed to fetch gzip:/var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_oneiric_main_source_Sources Hash Sum mismatch

W: Failed to fetch gzip:/var/lib/apt/lists/partial/gb.archive.ubuntu.com_ubuntu_dists_oneiric_main_source_Sources Hash Sum mismatch

W: Failed to fetch gzip:/var/lib/apt/lists/partial/gb.archive.ubuntu.com_ubuntu_dists_oneiric_universe_i18n_Translation-en Encountered a section with no Package: header

E: Some index files failed to download. They have been ignored, or old ones used instead.
terry@terry-A7N8X-E:~$ sudo dpkg --clear-avail
terry@terry-A7N8X-E:~$ sudo dpkg --configure -a
terry@terry-A7N8X-E:~$ LANG=C;sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
terry@terry-A7N8X-E:~$ LANG=C;sudo apt-get --fix-missing install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
terry@terry-A7N8X-E:~$ LANG=C;sudo apt-get update -o APT::Cache-Limit=25165824 && sudo apt-get dist-upgrade
Ign http://archive.ubuntu.com oneiric InRelease
Ign http://gb.archive.ubuntu.com oneiric InRelease
Ign http://gb.archive.ubuntu.com oneiric-updates InRelease
Ign http://gb.archive.ubuntu.com oneiric-backports InRelease
Ign http://archive.canonical.com oneiric InRelease
Ign http://gb.archive.ubuntu.com oneiric-security InRelease
Hit http://archive.ubuntu.com oneiric Release.gpg
Hit http://gb.archive.ubuntu.com oneiric Release.gpg
Hit http://archive.canonical.com oneiric Release.gpg
Hit http://gb.archive.ubuntu.com oneiric-updates Release.gpg
Get:1 http://gb.archive.ubuntu.com oneiric-backports Release.gpg [198 B]
Hit http://archive.ubuntu.com oneiric Release
Hit http://archive.canonical.com oneiric Release
Hit http://gb.archive.ubuntu.com oneiric-security Release.gpg
Hit http://archive.canonical.com oneiric/partner Sources
Hit http://gb.archive.ubuntu.com oneiric Release
Hit http://gb.archive.ubuntu.com oneiric-updates Release
Hit http://archive.canonical.com oneiric/partner i386 Packages
Hit http://archive.ubuntu.com oneiric/restricted Sources
Ign http://archive.canonical.com oneiric/partner TranslationIndex
Hit http://gb.archive.ubuntu.com oneiric-backports Release
Ign http://gb.archive.ubuntu.com oneiric-backports Release
Get:2 http://archive.ubuntu.com oneiric/main Sources [1095 kB]
Hit http://gb.archive.ubuntu.com oneiric-security Release
Hit http://gb.archive.ubuntu.com oneiric/restricted Sources
Hit http://gb.archive.ubuntu.com oneiric/multiverse Sources
Hit http://gb.archive.ubuntu.com oneiric/universe Sources
Hit http://gb.archive.ubuntu.com oneiric/main i386 Packages
Hit http://gb.archive.ubuntu.com oneiric/restricted i386 Packages
Hit http://gb.archive.ubuntu.com oneiric/universe i386 Packages
Hit http://gb.archive.ubuntu.com oneiric/multiverse i386 Packages
Hit http://gb.archive.ubuntu.com oneiric/main TranslationIndex
Hit http://gb.archive.ubuntu.com oneiric/multiverse TranslationIndex
Hit http://gb.archive.ubuntu.com oneiric/restricted TranslationIndex
Hit http://gb.archive.ubuntu.com oneiric/universe TranslationIndex
Hit http://gb.archive.ubuntu.com oneiric-updates/restricted Sources
Hit http://gb.archive.ubuntu.com oneiric-updates/main Sources
Hit http://gb.archive.ubuntu.com oneiric-updates/multiverse Sources
Hit http://gb.archive.ubuntu.com oneiric-updates/universe Sources
Hit http://gb.archive.ubuntu.com oneiric-updates/main i386 Packages
Hit http://gb.archive.ubuntu.com oneiric-updates/restricted i386 Packages
Hit http://gb.archive.ubuntu.com oneiric-updates/universe i386 Packages
Hit http://gb.archive.ubuntu.com oneiric-updates/multiverse i386 Packages
Hit http://gb.archive.ubuntu.com oneiric-updates/main TranslationIndex
Hit http://gb.archive.ubuntu.com oneiric-updates/multiverse TranslationIndex
Ign http://archive.canonical.com oneiric/partner Translation-en
Hit http://gb.archive.ubuntu.com oneiric-updates/restricted TranslationIndex
Hit http://gb.archive.ubuntu.com oneiric-updates/universe TranslationIndex
Ign http://gb.archive.ubuntu.com oneiric-backports/main Sources/DiffIndex
Ign http://gb.archive.ubuntu.com oneiric-backports/restricted Sources/DiffIndex
Ign http://gb.archive.ubuntu.com oneiric-backports/universe Sources/DiffIndex
Ign http://gb.archive.ubuntu.com oneiric-backports/multiverse Sources/DiffIndex
Ign http://gb.archive.ubuntu.com oneiric-backports/main i386 Packages/DiffIndex
Ign http://gb.archive.ubuntu.com oneiric-backports/restricted i386 Packages/DiffIndex
Ign http://gb.archive.ubuntu.com oneiric-backports/universe i386 Packages/DiffIndex
Ign http://gb.archive.ubuntu.com oneiric-backports/multiverse i386 Packages/DiffIndex
Hit http://gb.archive.ubuntu.com oneiric-backports/main TranslationIndex
Hit http://gb.archive.ubuntu.com oneiric-backports/multiverse TranslationIndex
Hit http://gb.archive.ubuntu.com oneiric-backports/restricted TranslationIndex
Hit http://gb.archive.ubuntu.com oneiric-backports/universe TranslationIndex
Get:3 http://gb.archive.ubuntu.com oneiric/main Sources [1095 kB]
Hit http://gb.archive.ubuntu.com oneiric-security/restricted Sources
Hit http://gb.archive.ubuntu.com oneiric-security/main Sources
Hit http://gb.archive.ubuntu.com oneiric-security/multiverse Sources
Hit http://gb.archive.ubuntu.com oneiric-security/universe Sources
Hit http://gb.archive.ubuntu.com oneiric-security/main i386 Packages
Hit http://gb.archive.ubuntu.com oneiric-security/restricted i386 Packages
Hit http://gb.archive.ubuntu.com oneiric-security/universe i386 Packages
Hit http://gb.archive.ubuntu.com oneiric-security/multiverse i386 Packages
Hit http://gb.archive.ubuntu.com oneiric-security/main TranslationIndex
Hit http://gb.archive.ubuntu.com oneiric-security/multiverse TranslationIndex
Hit http://gb.archive.ubuntu.com oneiric-security/restricted TranslationIndex
Hit http://gb.archive.ubuntu.com oneiric-security/universe TranslationIndex
Hit http://gb.archive.ubuntu.com oneiric/main Translation-en
Hit http://gb.archive.ubuntu.com oneiric/multiverse Translation-en
Hit http://gb.archive.ubuntu.com oneiric/restricted Translation-en
Hit http://gb.archive.ubuntu.com oneiric-updates/main Translation-en
Hit http://gb.archive.ubuntu.com oneiric-updates/multiverse Translation-en
Hit http://gb.archive.ubuntu.com oneiric-updates/restricted Translation-en
Hit http://gb.archive.ubuntu.com oneiric-updates/universe Translation-en
Hit http://gb.archive.ubuntu.com oneiric-backports/main Sources
Hit http://gb.archive.ubuntu.com oneiric-backports/restricted Sources
Hit http://gb.archive.ubuntu.com oneiric-backports/universe Sources
Hit http://gb.archive.ubuntu.com oneiric-backports/multiverse Sources
Hit http://gb.archive.ubuntu.com oneiric-backports/main i386 Packages
Hit http://gb.archive.ubuntu.com oneiric-backports/restricted i386 Packages
Hit http://gb.archive.ubuntu.com oneiric-backports/universe i386 Packages
Hit http://gb.archive.ubuntu.com oneiric-backports/multiverse i386 Packages
Hit http://gb.archive.ubuntu.com oneiric-backports/main Translation-en
Hit http://gb.archive.ubuntu.com oneiric-backports/multiverse Translation-en
Hit http://gb.archive.ubuntu.com oneiric-backports/restricted Translation-en
Hit http://gb.archive.ubuntu.com oneiric-backports/universe Translation-en
Hit http://gb.archive.ubuntu.com oneiric-security/main Translation-en
Hit http://gb.archive.ubuntu.com oneiric-security/multiverse Translation-en
Hit http://gb.archive.ubuntu.com oneiric-security/restricted Translation-en
Hit http://gb.archive.ubuntu.com oneiric-security/universe Translation-en
Get:4 http://gb.archive.ubuntu.com oneiric/universe Translation-en [3919 kB]
Fetched 201 B in 19s (10 B/s)
W: GPG error: http://gb.archive.ubuntu.com oneiric-backports Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <email address hidden>
W: Failed to fetch gzip:/var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_oneiric_main_source_Sources Hash Sum mismatch

W: Failed to fetch gzip:/var/lib/apt/lists/partial/gb.archive.ubuntu.com_ubuntu_dists_oneiric_main_source_Sources Hash Sum mismatch

W: Failed to fetch gzip:/var/lib/apt/lists/partial/gb.archive.ubuntu.com_ubuntu_dists_oneiric_universe_i18n_Translation-en Encountered a section with no Package: header

E: Some index files failed to download. They have been ignored, or old ones used instead.
terry@terry-A7N8X-E:~$

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Try:

sudo apt-key adv --recv-key --keyserver keyserver.ubuntu.com 40976EAF437D05B5

I suggest you disable backports altogether unless you have a good reason to have them enabled. If that doesn't smooth things off then try switching server from the gb server to the main server (or some other)

Revision history for this message
Terry Barker (terryjbarker) said :
#2

I have tried the code suggested, my output is below. I do not have any back ports enabled (as far as I am aware..!)

terry@terry-A7N8X-E:~$ sudo apt-key adv --recv-key --keyserver keyserver.ubuntu.com 40976EAF437D05B5
[sudo] password for terry:
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /tmp/tmp.IBYC4J4uS7 --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --recv-key --keyserver keyserver.ubuntu.com 40976EAF437D05B5
gpg: requesting key 437D05B5 from hkp server keyserver.ubuntu.com
gpg: key 437D05B5: "Ubuntu Archive Automatic Signing Key <email address hidden>" not changed
gpg: Total number processed: 1
gpg: unchanged: 1
terry@terry-A7N8X-E:~$

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

Try changing software source in software centre

Revision history for this message
Terry Barker (terryjbarker) said :
#4

I have tried this a few times to no avail..!

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#5

sudo apt-get clean
cd /var/lib/apt
sudo mv lists lists.old
sudo mkdir -p lists/partial
sudo apt-get clean
sudo apt-get update

Revision history for this message
Ryan Smith (rnfnsmith) said :
#6

actionparsnip: I had a similar problem and that last post solved it. Thank you!

Can you help with this problem?

Provide an answer of your own, or ask Terry Barker for more information if necessary.

To post a message you must log in.