Kubuntu 16.04.1 discover empty after fresh install

Bug #1663695 reported by Damien
30
This bug affects 6 people
Affects Status Importance Assigned to Milestone
appstream (Ubuntu)
Fix Released
Undecided
Unassigned
Xenial
Fix Released
High
Matthias Klumpp
packagekit (Ubuntu)
Invalid
High
Unassigned
Xenial
Invalid
Undecided
Unassigned
plasma-discover (Ubuntu)
Invalid
High
Unassigned
Xenial
Invalid
Undecided
Unassigned

Bug Description

[Impact]

 * A previous update made AppStream use modern-style component-ids, thereby breaking the Qt library if it is reading data from the cache and if that data happens to be a desktop-application.
 * This leads to KDE's Discover not displaying applications.
 * The issue was introduced by a patch to the Xenial version of AppStream, and is not present in any other version of the package in Ubuntu, affecting Xenial only.

[Test Case 1]

 * Update the libappstream-qt package, run Discover: All apps should be loaded correctly.

[Regression Potential]

 * Low, this change affects only the Qt bindings and nothing else. The change is also a simple string value change.

Revision history for this message
Damien (damien.kde) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in plasma-discover (Ubuntu):
status: New → Confirmed
Revision history for this message
Jochen S. (jochen8) wrote :
Revision history for this message
Alberto Salvia Novella (es20490446e) wrote :

Please:

1. Install the "muon" package.
2. If that fixes the problem, mark this report as duplicate of bug #1577918.
3. If it doesn't, in bug #1577918, say this report isn't a duplicate.
4. In this report, for the "packagekit" package, set status back to "confirmed".

Thank you.

description: updated
Changed in plasma-discover (Ubuntu):
status: Confirmed → Invalid
importance: Undecided → High
Changed in packagekit (Ubuntu):
importance: Undecided → High
status: New → Confirmed
Changed in packagekit (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Damien (damien.kde) wrote :

Please read the bug description. I installed muon and that did not solve the problem.
Related bug: https://bugs.kde.org/show_bug.cgi?id=376241 (note that this affects many users).

Revision history for this message
Carlo Vanini (silhusk) wrote :

All packages are marked as "technical" and therefore are hidden from the list in Discover. That's because libAppstreamQt looks for type "desktop" where instead it is "desktop-application" in the metadata.

Revision history for this message
Matthias Klumpp (ximion) wrote :

I just wanted to reject that assumption because the version of AppStream in Xenial was too old, but it turns out you're right: A backport from a newer version broke this, and I didn't notice because my AppStreamQt is also newer (and using a better architecture where this bug can't happen anymore).
So, +1 on the patch. I would probably when we are patching this, also add a few minor fixes to the autopkgtests in Xenial (I might do that tomorrow).

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "change type string from "desktop" to "desktop-application"" seems to be a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. If the attachment isn't a patch, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are member of the ~ubuntu-sponsors, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issue please contact him.]

tags: added: patch
Revision history for this message
Matthias Klumpp (ximion) wrote :

Added a version of this patch which also fixes the automatic tests.

Changed in appstream (Ubuntu):
status: New → Fix Committed
Changed in packagekit (Ubuntu):
status: Incomplete → Fix Released
status: Fix Released → Invalid
Iain Lane (laney)
Changed in appstream (Ubuntu):
status: Fix Committed → Fix Released
Changed in appstream (Ubuntu Xenial):
status: New → Triaged
importance: Undecided → High
Changed in packagekit (Ubuntu Xenial):
status: New → Invalid
Changed in plasma-discover (Ubuntu Xenial):
status: New → Invalid
Matthias Klumpp (ximion)
description: updated
Iain Lane (laney)
Changed in appstream (Ubuntu Xenial):
status: Triaged → In Progress
assignee: nobody → Matthias Klumpp (ximion)
Revision history for this message
Brian Murray (brian-murray) wrote :

Does this not need fixing in Zesty? If that is the case please explain why not in the bug description.

Changed in appstream (Ubuntu Xenial):
status: In Progress → Incomplete
Revision history for this message
Matthias Klumpp (ximion) wrote :

I added an explanation (basically, a previous bugfix fixing GNOME Software broke this for the Qt bindings).

description: updated
Changed in appstream (Ubuntu Xenial):
status: Incomplete → In Progress
Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello Damien, or anyone else affected,

Accepted appstream into xenial-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/appstream/0.9.4-1ubuntu3 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed.Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in appstream (Ubuntu Xenial):
status: In Progress → Fix Committed
tags: added: verification-needed
Revision history for this message
Anonymous (cicerone55) wrote :

Tested Xenial (0.9.4-1ubuntu3), didn't work.

tags: added: verification-failed
removed: verification-needed
Revision history for this message
Matthias Klumpp (ximion) wrote :

@cicerone55: Are you sure you updated the right package? Please check if libappstreamqt1 is at that particular version, because that's where the bug is located.

Revision history for this message
Carlo Vanini (silhusk) wrote :

It works for me updating libappstreamqt1 to 0.9.4-1ubuntu3 on Xenial 16.04.2.

Can someone else confirm, please?

Matthias Klumpp (ximion)
tags: added: verification-needed
removed: verification-failed
Revision history for this message
Mario Badr (mariobadr) wrote :

Muon did not work.

sudo apt install libappstreamqt1/xenial-proposed did work after following the EnableProposed on Xenial 16.04.2.

Thanks!

Revision history for this message
Matthias Klumpp (ximion) wrote :

Okay, 3:1 for the "the update works" camp, as it looks like ;-)

tags: added: verification-done
removed: verification-needed
Revision history for this message
Anonymous (cicerone55) wrote :

I don't recall what I did last time but now I installed it again and it works.

Revision history for this message
Robie Basak (racb) wrote :

So it looks like this was a regression caused by the fix for bug 1644498 landing in Xenial?

tags: added: regression-update
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package appstream - 0.9.4-1ubuntu3

---------------
appstream (0.9.4-1ubuntu3) xenial; urgency=medium

  [ Carlo Vanini ]
  * modern-metadata-in-qt.patch: Fix type label for desktop
    applications in the Qt library. (LP: #1663695)

  [ Matthias Klumpp ]
  * Fix autopkgtest tests.

 -- Matthias Klumpp <email address hidden> Fri, 31 Mar 2017 13:21:01 +0100

Changed in appstream (Ubuntu Xenial):
status: Fix Committed → Fix Released
Revision history for this message
Robie Basak (racb) wrote : Update Released

The verification of the Stable Release Update for appstream has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.