Issue
A compute environment build fails with a keyserver connection timeout similar to the following:Root Cause
The build is attempting to fetch the CRAN repository signing key from the Ubuntu keyserver (keyserver.ubuntu.com) using the HKP protocol (port 11371 or port 80). Egress rules or firewall policies in the deployment environment block this outbound connection, causing the GPG keyserver lookup to time out and the build to fail. Deprecated: The gpg … | apt-key add - pattern used in older Dockerfile instructions is deprecated as of Ubuntu 20.10 and removed in Ubuntu 24.04+. Even where it still functions, it should not be used in new or updated compute environments.Resolution
The recommended fix is to bypass the keyserver entirely by fetching the CRAN signing key directly from CRAN’s own HTTPS endpoint at cloud.r-project.org. This avoids any dependency on HKP keyserver access and uses the modern gpg —dearmor approach. Add the following to your compute environment’s Dockerfile Instructions:Fully Air-Gapped Environments
If your environment cannot reach any external endpoint during the build, the key must be pre-staged:-
On a machine with internet access, download the key:
- Upload the .asc file to your Domino project files.
- Reference the key file in your Dockerfile Instructions using the Domino project file access pattern, or embed the key as a base64-encoded string in your Dockerfile.
Legacy Proxy Workaround (Not Recommended)
An older workaround involved routing keyserver traffic through an HTTP proxy:- apt-key is deprecated since Ubuntu 20.10 and removed in Ubuntu 24.04+
- It still requires keyserver connectivity even with a proxy
- The direct CRAN HTTPS fetch described above is simpler and more reliable