[Bug 1373598] Re: apt-get update fails, hash sum mismatches with de.archive.ubuntu.com
Cride5
1373598 at bugs.launchpad.net
Sat May 7 07:06:31 UTC 2016
I've been having the same problems while running apt-get update,
including 'hash sum mismatch' and 'BADSIG' errors. I tried the
following:
1. Downloading updated keys
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys <KEY_NAME>
sudo apt-get update
2. Clean cache then update (some report success with repeated cycles of this)
sudo apt-get clean
sudo apt-get update
3. Clear out the list files completely, or just the partials
sudo rm -f /var/lib/apt/lists/*
sudo rm -f /var/lib/apt/lists/partials/*
sudo apt-get update
4. Clear out the status file as it may be corrupted
sudo rm /var/lib/dpkg/status
sudo touch /var/lib/dpkg/status
sudo apt-get update
5. Disable proxy to ensure direct download from the mirror
sudo apt-get -o Acquire::http::No-Cache=true -o Acquire::BrokenProxy=true -o Acquire::http::Pipeline-Depth=0 update
6. Try changing to another mirror in "Software & Updates"
I tried the following:
* ubuntu.ctu.edu.vn (Vietnam - failed - my original mirror)
* ubuntu.01link.hk (Hong Kong - failed)
* archive.ubuntu.com (Main - failed)
* mirror.switch.ch (Switzerland - failed)
* mirror-fpt-telecom.fpt.net (Vietnam - success - a mirror hosted by my current ISP)
TL;DR Only changing the mirror was able to solve this problem for me.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apt in Ubuntu.
https://bugs.launchpad.net/bugs/1373598
Title:
apt-get update fails, hash sum mismatches with de.archive.ubuntu.com
Status in apt package in Ubuntu:
Confirmed
Status in ubuntu-release-upgrader package in Ubuntu:
Invalid
Bug description:
1. Release:
Description: Ubuntu 14.04.1 LTS
Release: 14.04
2. not a package. The whole distro is broken.
3. I always expect apt-get update to work, at least with Ubuntu's own
repositories.
4. "apt-get update" failed, and later "apt-get dist upgrade"
It started with this when doing a normal "apt-get update"
W: Failed to fetch http://de.archive.ubuntu.com/ubuntu/dists/trusty-
updates/main/source/Sources Hash Sum mismatch
W: Failed to fetch http://de.archive.ubuntu.com/ubuntu/dists/trusty-
updates/main/binary-amd64/Packages Hash Sum mismatch
W: Failed to fetch http://de.archive.ubuntu.com/ubuntu/dists/trusty-
updates/universe/binary-i386/Packages Hash Sum mismatch
E: Some index files failed to download. They have been ignored, or old
ones used instead.
When doing a dist-upgrade, I then got this:
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-3.13.0-36-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-extra-3.13.0-36-generic.postinst line 1025.
No apport report written because the error message indicates its a followup error from a previous failure.
dpkg: error processing package linux-image-extra-3.13.0-36-generic (--configure):
subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of linux-image-generic:
linux-image-generic depends on linux-image-extra-3.13.0-36-generic; however:
Package linux-image-extra-3.13.0-36-generic is not configured yet.
dpkg: error processing package linux-image-generic (--configure):
dependency problems - leaving unconfigured
Setting up linux-headers-3.13.0-36 (3.13.0-36.63) ...
Setting up linux-headers-3.13.0-36-generic (3.13.0-36.63) ...
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/dkms 3.13.0-36-generic /boot/vmlinuz-3.13.0-36-generic
Setting up linux-headers-generic (3.13.0.36.43) ...
No apport report written because the error message indicates its a followup error from a previous failure.
dpkg: dependency problems prevent configuration of linux-generic:
linux-generic depends on linux-image-generic (= 3.13.0.36.43); however:
Package linux-image-generic is not configured yet.
dpkg: error processing package linux-generic (--configure):
dependency problems - leaving unconfigured
And later this at the end:
Processing triggers for libc-bin (2.19-0ubuntu6.3) ...
E: Sub-process /usr/bin/dpkg returned an error code (1)
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: ubuntu-release-upgrader-core 1:0.220.5
ProcVersionSignature: Ubuntu 3.13.0-34.60-generic 3.13.11.4
Uname: Linux 3.13.0-34-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.4
Architecture: amd64
CrashDB: ubuntu
CurrentDesktop: Unity
Date: Wed Sep 24 21:57:55 2014
InstallationDate: Installed on 2013-05-09 (503 days ago)
InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Release amd64 (20130424)
PackageArchitecture: all
SourcePackage: ubuntu-release-upgrader
Symptom: dist-upgrade
UpgradeStatus: Upgraded to trusty on 2014-05-04 (142 days ago)
VarLogDistupgradeTermlog:
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1373598/+subscriptions
More information about the foundations-bugs
mailing list