W: 发布文件 /var/lib/apt/lists/partial/_var_cuda-repo-8-0-local_Release 中的“日期”条目无效

W: 发布文件 /var/lib/apt/lists/partial/_var_cuda-repo-8-0-local_Release 中的“日期”条目无效

当我跑步时

$ sudo apt-get update

我明白了

sudo apt-get update                                                
Get:1 file:/var/cuda-repo-8-0-local  InRelease
Ign:1 file:/var/cuda-repo-8-0-local  InRelease
Get:2 file:/var/cuda-repo-8-0-local  Release [574 B]
Get:2 file:/var/cuda-repo-8-0-local  Release [574 B]
Get:3 file:/var/cuda-repo-8-0-local  Release.gpg [819 B]                                                                                   
Get:3 file:/var/cuda-repo-8-0-local  Release.gpg [819 B]                                                          
Hit:4 http://repo.steampowered.com/steam precise InRelease                                                                                                              
Hit:5 http://ppa.launchpad.net/atareao/atareao/ubuntu xenial InRelease                                                                                                  
Ign:6 http://dl.google.com/linux/chrome/deb stable InRelease                                                                                                            
Hit:7 http://security.ubuntu.com/ubuntu xenial-security InRelease                                                                                                       
Hit:8 http://de.archive.ubuntu.com/ubuntu xenial InRelease                                                                                                              
Hit:9 http://de.archive.ubuntu.com/ubuntu xenial-updates InRelease                                                                                                      
Hit:10 http://dl.google.com/linux/chrome/deb stable Release                                                                                                             
Hit:11 http://ppa.launchpad.net/clipgrab-team/ppa/ubuntu xenial InRelease                                                                  
Hit:12 http://storage.googleapis.com/bazel-apt stable InRelease                                                      
Hit:13 http://de.archive.ubuntu.com/ubuntu xenial-backports InRelease                                                     
Hit:14 http://ppa.launchpad.net/fingerprint/fingerprint-gui/ubuntu xenial InRelease                                       
Hit:15 https://download.docker.com/linux/ubuntu xenial InRelease                                   
Hit:16 http://archive.canonical.com/ubuntu xenial InRelease                                        
Hit:17 http://ppa.launchpad.net/git-core/ppa/ubuntu xenial InRelease                               
Hit:18 http://ppa.launchpad.net/webupd8team/java/ubuntu xenial InRelease                           
Ign:19 http://archive.canonical.com precise InRelease                                              
Hit:21 http://archive.canonical.com precise Release 
Hit:22 https://download.sublimetext.com apt/stable/ InRelease
Hit:24 https://packagecloud.io/github/git-lfs/ubuntu xenial InRelease
Reading package lists... Done 
W: Invalid 'Date' entry in Release file /var/lib/apt/lists/partial/_var_cuda-repo-8-0-local_Release
W: http://archive.canonical.com/dists/precise/Release.gpg: Signature by key 630239CC130E1A7FD81A27B140976EAF437D05B5 uses weak digest algorithm (SHA1)

由于以下警告我可以/应该做什么吗?

W: Invalid 'Date' entry in Release file /var/lib/apt/lists/partial/_var_cuda-repo-8-0-local_Release

答案1

首先,您似乎正在运行 16.04 (Xenial),但仍配置了一些旧的 12.04 (Precise) 存储库。您确实应该删除它们。

对于另一个警告,文件可能以某种方式损坏了,无论是在您的计算机上还是在下载它的服务器上。您可以安全地删除它:

sudo rm /var/lib/apt/lists/partial/_var_cuda-repo-8-0-local_Release

甚至删除整个列表文件夹:

sudo rm -rf /var/lib/apt/lists

此后,您必须让 Ubuntu 再次下载/更新所有列表:

sudo apt update

这次警告应该会消失。如果没有,请等待一天或几天再重复,以防文件在服务器上损坏。

相关内容