Skip to content

Conversation

@rosbo
Copy link
Contributor

@rosbo rosbo commented Aug 27, 2021

We used to download the nvidia packages using apt over http. However
this is not supported anymore causing a build failure.

After much trial and error, I found that apt was not properly using the system certificate because of a broken
LD_LIBRARY_PATH. See the bug below for full context.

Additionally, new versions of gensim and kornia were released on August 29th and 30th respectively which are incompatible with our version of numpy. I pinned the version of these packages.

http://b/197989446

Dockerfile Outdated
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This package is already part of the gcr.io/deeplearning-platform-release/base-cpu image.

@rosbo rosbo force-pushed the fix-apt-certificates branch from 6de5c1a to 0dd589b Compare August 27, 2021 23:32
COPY --from=nvidia /etc/apt/sources.list.d/nvidia-ml.list /etc/apt/sources.list.d/
COPY --from=nvidia /etc/apt/trusted.gpg /etc/apt/trusted.gpg.d/cuda.gpg
# See b/142337634#comment28
RUN sed -i 's/deb https:\/\/developer.download.nvidia.com/deb http:\/\/developer.download.nvidia.com/' /etc/apt/sources.list.d/*.list
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was a workaround to download the packages over http.

However, NVIDIA servers forces https now.

Removing the work-around now that we can fetch package over https with apt.

We used to download the nvidia packages using apt over http. However
this is not supported anymore causing a build failure.

I found that `apt` was failing to connect over https to the NVIDIA
download servers because of the `libgnutls.so` included in conda which
was used in place of the default version when we updated the
`LD_LIBRARY_PATH`. See the bug below for full context.

http://b/197989446
@rosbo rosbo force-pushed the fix-apt-certificates branch from 0dd589b to 9d12541 Compare August 30, 2021 17:01
@rosbo rosbo requested a review from Philmod August 31, 2021 16:59
@rosbo rosbo merged commit a4e6f95 into main Aug 31, 2021
@rosbo rosbo deleted the fix-apt-certificates branch August 31, 2021 20:19
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.

3 participants