Subject: bug#50183: httpd hash mismatch

From: Leo Famulari <[email-masked]>
Date: Tue, 24 Aug 2021 13:38:53 -0400

On Tue, Aug 24, 2021 at 04:44:01AM -0500, Eric Brown via Bug reports for GNU Guix wrote:
> I am trying to install httpd and I get a hash mismatch:

Thanks for the report!

> # guix pull && hash guix && guix package -u
> # guix build httpd --no-substitutes
> 
> sha256 hash mismatch for /gnu/store/vqdsqzdq1vfhn49fmj32daja43vmbg8v-httpd-2.4.48.tar.bz2:
>   expected hash: 0v4npxnvih5mlxx6dywwhhfs8xvgcckc0hxzwk3hi0g8nbkjdj0v
>   actual hash:   0mdqa9w1p6cmli6976v4wi0sw9r4p5prkj7lzfd1877wk11c9c73
> hash mismatch for store item '/gnu/store/vqdsqzdq1vfhn49fmj32daja43vmbg8v-httpd-2.4.48.tar.bz2'

I just tried and it worked for me:

------
$ guix build --no-grafts httpd -S --no-substitutes
;;; note: source file /home/leo/work/guix/gnu/packages/tls.scm
;;;       newer than compiled /home/leo/work/guix/gnu/packages/tls.go
The following derivation will be built:
   /gnu/store/8yz30bpf6yw6rd1yf7h3fh5p8yr062zf-httpd-2.4.48.tar.bz2.drv
building /gnu/store/8yz30bpf6yw6rd1yf7h3fh5p8yr062zf-httpd-2.4.48.tar.bz2.drv...

Starting download of /gnu/store/vqdsqzdq1vfhn49fmj32daja43vmbg8v-httpd-2.4.48.tar.bz2
>From http://www.eu.apache.org/dist/httpd/httpd-2.4.48.tar.bz2...
In procedure getaddrinfo: Name or service not known

Starting download of /gnu/store/vqdsqzdq1vfhn49fmj32daja43vmbg8v-httpd-2.4.48.tar.bz2
>From http://www.us.apache.org/dist/httpd/httpd-2.4.48.tar.bz2...
In procedure getaddrinfo: Name or service not known

Starting download of /gnu/store/vqdsqzdq1vfhn49fmj32daja43vmbg8v-httpd-2.4.48.tar.bz2
>From https://ftp.nluug.nl/internet/apache/httpd/httpd-2.4.48.tar.bz2...
downloading from https://ftp.nluug.nl/internet/apache/httpd/httpd-2.4.48.tar.bz2 ...
 httpd-2.4.48.tar.bz2  6.9MiB                                                                                                                         2.3MiB/s 00:03 [##################] 100.0%
successfully built /gnu/store/8yz30bpf6yw6rd1yf7h3fh5p8yr062zf-httpd-2.4.48.tar.bz2.drv
/gnu/store/vqdsqzdq1vfhn49fmj32daja43vmbg8v-httpd-2.4.48.tar.bz2
------

Which URL did you end up downloading from? Can you download the file
again and see what it is? Like, maybe it's a 404 HTML page or
something.