#868655 gnome-software: Does not show any uninstalled apps

Package:
gnome-software
Source:
gnome-software
Description:
Software Center for GNOME
Submitter:
darthcat
Date:
2017-11-28 21:54:03 UTC
Severity:
important
#868655#5
Date:
2017-07-17 09:26:40 UTC
From:
To:
Dear Maintainer,

On two machines upgraded to Debian Stretch, one had gnome-software that didn't
worked : the "all" tab stayed empty and the difference between the two was a
missing libgnome-menu-3-0 library. Installing it solved the problem.

Best regards.

Philippe

#868655#10
Date:
2017-11-24 22:58:28 UTC
From:
To:
I can't reproduce this issue in either Debian 9.2 "Stretch" or in
Debian Testing. I uninstalled libgnome-menu-3-0 and made sure to
completely stop gnome-software. gnome-software worked fine.

Thanks,
Jeremy Bicha

#868655#17
Date:
2017-11-25 11:49:59 UTC
From:
To:
Le vendredi 24 novembre 2017 à 17:58 -0500, Jeremy Bicha a écrit :
I've just purged it and gnome-software works also fine. I remember
there was no category buttons when I first launched it on two fresh
Debian setups and I had to install libgnome-menu-3-0 to get it work. I
should check what I get on the other computer. Maybe it works now. I'll
let you know.
Thank you so much.
Philippe

#868655#22
Date:
2017-11-25 14:21:17 UTC
From:
To:
Control: retitle -1 gnome-software: Does not show any uninstalled apps
after initial Debian install
Control: tags -1 -unreproducible

Well, there is a bug for a fresh install but I think it's the fault of
the ISO creation process and debian-installer.

Test Case
-------------
1. Boot a Debian GNOME 9.2 live iso.
2. Open the GNOME Software app.

Workaround
---------------
1. Open a terminal and run sudo apt update
2. Then log out and log back in (or you can run pkill gnome-software)
3. Now open the GNOME Software app.

Suggested Fix
------------------
1. The ISOs should have initial appstream metadata pre-installed.
2. If the appstream metadata is not pre-installed (it might not make
sense with the traditional debian-installer), I suggest that the
installer run sudo apt update at the end of the install.

Thanks,
Jeremy Bicha

#868655#31
Date:
2017-11-27 15:43:04 UTC
From:
To:
Le samedi 25 novembre 2017 à 09:21 -0500, Jeremy Bicha a écrit :
Thank you so much Jeremy for this quick and detailed answer. Moreover,
I really like to understand what does not work properly when this is
the case.
Thanks again,
Philippe

#868655#36
Date:
2017-11-27 16:53:47 UTC
From:
To:
The problem is that the DEP-11 icons and metadata need to be present.
'sudo apt update' will download them for you. unattended-upgrades will
do it in the background but you may have to wait a day for that to
run.

gnome-software is always running as a background app and in this case,
it looks like it needs to be restarted (manually or by logging out and
logging back in) for it to recognize the updated DEP-11 files.

I suggest talking to the debian-installer people about this bug.

Thanks,
Jeremy Bicha

#868655#41
Date:
2017-11-28 06:46:45 UTC
From:
To:
2017-11-27 17:53 GMT+01:00 Jeremy Bicha <jbicha@debian.org>:

Aktually, if no metadata is available, GNOME Software will display a
"Preparing software catalog..." panel while running an apt update in
the background to obtain fresh data.
Apparently, that is not working for everyone, and I haven't
investigated yet why.
My guess is though that people do get data from the Snappy store,
Flatpak or the GNOME Shell extensions catalog, which makes GNOME
Software skip the loading screen and jump right to the catalog filled
with less applications. If that is the case, I don't know yet how to
fix this issue without annoying sideeffects, the potentially easiest
thing to do would be to run an apt update once when GNOME SOftware is
first started and it finds no AppStream component with the OS vendor
as origin_kind.

Cheers,
    Matthias

#868655#46
Date:
2017-11-28 21:26:29 UTC
From:
To:
Le mardi 28 novembre 2017 à 07:46 +0100, Matthias Klumpp a écrit :

Dear Matthias,

Thank you for your answer.
As far as I am concerned I am a strict Debian user: I didn't installed
foreign softwares and I discovered this bug just after two fresh Debian
installs.
I hope this will help you.

Best regards,
Philippe

#868655#51
Date:
2017-11-28 21:52:10 UTC
From:
To:
2017-11-28 22:26 GMT+01:00 Darthcat <darthcat@free.fr>:

This will trigger as soon as you have metadata from "foreign" sources
available, which should at least be the case for data from
extensions.gnome.org that gets downloaded. Just installing the GNOME
Software Flatpak plugin will not add a remote source (that is still
explicit), while for the Snappy plugin I am not sure (but since the
Ubuntu store is the only place to get Snaps from, I guess it would
kind of make sense if it automatically did set up the Ubuntu store as
store source).

So, tl;dr, I think you might at least have GNOME extension metadata
also available. But in any case, I need to put some work into this and
figure out what is going on as soon as I have a bit more time - unless
of course, someone else is faster with debugging and patch writing ;-)

Cheers,
    Matthias