Ubuntuでapt-get update実行時に、次のようなエラーが出ることがある。
Reading package lists... Done
W: The repository 'file:/var/cuda-repo-8-0-local-ga2 Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'file:/var/cuda-repo-9-0-local Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch file:/var/cuda-repo-8-0-local-ga2/Packages File not found - /var/cuda-repo-8-0-local-ga2/Packages (2: No such file or directory)
E: Failed to fetch file:/var/cuda-repo-9-0-local/Packages File not found - /var/cuda-repo-9-0-local/Packages (2: No such file or directory)
E: Some index files failed to download. They have been ignored, or old ones used instead.
下記のコマンドを実行したら直った。
# rm /etc/apt/sources.list.d/cuda*