解决“An error occurred during the signature verification. The repository is not updated and the previous index files will be used.”
apt update遇到报错:
Fetched 8,877 B in 2s (3,732 B/s)
Reading package lists... Done
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://apt.repos.intel.com/mkl all InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY BAC6F0C353D04109
W: Failed to fetch https://apt.repos.intel.com/mkl/dists/all/InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY BAC6F0C353D04109
解决方案:
RUN wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
RUN apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
RUN sh -c 'echo deb https://apt.repos.intel.com/mkl all main > /etc/apt/sources.list.d/intel-mkl.list'
参考:https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/APT-Repository-not-working-signatures-invalid/td-p/1170457/page/2

浙公网安备 33010602011771号