Skip to content

Commit

Permalink
Attempt to fix a transient packaging error
Browse files Browse the repository at this point in the history
The "Sum hash mismatch" error is happening lately when updating
the lists. This tries to workaround that with an extra `apt clean`.
  • Loading branch information
tsg authored and adriansr committed Feb 22, 2018
1 parent 1f0189d commit ea0a448
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dev-tools/packer/docker/xgo-image/base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ RUN chmod +x $FETCH


# Make sure apt-get is up to date and dependent packages are installed
# XXX: The first line is a workaround for the "Sum hash mismatch" error, from here:
# https://askubuntu.com/questions/760574/sudo-apt-get-update-failes-due-to-hash-sum-mismatch
RUN \
apt-get clean && \
apt-get update && \
apt-get install -y automake autogen build-essential ca-certificates \
gcc-arm-linux-gnueabi g++-arm-linux-gnueabi libc6-dev-armel-cross \
Expand Down

0 comments on commit ea0a448

Please sign in to comment.