我们在build镜像的时候在dockerfile中加入下载curl命令,然后下载ollama的命令,但是持续遇到报错。请问是否有其他方法。
Step 9/18 : RUN apt-get update && apt-get install -y --no-install-recommends curl && rm -rf /var/lib/apt/lists/* ---> Running in 5c2fbcffd372 Get:1 http://archive.ubuntu.com/ubuntu jammy InRelease [270 kB] Get:2 http://security.ubuntu.com/ubuntu jammy-security InRelease [129 kB] Get:3 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64 InRelease [1581 B] Err:3 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64 InRelease At least one invalid signature was encountered. Err:2 http://security.ubuntu.com/ubuntu jammy-security InRelease At least one invalid signature was encountered. Err:1 http://archive.ubuntu.com/ubuntu jammy InRelease At least one invalid signature was encountered. Get:4 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [128 kB] Err:4 http://archive.ubuntu.com/ubuntu jammy-updates InRelease At least one invalid signature was encountered. Get:5 http://archive.ubuntu.com/ubuntu jammy-backports InRelease [127 kB] Err:5 http://archive.ubuntu.com/ubuntu jammy-backports InRelease At least one invalid signature was encountered. Reading package lists... W: GPG error: https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64 InRelease: At least one invalid signature was encountered. E: The repository 'https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64 InRelease' is not signed. W: GPG error: http://security.ubuntu.com/ubuntu jammy-security InRelease: At least one invalid signature was encountered. E: The repository 'http://security.ubuntu.com/ubuntu jammy-security InRelease' is not signed. W: GPG error: http://archive.ubuntu.com/ubuntu jammy InRelease: At least one invalid signature was encountered. E: The repository 'http://archive.ubuntu.com/ubuntu jammy InRelease' is not signed. W: GPG error: http://archive.ubuntu.com/ubuntu jammy-updates InRelease: At least one invalid signature was encountered. E: The repository 'http://archive.ubuntu.com/ubuntu jammy-updates InRelease' is not signed. W: GPG error: http://archive.ubuntu.com/ubuntu jammy-backports InRelease: At least one invalid signature was encountered. E: The repository 'http://archive.ubuntu.com/ubuntu jammy-backports InRelease' is not signed. The command '/bin/sh -c apt-get update && apt-get install -y --no-install-recommends curl && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 100
我们在build镜像的时候在dockerfile中加入下载curl命令,然后下载ollama的命令,但是持续遇到报错。请问是否有其他方法。
Step 9/18 : RUN apt-get update && apt-get install -y --no-install-recommends curl && rm -rf /var/lib/apt/lists/* ---> Running in 5c2fbcffd372 Get:1 http://archive.ubuntu.com/ubuntu jammy InRelease [270 kB] Get:2 http://security.ubuntu.com/ubuntu jammy-security InRelease [129 kB] Get:3 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64 InRelease [1581 B] Err:3 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64 InRelease At least one invalid signature was encountered. Err:2 http://security.ubuntu.com/ubuntu jammy-security InRelease At least one invalid signature was encountered. Err:1 http://archive.ubuntu.com/ubuntu jammy InRelease At least one invalid signature was encountered. Get:4 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [128 kB] Err:4 http://archive.ubuntu.com/ubuntu jammy-updates InRelease At least one invalid signature was encountered. Get:5 http://archive.ubuntu.com/ubuntu jammy-backports InRelease [127 kB] Err:5 http://archive.ubuntu.com/ubuntu jammy-backports InRelease At least one invalid signature was encountered. Reading package lists... W: GPG error: https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64 InRelease: At least one invalid signature was encountered. E: The repository 'https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64 InRelease' is not signed. W: GPG error: http://security.ubuntu.com/ubuntu jammy-security InRelease: At least one invalid signature was encountered. E: The repository 'http://security.ubuntu.com/ubuntu jammy-security InRelease' is not signed. W: GPG error: http://archive.ubuntu.com/ubuntu jammy InRelease: At least one invalid signature was encountered. E: The repository 'http://archive.ubuntu.com/ubuntu jammy InRelease' is not signed. W: GPG error: http://archive.ubuntu.com/ubuntu jammy-updates InRelease: At least one invalid signature was encountered. E: The repository 'http://archive.ubuntu.com/ubuntu jammy-updates InRelease' is not signed. W: GPG error: http://archive.ubuntu.com/ubuntu jammy-backports InRelease: At least one invalid signature was encountered. E: The repository 'http://archive.ubuntu.com/ubuntu jammy-backports InRelease' is not signed. The command '/bin/sh -c apt-get update && apt-get install -y --no-install-recommends curl && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 100