1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

NVIDIA Driverの更新でミスって『Signed-By の値が競合します』になったときの対処法

Last updated at Posted at 2023-09-29

状況

NVIDIA Driverの更新をしようと思って

sudo apt-get install -y nvidia-driver-***

して、脳死で

distribution=$(. /etc/os-release;echo $ID$VERSION_ID) \
      && curl -fsSL https://nvidia.github.io/libnvidia-container/gpgkey | sudo gpg --dearmor -o /usr/share/keyrings/nvidia-container-toolkit-keyring.gpg \
      && curl -s -L https://nvidia.github.io/libnvidia-container/experimental/$distribution/libnvidia-container.list | \
         sed 's#deb https://#deb [signed-by=/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg] https://#g' | \
         sudo tee /etc/apt/sources.list.d/nvidia-container-toolkit.list

したら、

user:~/$ sudo apt update
[sudo] user のパスワード: 
E: ソース https://nvidia.github.io/libnvidia-container/stable/ubuntu18.04/amd64/ / に関してオプション Signed-By の値が競合します: /usr/share/keyrings/libnvidia-container-tools-keyring.gpg != /usr/share/keyrings/nvidia-container-toolkit-keyring.gpg
E: ソース https://nvidia.github.io/libnvidia-container/stable/ubuntu18.04/amd64/ / に関してオプション Signed-By の値が競合します: /usr/share/keyrings/libnvidia-container-tools-keyring.gpg != 
E: ソースのリストを読むことができません。

あーーー...

解決法

cat /etc/apt/sources.list.d/nvidia-container-toolkit.list

したらnvidia-driver系が複数ごろごろしてたので

sudo rm nvidia-container-runtime.list*
sudo rm nvidia-docker.list*

でOK。

参考

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?