Skip to content

Dockerfile: Remove mirror site setting; it broke the build#3874

Open
0cjs wants to merge 1 commit into
nvm-sh:masterfrom
0cjs:dev/cjs/26g07/dockerfile-remove-mirror
Open

Dockerfile: Remove mirror site setting; it broke the build#3874
0cjs wants to merge 1 commit into
nvm-sh:masterfrom
0cjs:dev/cjs/26g07/dockerfile-remove-mirror

Conversation

@0cjs

@0cjs 0cjs commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

The ubuntu.cs.utah.edu mirror appears to be obsolete; trying to use it produces error messages along the lines of:

Ign:2 https://ubuntu.cs.utah.edu/ubuntu jammy-updates InRelease
Err:2 https://ubuntu.cs.utah.edu/ubuntu jammy-updates InRelease
  Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown.  Could not handshake: Error in the certificate verification. [IP: 155.98.64.89 443]
W: http://ubuntu.cs.utah.edu/ubuntu/dists/jammy-updates/InRelease: No system certificates available. Try installing ca-certificates.

These messages don't make it completely obvious what the problem is, and it's also a rather obscure setting; you have to carefully read the Dockerfile to find it.

Due to issues like this, and changing mirrors over time, it's best just to drop attempts to use a specific mirror and use whatever the default you get for archive.ubuntu.com etc. With modern CNDs, this is likely to be faster than a mirror, anyway.

The package downloads generally happen only once per host, anyway, since Docker will keep not only the final image, but also the layers used to generate it: if the final image is deleted or anything in the Dockerfile after the OS package updates is changed, these cached layers will be used.

The ubuntu.cs.utah.edu mirror appears to be obsolete; trying to use it
produces error messages along the lines of:

    Ign:2 https://ubuntu.cs.utah.edu/ubuntu jammy-updates InRelease
    Err:2 https://ubuntu.cs.utah.edu/ubuntu jammy-updates InRelease
      Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown.  Could not handshake: Error in the certificate verification. [IP: 155.98.64.89 443]
    W: http://ubuntu.cs.utah.edu/ubuntu/dists/jammy-updates/InRelease: No system certificates available. Try installing ca-certificates.

These messages don't make it completely obvious what the problem is,
and it's also a rather obscure setting; you have to carefully read the
Dockerfile to find it.

Due to issues like this, and changing mirrors over time, it's best
just to drop attempts to use a specific mirror and use whatever the
default you get for archive.ubuntu.com etc. With modern CNDs, this is
likely to be *faster* than a mirror, anyway.

The package downloads generally happen only once per host, anyway,
since Docker will keep not only the final image, but also the layers
used to generate it: if the final image is deleted or anything in the
Dockerfile after the OS package updates is changed, these cached
layers will be used.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant