Closed6

apt-keyの非推奨ワーニング

rrrrrrryorrrrrrryo

nvidia-docker2を使っているWSL2で、apt-get updateすると、apt-keyのワーニングが出る

...
W: https://nvidia.github.io/libnvidia-container/stable/ubuntu18.04/amd64/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
W: https://nvidia.github.io/nvidia-container-runtime/stable/ubuntu18.04/amd64/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
W: https://nvidia.github.io/nvidia-docker/ubuntu18.04/amd64/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
rrrrrrryorrrrrrryo

/etc/apt/keyringsにgpg-keyを追加する。以下の操作をした。

curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey -o nvidia-docker.asc
sudo mv nvidia-docker.asc /etc/apt/keyrings/
rrrrrrryorrrrrrryo

/etc/apt/souces.list.d/nvidia-docker.listを以下のように変更してみた。

deb [arch=amd64 signed-by=/etc/apt/keyrings/nvidia-docker.asc] https://nvidia.github.io/libnvidia-container/stable/ubuntu18.04/$(ARCH) /
deb [arch=amd64 signed-by=/etc/apt/keyrings/nvidia-docker.asc] https://nvidia.github.io/nvidia-container-runtime/stable/ubuntu18.04/$(ARCH) /
deb [arch=amd64 signed-by=/etc/apt/keyrings/nvidia-docker.asc] https://nvidia.github.io/nvidia-docker/ubuntu18.04/$(ARCH) /
このスクラップは2023/02/27にクローズされました