Bug 453571

Summary: Discover does not show KDE apps from KDE Neon (User) repositories
Product: [KDE Neon] neon Reporter: thebluequasar
Component: Packages User EditionAssignee: Neon Bugs <neon-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: bugseforuns, jr, nate, neon-bugs, ryuichi.ya220, sitter, watisthispoo
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: KDE Neon User repo missing from Discover sources
Discover Main Window after Launch

Description thebluequasar 2022-05-09 10:08:04 UTC
SUMMARY
Discover does not show KDE apps from KDE Neon (User) repositories

STEPS TO REPRODUCE
1. Open Discover and search for any apps from KDE (DigiKam, Krita, Elisa, etc.)
2. Open any of the apps found, click on the sources button on the top right.
3. There are only Flatpak and Snap versions available, even though the apps are available in KDE Neon (User) repositories (that can be verified via a package manager or command line tools).

OBSERVED RESULT
Discover cannot show KDE apps from KDE Neon repositories, only Snap and Flatpak packages can be found. It can't even show KDE apps that are already installed from KDE Neon repos in the “Installed” section.

EXPECTED RESULT
Discover should and used to find KDE apps from distribution repositories (here, it KDE Neon User).

SOFTWARE/OS VERSIONS
Operating System: KDE Neon User Edition 
KDE Plasma Version: 5.24.5
KDE Frameworks Version: 5.93.0
Qt Version: 5.15.3
Discover Version: 5.24.5
Kernel: 5.13.0.40-generic (64bit)
Comment 1 Nate Graham 2022-05-09 14:54:28 UTC
On the app page, do you see a "Sources" menu in the top-right corner? If you click on it, do you see the distro repo version in there somewhere?
Comment 2 thebluequasar 2022-05-09 15:49:18 UTC
Created attachment 148679 [details]
KDE Neon User repo missing from Discover sources
Comment 3 thebluequasar 2022-05-09 15:51:14 UTC
(In reply to Nate Graham from comment #1)
> On the app page, do you see a "Sources" menu in the top-right corner? If you
> click on it, do you see the distro repo version in there somewhere?

No, it's just not there anymore. I added a screenshot as well. 
I now noticed that a handful of KDE apps still have KDE Neon User repo on their sources list (like Kontrast, KAlgebra, SubtitleComposer, Koko, and a few others) but almost all others apps don't. Feels more bizarre now.
Comment 4 Nate Graham 2022-05-09 17:50:13 UTC
Thanks. Definitely feels like a distro setup bug.
Comment 5 Patrick Silva 2022-05-10 02:18:02 UTC
Same bug on neon unstable, see bug 449006
Comment 6 thebluequasar 2022-05-13 10:48:11 UTC
I've found quite a simple workaround to fix this problem by the users: Simply disabling the KDE Neon User (or any other repository if you're on other branches like unstable), updating the list of available packages, re-enabling KDE Neon repo and updating packages again has fixed the issue for me. So if any other users run into the same bug, I assume this workaround should work for them, too.
Comment 7 thebluequasar 2022-05-24 09:00:41 UTC
(In reply to Morty from comment #6)
> I've found quite a simple workaround to fix this problem by the users:
> Simply disabling the KDE Neon User (or any other repository if you're on
> other branches like unstable), updating the list of available packages,
> re-enabling KDE Neon repo and updating packages again has fixed the issue
> for me. So if any other users run into the same bug, I assume this
> workaround should work for them, too.

Just to provide an update about this bug and the workaround I suggested: The bug is back after about two weeks and this workaround doesn't work anymore. So, seems it's a bit of a hit-and-miss and may not work on some occasions. 
The bug is actually causing Discover to not show apps from Ubuntu repositories as well. Main window of Discover after launch is also missing all KDE apps that are there (like Krita, Kolourpaint, etc.). Added a screenshot of it, too.
Comment 8 thebluequasar 2022-05-24 09:01:27 UTC
Created attachment 149158 [details]
Discover Main Window after Launch
Comment 9 Patrick Silva 2022-05-24 10:43:06 UTC
(In reply to Morty from comment #7)
> Main window of Discover after launch is also missing
> all KDE apps that are there (like Krita, Kolourpaint, etc.). Added a
> screenshot of it, too.

Can confirm on neon unstable. See bug 446877.
Comment 10 Nate Graham 2022-05-24 13:18:10 UTC
For people affected, can you paste the contents of /etc/apt/sources.list?
Comment 11 Jonathan Riddell 2022-05-24 13:22:28 UTC
*** Bug 446877 has been marked as a duplicate of this bug. ***
Comment 12 Jonathan Riddell 2022-05-24 13:23:44 UTC
I think https://bugs.kde.org/show_bug.cgi?id=446877 is the same as this so marking that as duplicate.

I think this happens when your sources.list doesn't use http://archive.neon.kde.org/ or http://archive.ubuntu.com/

Can a reported please paste /etc/apt/sources.list.d/neon.list and /etc/apt/sources.list ?   What happens if you change to archive.neon.kde.org and archive.ubuntu.com ?
Comment 13 Patrick Silva 2022-05-24 14:16:14 UTC
$ cat /etc/apt/sources.list.d/neon.list
deb http://archive.neon.kde.org/unstable/ focal main
deb-src http://archive.neon.kde.org/unstable/ focal main


$ cat /etc/apt/sources.list
deb http://ubuntu.c3sl.ufpr.br/ubuntu/ focal main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
deb http://ubuntu.c3sl.ufpr.br/ubuntu/ focal-updates main restricted universe multiverse

Changing to...

$ cat /etc/apt/sources.list
deb http://archive.ubuntu.com/ubuntu focal main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu focal-updates main restricted universe multiverse

did not help.
Comment 14 thebluequasar 2022-05-24 14:56:50 UTC
/etc/apt/sources.list : 
deb http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse

and /etc/apt/sources.list.d/neon.list : 
deb http://archive.neon.kde.org/user/ focal main
deb-src http://archive.neon.kde.org/user/ focal main

These are the default repos, so I believe changing to country-specific repositories isn't what caused this bug to occur in my case. And I had not changed these repositories prior to the occurring of this bug.
Comment 15 nttkde 2022-05-24 17:02:31 UTC
So yeah just to recap from my duplicate report, in my case I managed to reproduce the bug on Neon by changing from default ubuntu repos to country-specific ones in sources.list. After that Appstream no longer listed the KDE repo apps. Appstreamcli refresh printed output with possibly some more 'Replaced'... and 'Removed via merge component'... in it but idk if that's significant.

So my neon.list is the default (I don't think there even are other official mirrors for the neon archive ?)

sources.list is changed to country-specific repos, e.g.:
deb http://sv.archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
deb http://sv.archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse
(changing it back to the default doesn't help)

Now I also tried removing neon.list and moving its contents to sources.list but that didn't seem to have an effect.
Comment 16 thebluequasar 2022-05-25 07:44:35 UTC
(In reply to nttkde from comment #15)
> So yeah just to recap from my duplicate report, in my case I managed to
> reproduce the bug on Neon by changing from default ubuntu repos to
> country-specific ones in sources.list. After that Appstream no longer listed
> the KDE repo apps.

So what I understood from your report was that you encountered this bug before changing the default Ubuntu repos; but reproduced it by changing them to country-specific repositories, is that correct?
Comment 17 nttkde 2022-05-25 08:29:05 UTC
(In reply to Morty from comment #16)
> So what I understood from your report was that you encountered this bug
> before changing the default Ubuntu repos; but reproduced it by changing them
> to country-specific repositories, is that correct?

I had been using country repos on my Neon for couple of years and it had been working correctly; then at some point in late 2021 I noticed Discover wasn't showing the KDE apps anymore. So they kinda never were the default ones, but there was some regression.
And yes then I managed to reproduce it in another Neon installation by changing the repos.
Comment 18 thebluequasar 2022-05-25 11:52:37 UTC
(In reply to nttkde from comment #17)
> I had been using country repos on my Neon for couple of years and it had
> been working correctly; then at some point in late 2021 I noticed Discover
> wasn't showing the KDE apps anymore. So they kinda never were the default
> ones, but there was some regression.

Thank you for explaining. 
In that case, I think it's worth mentioning again that I encountered this bug without changing default Ubuntu repositories and using country-specific repos, I'm fully certain of that btw.
So perhaps bug 446877 isn't exactly the same bug and a duplicate of this bug which I have reported?
Comment 19 nttkde 2022-05-25 14:44:08 UTC
Half year ago I could definitely trigger the bug after changing the country repo, but now I tried to reproduce it again in a new Neon installation and couldn't.
So yeah I don't know if something has changed or if there was something more random ongoing after all
Comment 20 thebluequasar 2022-06-17 09:38:37 UTC
Giving yet another update since I felt the information could be useful: For reasons irrelevant to this bug, I performed a system reinstall – while keeping my separate /home partition – and I was very surprised that this bug has returned once again after a week or so. It's quite a tenacious bug I assume, and this isn't good news in that It looks like other users might also not be able to get rid of it even by reinstalling the OS. Specially since KDE Neon is a distribution that's generally easy to use and recommended for novice users.
I'd also like to help fix this bug, so if there is any further information I can give that could help root out this bug, I'd be more than happy to provide them.
Comment 21 Ryan Y 2022-07-28 08:42:48 UTC
I installed KDE Neon User Edition about a week ago and apparently I am facing this bug.

After doing the workaround on the comment 6, many but not all of packages from the main repository started to show up, but the packages from "Focal security/updates" are still not visible. As the result, I can't install/uninstall some packages such as Firefox, Thunderbird and Vim via Discover. 

The content in my /etc/apt/sources.list does not seem problematic:
cat /etc/apt/sources.list
deb http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse 
deb http://security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse 
deb http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse

My system info:
Operating System: KDE neon 5.25
KDE Plasma Version: 5.25.3
KDE Frameworks Version: 5.96.0
Qt Version: 5.15.5
Kernel Version: 5.15.0-41-generic (64-bit)
Discover Version: 5.25.3-0xneon+20.04+focal+release+build61
Comment 22 Patrick Silva 2022-08-24 21:03:51 UTC
fixed on neon unstable after today's updates.
Comment 23 Nate Graham 2022-08-25 05:51:30 UTC
Awesome.
Comment 24 nttkde 2022-08-25 14:14:28 UTC
Can confim that today's Appstream-related update (v 0.15.1 -> 0.15.5) seems to have fixed this also on KDE Neon User Edition. :)
Comment 25 thebluequasar 2022-08-26 10:40:10 UTC
I can confirm it's fixed, too. This is great news. :)