On Wed, 25 Mar 2020 11:27:10 +0530 Pirate Praveen <prav...@onenetbeyond.org> wrote:
> Err:11 http://deb.debian.org/debian sid/main amd64 bind9-libs amd64
> 1:9.16.1-2
>   Bad header line Bad header data [IP: 127.0.0.1 3142]
> Get:12 http://deb.debian.org/debian sid/main amd64 bind9-host amd64
> 1:9.16.1-2 [283 kB]
> Err:13 http://deb.debian.org/debian sid/main amd64 libbind9-161 amd64
> 1:9.11.17+dfsg-4
>   567 Unknown download error occured [IP: 127.0.0.1 3142]
>
> This gets fixed when repeating it multiple times. Sometimes the error
> is checksum mismatch.

Now I use this work around to fix failed downloads (usually when the file is big),

#!/bin/sh

set -ex

cd $(grep "^CacheDir:" /etc/apt-cacher-ng/acng.conf | cut -d: -f2)
sudo -u apt-cacher-ng wget -c -O debrep/$(echo $1 | sed 's/http:\/\/deb.debian.org\/debian\///') $1

Reply via email to