apt update 错误是什么意思?

apt update 错误是什么意思?

运行“sudo apt update”后它似乎可以工作,但我收到此错误“AppStream 缓存更新完成,但由于错误,某些元数据被忽略。”

这是什么意思?ubuntu 16.04 LTS

Hit:1 http://ca.archive.ubuntu.com/ubuntu xenial InRelease
Get:2 http://security.ubuntu.com/ubuntu xenial-security InRelease [107 kB]
Get:3 http://ca.archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]       
Get:4 http://ca.archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]                
Get:5 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages [518 kB]
Get:6 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [803 kB]
Get:7 http://security.ubuntu.com/ubuntu xenial-security/main i386 Packages [456 kB]
Get:8 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main i386 Packages [733 kB]
Get:9 http://security.ubuntu.com/ubuntu xenial-security/main Translation-en [222 kB]    
Get:10 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main Translation-en [331 kB]        
Get:11 http://security.ubuntu.com/ubuntu xenial-security/main amd64 DEP-11 Metadata [67.7 kB]         
Get:12 http://security.ubuntu.com/ubuntu xenial-security/main DEP-11 64x64 Icons [68.0 kB]                                                                                                                         
Get:13 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 DEP-11 Metadata [107 kB]                                                                                                                   
Get:14 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 DEP-11 Metadata [318 kB]                                                                                                                      
Get:15 http://security.ubuntu.com/ubuntu xenial-security/universe DEP-11 64x64 Icons [142 kB]                                                                                                                      
Get:16 http://ca.archive.ubuntu.com/ubuntu xenial-updates/main DEP-11 64x64 Icons [228 kB]                                                                                                                         
Get:17 http://ca.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [640 kB]                                                                                                                         
Get:18 http://ca.archive.ubuntu.com/ubuntu xenial-updates/universe i386 Packages [584 kB]                                                                                                                          
Get:19 http://ca.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 DEP-11 Metadata [246 kB]                                                                                                                  
Get:20 http://ca.archive.ubuntu.com/ubuntu xenial-updates/universe DEP-11 64x64 Icons [331 kB]                                                                                                                     
Get:21 http://ca.archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages [16.4 kB]                                                                                                                      
Get:22 http://ca.archive.ubuntu.com/ubuntu xenial-updates/multiverse i386 Packages [15.5 kB]                                                                                                                       
Get:23 http://ca.archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 DEP-11 Metadata [5,964 B]                                                                                                               
Get:24 http://ca.archive.ubuntu.com/ubuntu xenial-backports/main amd64 DEP-11 Metadata [3,324 B]                                                                                                                   
Get:25 http://ca.archive.ubuntu.com/ubuntu xenial-backports/universe amd64 DEP-11 Metadata [5,100 B]                                                                                                               
Fetched 6,165 kB in 12s (495 kB/s)                                                                                                                                                                                 
AppStream cache update completed, but some metadata was ignored due to errors.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
1 package can be upgraded. Run 'apt list --upgradable' to see it.

答案1

我在 SE 的搜索栏中查找了你提供的错误消息。它指向这个问题换句话说,这个问题似乎是重复的(但我还没有资格将其标记为重复。)获得最高投票的答案似乎也解决了这个问题。

我的答案是这样的:请查看上面链接的问题帖子,并告诉我们您的问题解决得如何。祝您好运!

答案2

该重复问题提供的答案很复杂,需要遵循其他问题的条件步骤。答案是在您的终端中输入此内容,并且只输入此内容:

sudo apt install appstream/xenial-backports

然后:

sudo apt update
sudo apt upgrade

这就是你需要做的全部。
我将添加对重复问题的回答。

编辑:确保行号
deb http://archive.ubuntu.com/ubuntu release-backports main restricted universe multiverse
在内/etc/apt/sources.list,并且前面没有井号。应该已经很好了,但请检查一下。

相关内容