sudo apt update errors

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

sudo apt update errors

Chris-2
Running 'sudo apt update' I've been seeing these errors for the past
few days:

AppStream system cache was updated, but problems were found: Metadata
files have errors: /var/cache/app-info/xmls/fwupd.xml

Reading package lists... Done

E: Problem executing scripts APT::Update::Post-Invoke-Success 'if
/usr/bin/test -w /var/cache/app-info -a -e /usr/bin/appstreamcli; then
appstreamcli refresh-cache > /dev/null; fi'

E: Sub-process returned an error code

I have appstreamcli version:

appstreamcli --version
AppStream CLI tool version: 0.10.6

Running sudo appstreamcli refresh --force gives me:

AppStream system cache was updated, but problems were found: Metadata
files have errors: /var/cache/app-info/xmls/fwupd.xml

The complete output of 'sudo apt update' is here:

sudo apt update
[sudo] password for chris: 
Ign:1 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:2 http://dl.google.com/linux/chrome/deb stable
Release                     
Hit:3 http://us.archive.ubuntu.com/ubuntu xenial
InRelease                     
Get:5 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease [109
kB]    
Hit:6 http://archive.canonical.com/ubuntu xenial
InRelease                     
Get:7 http://security.ubuntu.com/ubuntu xenial-security InRelease [107
kB]     
Hit:8 http://archive.ubuntu.com/ubuntu xenial
InRelease                        
Hit:9 http://ppa.launchpad.net/bablu-boy/nutty.0.1/ubuntu xenial
InRelease     
Get:10 http://us.archive.ubuntu.com/ubuntu xenial-backports InRelease
[107 kB] 
Hit:11 http://ppa.launchpad.net/elementary-os/stable/ubuntu xenial
InRelease   
Hit:12 http://ppa.launchpad.net/noobslab/apps/ubuntu xenial
InRelease          
Hit:13 https://dl.winehq.org/wine-builds/ubuntu xenial
InRelease              
Hit:4 https://cfhcable.dl.sourceforge.net/project/ubuntuzilla/mozilla/a
pt all InRelease
Hit:14 http://ppa.launchpad.net/peterlevi/ppa/ubuntu xenial
InRelease         
Get:16 http://us.archive.ubuntu.com/ubuntu xenial-updates/restricted
Sources [2,528 B]
Get:17 http://us.archive.ubuntu.com/ubuntu xenial-updates/restricted
amd64 Packages [7,564 B]
Get:18 http://us.archive.ubuntu.com/ubuntu xenial-updates/restricted
i386 Packages [7,544 B]
Get:19 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe
amd64 DEP-11 Metadata [247 kB]
Get:20 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe DEP-
11 64x64 Icons [333 kB]
Get:21 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64
Packages [819 kB]
Get:22 http://security.ubuntu.com/ubuntu xenial-security/universe amd64
DEP-11 Metadata [107 kB]
Get:23 http://security.ubuntu.com/ubuntu xenial-security/universe DEP-
11 64x64 Icons [147 kB]
Get:24 http://us.archive.ubuntu.com/ubuntu xenial-updates/main i386
Packages [746 kB]
Get:25 http://security.ubuntu.com/ubuntu xenial-security/main amd64
DEP-11 Metadata [67.7 kB]
Get:26 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64
DEP-11 Metadata [318 kB]
Get:27 http://us.archive.ubuntu.com/ubuntu xenial-updates/main DEP-11
64x64 Icons [238 kB]
Get:28 http://security.ubuntu.com/ubuntu xenial-security/main DEP-11
64x64 Icons [68.0 kB]
Get:29 http://us.archive.ubuntu.com/ubuntu xenial-updates/multiverse
amd64 DEP-11 Metadata [5,960 B]
Get:30 http://us.archive.ubuntu.com/ubuntu xenial-backports/universe
amd64 DEP-11 Metadata [5,100 B]
Get:31 http://us.archive.ubuntu.com/ubuntu xenial-backports/main amd64
DEP-11 Metadata [3,328 B]
Fetched 3,446 kB in 4s (747 kB/s)   
AppStream system cache was updated, but problems were found: Metadata
files have errors: /var/cache/app-info/xmls/fwupd.xml
Reading package lists... Done
E: Problem executing scripts APT::Update::Post-Invoke-Success 'if
/usr/bin/test -w /var/cache/app-info -a -e /usr/bin/appstreamcli; then
appstreamcli refresh-cache > /dev/null; fi'
E: Sub-process returned an error code

Running it a second time has different output and the errors have
disappeared:

sudo apt update
[sudo] password for chris: 
Ign:1 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:2 http://dl.google.com/linux/chrome/deb stable
Release                                                                
                                                              
Hit:4 http://us.archive.ubuntu.com/ubuntu xenial
InRelease                                                              
                                                                
Hit:5 http://us.archive.ubuntu.com/ubuntu xenial-updates
InRelease                                                              
                                                        
Hit:6 http://ppa.launchpad.net/bablu-boy/nutty.0.1/ubuntu xenial
InRelease                                                              
                                   
Hit:7 http://security.ubuntu.com/ubuntu xenial-security
InRelease                                                              
                                       
Hit:8 http://archive.ubuntu.com/ubuntu xenial
InRelease                                                              
                                                 
Hit:9 http://archive.canonical.com/ubuntu xenial
InRelease                                                              
                        
Hit:10 http://us.archive.ubuntu.com/ubuntu xenial-backports
InRelease                                                     
Hit:11 http://ppa.launchpad.net/elementary-os/stable/ubuntu xenial
InRelease                        
Hit:12 http://ppa.launchpad.net/noobslab/apps/ubuntu xenial
InRelease         
Hit:13 http://ppa.launchpad.net/peterlevi/ppa/ubuntu xenial InRelease
Hit:14 https://dl.winehq.org/wine-builds/ubuntu xenial InRelease
Hit:3 https://phoenixnap.dl.sourceforge.net/project/ubuntuzilla/mozilla
/apt all InRelease
Reading package lists... Done 
Building dependency tree       
Reading state information... Done
10 packages can be upgraded. Run 'apt list --upgradable' to see them.

Should I just remove the /var/cache/app-info/xmls/fwupd.xml and run
'sudo apt update' again? And, if so will this rebuild the xml file?

--
Chris
KeyID 0xE372A7DA98E6705C
31.11972; -97.90167 (Elev. 1092 ft)
07:43:19 up 6 days, 14:48, 1 user, load average: 1.12, 1.40, 1.13
Description: Ubuntu 16.04.5 LTS, kernel 4.15.0-29-generic

--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

signature.asc (188 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: sudo apt update errors

Liam Proven
On Tue, 31 Jul 2018 at 15:02, Chris <[hidden email]> wrote:
>
> Running 'sudo apt update' I've been seeing these errors for the past
> few days:
>
> AppStream system cache was updated, but problems were found: Metadata
> files have errors: /var/cache/app-info/xmls/fwupd.xml

I had that yesterday.

Just run:

sudo apt clean

That empties the cache.

Then refresh:

sudo apt update

And you should be good to go.

--
Liam Proven - Profile: https://about.me/liamproven
Email: [hidden email] - Google Mail/Hangouts/Plus: [hidden email]
Twitter/Facebook/Flickr: lproven - Skype/LinkedIn: liamproven
UK: +44 7939-087884 - ČR (+ WhatsApp/Telegram/Signal): +420 702 829 053

--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Reply | Threaded
Open this post in threaded view
|

Re: sudo apt update errors

Chris-2
On Tue, 2018-07-31 at 15:07 +0200, Liam Proven wrote:

> On Tue, 31 Jul 2018 at 15:02, Chris <[hidden email]> wrote:
> >
> >
> > Running 'sudo apt update' I've been seeing these errors for the
> > past
> > few days:
> >
> > AppStream system cache was updated, but problems were found:
> > Metadata
> > files have errors: /var/cache/app-info/xmls/fwupd.xml
> I had that yesterday.
>
> Just run:
>
> sudo apt clean
>
> That empties the cache.
>
> Then refresh:
>
> sudo apt update
>
> And you should be good to go.
>
Thanks Liam, that did the trick. Appreciate the quick reply

--
Chris
KeyID 0xE372A7DA98E6705C
31.11972; -97.90167 (Elev. 1092 ft)
08:21:25 up 6 days, 15:26, 1 user, load average: 0.61, 0.89, 0.88
Description: Ubuntu 16.04.5 LTS, kernel 4.15.0-29-generic

--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

signature.asc (188 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: sudo apt update errors

Liam Proven
On Tue, 31 Jul 2018 at 15:32, Chris <[hidden email]> wrote:

> Thanks Liam, that did the trick. Appreciate the quick reply

You're welcome. It's always pleasant when it's a simple clear one for once. :-)


--
Liam Proven - Profile: https://about.me/liamproven
Email: [hidden email] - Google Mail/Hangouts/Plus: [hidden email]
Twitter/Facebook/Flickr: lproven - Skype/LinkedIn: liamproven
UK: +44 7939-087884 - ČR (+ WhatsApp/Telegram/Signal): +420 702 829 053

--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Reply | Threaded
Open this post in threaded view
|

Re: sudo apt update errors

Chris-2
In reply to this post by Chris-2
On Tue, 2018-07-31 at 08:30 -0500, Chris wrote:

> On Tue, 2018-07-31 at 15:07 +0200, Liam Proven wrote:
> >
> > On Tue, 31 Jul 2018 at 15:02, Chris <[hidden email]>
> > wrote:
> > >
> > >
> > >
> > > Running 'sudo apt update' I've been seeing these errors for the
> > > past
> > > few days:
> > >
> > > AppStream system cache was updated, but problems were found:
> > > Metadata
> > > files have errors: /var/cache/app-info/xmls/fwupd.xml
> > I had that yesterday.
> >
> > Just run:
> >
> > sudo apt clean
> >
> > That empties the cache.
> >
> > Then refresh:
> >
> > sudo apt update
> >
> > And you should be good to go.
> >
> Thanks Liam, that did the trick. Appreciate the quick reply
And, I spoke too soon. Running 'sudo apt update' after I replied I
again get:

Fetched 4,734 kB in 5s (855
kB/s)                                           
AppStream system cache was updated, but problems were found: Metadata
files have errors: /var/cache/app-info/xmls/fwupd.xml
Reading package lists... Done
E: Problem executing scripts APT::Update::Post-Invoke-Success 'if
/usr/bin/test -w /var/cache/app-info -a -e /usr/bin/appstreamcli; then
appstreamcli refresh-cache > /dev/null; fi'
E: Sub-process returned an error code

When run the first time the list of sources is (the XX are mine). Had
to copy list to gedit to find the difference.

Ign:1 http://dl.google.com/linux/chrome/deb stable InRelease XX
Hit:2 http://archive.canonical.com/ubuntu xenial InRelease
XX                   
Hit:4 http://dl.google.com/linux/chrome/deb stable Release
XX                    
Hit:5 http://security.ubuntu.com/ubuntu xenial-security InRelease
XX             
Hit:6 http://ppa.launchpad.net/bablu-boy/nutty.0.1/ubuntu xenial
InRelease XX     
Hit:7 http://archive.ubuntu.com/ubuntu xenial
InRelease                        
Hit:8 http://ppa.launchpad.net/elementary-os/stable/ubuntu xenial
InRelease XX    
Hit:9 http://ppa.launchpad.net/noobslab/apps/ubuntu xenial InRelease
XX           
Hit:10 http://ppa.launchpad.net/peterlevi/ppa/ubuntu xenial InRelease
XX
Hit:11 https://dl.winehq.org/wine-builds/ubuntu xenial InRelease XX  
Hit:3 https://phoenixnap.dl.sourceforge.net/project/ubuntuzilla/mozilla
/apt all InRelease XX
Hit:13 http://us.archive.ubuntu.com/ubuntu xenial InRelease XX        
Hit:14 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease XX
Hit:15 http://us.archive.ubuntu.com/ubuntu xenial-backports InRelease
XX

When run a 2nd time where no error appears the list if different. Again
the (YY) are mine

Ign:1 http://dl.google.com/linux/chrome/deb stable InRelease YY
Hit:2 http://dl.google.com/linux/chrome/deb stable Release
YY                  
Hit:3 http://us.archive.ubuntu.com/ubuntu xenial InRelease
YY                   
Hit:5 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease
YY            
Hit:6 http://archive.canonical.com/ubuntu xenial InRelease
YY                    
Hit:7 http://ppa.launchpad.net/bablu-boy/nutty.0.1/ubuntu xenial
InRelease YY   
Hit:8 http://security.ubuntu.com/ubuntu xenial-security InRelease
YY             
Hit:9 http://archive.ubuntu.com/ubuntu xenial InRelease <------------  
                    
Hit:10 http://us.archive.ubuntu.com/ubuntu xenial-backports InRelease
YY        
Hit:11 http://ppa.launchpad.net/elementary-os/stable/ubuntu xenial
InRelease YY  
Hit:12 http://ppa.launchpad.net/noobslab/apps/ubuntu xenial InRelease
YY         
Hit:13 http://ppa.launchpad.net/peterlevi/ppa/ubuntu xenial InRelease
YY
Hit:14 https://dl.winehq.org/wine-builds/ubuntu xenial InRelease YY
Hit:4 https://cytranet.dl.sourceforge.net/project/ubuntuzilla/mozilla/a
pt all InRelease YY

Hit #9 is not in the first run that I can see. Before asking here I did
a Google search and ran across this:

https://askubuntu.com/questions/854168/how-i-can-fix-appstream-cache-up
date-completed-but-some-metadata-was-ignored-d 

Applied the suggested fix however the issue did persist.


--
Chris
KeyID 0xE372A7DA98E6705C
31.11972; -97.90167 (Elev. 1092 ft)
08:35:27 up 6 days, 15:40, 1 user, load average: 0.82, 0.82, 0.84
Description: Ubuntu 16.04.5 LTS, kernel 4.15.0-29-generic

--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

signature.asc (188 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: sudo apt update errors

Chris-2
On Tue, 2018-07-31 at 11:49 -0500, Chris wrote:

> On Tue, 2018-07-31 at 08:30 -0500, Chris wrote:
> >
> > On Tue, 2018-07-31 at 15:07 +0200, Liam Proven wrote:
> > >
> > >
> > > On Tue, 31 Jul 2018 at 15:02, Chris <[hidden email]>
> > > wrote:
> > > >
> > > >
> > > >
> > > >
> > > > Running 'sudo apt update' I've been seeing these errors for the
> > > > past
> > > > few days:
> > > >
> > > > AppStream system cache was updated, but problems were found:
> > > > Metadata
> > > > files have errors: /var/cache/app-info/xmls/fwupd.xml
> > > I had that yesterday.
> > >
> > > Just run:
> > >
> > > sudo apt clean
> > >
> > > That empties the cache.
> > >
> > > Then refresh:
> > >
> > > sudo apt update
> > >
> > > And you should be good to go.
> > >
> > Thanks Liam, that did the trick. Appreciate the quick reply
> And, I spoke too soon. Running 'sudo apt update' after I replied I
> again get:
>
%<----->%

Doing more Googling and without going into a whole lot more detail I'll
just say it's a known issue which apparently has just started sometime
this month.

https://ubuntuforums.org/showthread.php?t=2395753

https://bugs.launchpad.net/ubuntu/xenial/+source/appstream-glib/+bug/17
80442

Here's quite a few Google hits on "Metadata files have errors:
/var/cache/app-info/xmls/fwupd.xml"

https://www.google.com/search?client=ubuntu&channel=fs&q=Metadata+files
+have+errors%3A+%2Fvar%2Fcache%2Fapp-info%2Fxmls%2Ffwupd.xml&ie=utf-
8&oe=utf-8

My conclusion now is that it's a known issue even as far back as the
early days of 16.04 and it appears a fix was released then something
has come along and broken it again.

Bottom line, I'm not going to worry about it any more as I get the
correct output the 2nd time I run 'sudo apt update'.
 
-- 
Chris
KeyID 0xE372A7DA98E6705C
31.11972; -97.90167 (Elev. 1092 ft)
15:50:03 up 6 days, 22:55, 3 users, load average: 1.48, 1.56, 2.55
Description: Ubuntu 16.04.5 LTS, kernel 4.15.0-29-generic

--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

signature.asc (188 bytes) Download Attachment