MathOnco / valis

Virtual Alignment of pathoLogy Image Series
https://valis.readthedocs.io/en/latest/
MIT License
122 stars 29 forks source link

Error in local Docker build #65

Closed dnschouten closed 1 year ago

dnschouten commented 1 year ago

Hi!

I am currently trying to build the valis container locally using the provided Dockerfile, but I am running into some errors. The build fails at line 12 with the apt-get update, I receive the following error:

W: http://archive.ubuntu.com/ubuntu/dists/kinetic/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/ubuntu-keyring-2012-cdimage.gpg are ignored as the file is not readable by user '_apt' executing apt-key. W: http://archive.ubuntu.com/ubuntu/dists/kinetic/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/ubuntu-keyring-2018-archive.gpg are ignored as the file is not readable by user '_apt' executing apt-key. W: GPG error: http://archive.ubuntu.com/ubuntu kinetic InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 871920D1991BC93C E: The repository 'http://archive.ubuntu.com/ubuntu kinetic InRelease' is not signed. E: Problem executing scripts APT::Update::Post-Invoke 'rm -f /var/cache/apt/archives/.deb /var/cache/apt/archives/partial/.deb /var/cache/apt/*.bin || true' E: Sub-process returned an error code

I've tried adding the key using RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 871920D1991BC93C, but then it complains that gnupg needs to be installed first. This is where I get stuck, when trying to RUN apt-get install gnupg1 in the Dockerfile, it doesn't find any installation candidates. Running apt-get update beforehand is not an option as it then throws the same pubkey error as before.

Any ideas what might be causing this and how I can solve this? Thanks in advance!

dnschouten commented 1 year ago

Quick update: this appears to be related to the specific machine (compute node on HPC with Ubuntu 20.04) I was trying to build the Dockerfile on. Tried a different machine and haven't had the same error since, may be worth looking into if other people run into this as well but will close for now.