[Bug 1554023] Re: Perform an apt update if there is no appstream available
William Hua
1554023 at bugs.launchpad.net
Wed Mar 9 20:00:52 UTC 2016
Ah, makes sense, thanks for the explanation!
> So ideally, if no metadata is detected (not-installed application
count is zero or close to zero)
How do we define close to zero? On my system, there are 5 apps that
always seem to have AS_APP_STATE_UNKNOWN:
gs_plugin_appstream_startup: 8: 'UEFI-dummy-dev0' ('UEFI Updates'): 0
gs_plugin_appstream_startup: 9: 'com.via.VL811.firmware' ('VL811 Firmware'): 0
gs_plugin_appstream_startup: 10: 'com.via.VL811+.firmware' ('VL811+ Firmware'): 0
gs_plugin_appstream_startup: 11: 'com.via.VL812.firmware' ('VL812 Firmware'): 0
gs_plugin_appstream_startup: 12: 'com.via.VL812_B2.firmware' ('VL812 B2 Firmware'): 0
So I'm not really sure how to precisely define when an apt update is
required or not.
** Changed in: gnome-software (Ubuntu)
Status: New => In Progress
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to livecd-rootfs in Ubuntu.
https://bugs.launchpad.net/bugs/1554023
Title:
Perform an apt update if there is no appstream available
Status in gnome-software package in Ubuntu:
In Progress
Status in livecd-rootfs package in Ubuntu:
Fix Released
Bug description:
appstream's IndexTarget doesn't take effect until the first 'apt
update' after it is installed. This means you get no installed
software after first installing g-s until you update again.
I tried to ask apt's developers if they could see a way to fix this
but on first reply they deny there is a problem at all.
http://comments.gmane.org/gmane.linux.debian.apt.devel/30085
So I think we have to workaround the problem somehow. First strawman:
have gnome-software do an 'update' on first launch if it finds no
appstream metadata and /etc/apt/apt.conf.d/50appstream is installed.
We also need to fix this in livecd-rootfs for new installs. I guess
there we can add a hook to do an update as part of the build.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-software/+bug/1554023/+subscriptions
More information about the foundations-bugs
mailing list