ubuntu 16.04 apt-get更新错误:找不到文件-/ var / cuda-repo-8-0-rc / Packages


0

sudo apt-get update在终端中执行时,出现此错误消息。谁能帮我?

Get:1 file:/var/cuda-repo-8-0-rc  InRelease
Ign:1 file:/var/cuda-repo-8-0-rc  InRelease
Get:2 file:/var/cuda-repo-8-0-rc  Release
Ign:2 file:/var/cuda-repo-8-0-rc  Release
Get:3 file:/var/cuda-repo-8-0-rc  Packages
Ign:3 file:/var/cuda-repo-8-0-rc  Packages
Get:4 file:/var/cuda-repo-8-0-rc  Translation-en_US
Ign:4 file:/var/cuda-repo-8-0-rc  Translation-en_US
Get:5 file:/var/cuda-repo-8-0-rc  Translation-en
Ign:5 file:/var/cuda-repo-8-0-rc  Translation-en
Get:3 file:/var/cuda-repo-8-0-rc  Packages
Ign:3 file:/var/cuda-repo-8-0-rc  Packages
Get:4 file:/var/cuda-repo-8-0-rc  Translation-en_US
Ign:4 file:/var/cuda-repo-8-0-rc  Translation-en_US
Get:5 file:/var/cuda-repo-8-0-rc  Translation-en
Ign:5 file:/var/cuda-repo-8-0-rc  Translation-en
Get:3 file:/var/cuda-repo-8-0-rc  Packages
Ign:3 file:/var/cuda-repo-8-0-rc  Packages
Get:4 file:/var/cuda-repo-8-0-rc  Translation-en_US
Ign:4 file:/var/cuda-repo-8-0-rc  Translation-en_US
Get:5 file:/var/cuda-repo-8-0-rc  Translation-en
Ign:5 file:/var/cuda-repo-8-0-rc  Translation-en
Get:3 file:/var/cuda-repo-8-0-rc  Packages
Ign:3 file:/var/cuda-repo-8-0-rc  Packages
Get:4 file:/var/cuda-repo-8-0-rc  Translation-en_US
Ign:4 file:/var/cuda-repo-8-0-rc  Translation-en_US
Get:5 file:/var/cuda-repo-8-0-rc  Translation-en
Ign:5 file:/var/cuda-repo-8-0-rc  Translation-en
Get:3 file:/var/cuda-repo-8-0-rc  Packages
Ign:3 file:/var/cuda-repo-8-0-rc  Packages
Get:4 file:/var/cuda-repo-8-0-rc  Translation-en_US
Ign:4 file:/var/cuda-repo-8-0-rc  Translation-en_US
Get:5 file:/var/cuda-repo-8-0-rc  Translation-en
Ign:5 file:/var/cuda-repo-8-0-rc  Translation-en
Get:3 file:/var/cuda-repo-8-0-rc  Packages
Err:3 file:/var/cuda-repo-8-0-rc  Packages
  File not found - /var/cuda-repo-8-0-rc/Packages (2: No such file or directory)
Get:4 file:/var/cuda-repo-8-0-rc  Translation-en_US
Ign:4 file:/var/cuda-repo-8-0-rc  Translation-en_US
Get:6 http://security.ubuntu.com/ubuntu xenial-security InRelease [94.5 kB]                                                                                                                        
Hit:7 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu xenial InRelease                          
Hit:8 http://cn.archive.ubuntu.com/ubuntu xenial InRelease                                                 
Hit:9 http://storage.googleapis.com/bazel-apt stable InRelease                                            
Hit:11 http://cn.archive.ubuntu.com/ubuntu xenial-updates InRelease                  
Get:10 https://apt.dockerproject.org/repo ubuntu-xenial InRelease [20.6 kB]           
Hit:12 http://cn.archive.ubuntu.com/ubuntu xenial-backports InRelease                   
Get:13 https://apt.dockerproject.org/repo ubuntu-xenial/main amd64 Packages [1,719 B]
Hit:14 https://apt.dockerproject.org/repo ubuntu-xenial/main i386 Packages
Ign:14 https://apt.dockerproject.org/repo ubuntu-xenial/main i386 Packages
Hit:14 https://apt.dockerproject.org/repo ubuntu-xenial/main i386 Packages
Ign:14 https://apt.dockerproject.org/repo ubuntu-xenial/main i386 Packages
Hit:14 https://apt.dockerproject.org/repo ubuntu-xenial/main i386 Packages
Err:14 https://apt.dockerproject.org/repo ubuntu-xenial/main i386 Packages
  Empty files can't be valid archives
Fetched 117 kB in 3s (36.8 kB/s)
Reading package lists... Done
W: The repository 'file:/var/cuda-repo-8-0-rc  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: http://storage.googleapis.com/bazel-apt/dists/stable/InRelease: Signature by key 71A1D0EFCFEB6281FD0437C93D5919B448457EE0 uses weak digest algorithm (SHA1)
N: Skipping acquire of configured file 'jdk1.8/binary-i386/Packages' as repository 'http://storage.googleapis.com/bazel-apt stable InRelease' doesn't support architecture 'i386'
E: Failed to fetch file:/var/cuda-repo-8-0-rc/Packages  File not found - /var/cuda-repo-8-0-rc/Packages (2: No such file or directory)
E: Failed to fetch store:/var/lib/apt/lists/partial/apt.dockerproject.org_repo_dists_ubuntu-xenial_main_binary-i386_Packages  Empty files can't be valid archives
E: Some index files failed to download. They have been ignored, or old ones used instead.

Answers:


0

在删除软件包后,我在Ubuntu 16.04LTS上遇到了一个类似的问题:“ cuda-repo-ubuntu1504-7-5-local_7.5-18_amd64.deb”: sudo dpkg -r cuda-repo-ubuntu1504-7-5-local

使用下一个命令解决它:sudo dpkg --purge cuda-repo-ubuntu1504-7-5-local

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.