Bug 493285 - Search fails to find apt package
Summary: Search fails to find apt package
Status: RESOLVED INTENTIONAL
Alias: None
Product: Discover
Classification: Applications
Component: discover (other bugs)
Version First Reported In: 5.27.11
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-17 17:24 UTC by pqwoerituytrueiwoq
Modified: 2024-09-18 16:43 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Screenshot (232.03 KB, image/png)
2024-09-17 17:24 UTC, pqwoerituytrueiwoq
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pqwoerituytrueiwoq 2024-09-17 17:24:18 UTC
Created attachment 173783 [details]
Screenshot

SUMMARY
Search is unable to find packages even by exact name that are in apt

STEPS TO REPRODUCE
1. Add xtradeb repo - https://xtradeb.net/wiki/how-to-install-applications-from-this-web-site/
2. make sure sources are upto date (apt-get update)
3. click apt link on xtradeb (eg: ungoogled-chromium or czkawka)
4. opens in discover
5. unable to find package
6. get confused as to how/why that is possible
7. run apt-cache policy ungoogled-chromium
8. well that sees it no problem...

OBSERVED RESULT
Discover is unable to find a perfect match that apt can find...

EXPECTED RESULT
If it is in apt it should sow up in discover when there is a perfect match

Even if it is something that is normally hidden to try to simplify things for new users, if it is a exact match it should show up

SOFTWARE/OS VERSIONS
Operating System: Kubuntu 24.04
KDE Plasma Version: 5.27.11
KDE Frameworks Version: 5.115.0
Qt Version: 5.15.13
Kernel Version: 6.8.0-44-generic (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 3600 6-Core Processor
Memory: 31.3 GiB of RAM
Graphics Processor: AMD Radeon RX 580 Series
Manufacturer: Micro-Star International Co., Ltd.
Product Name: MS-7B79
System Version: 2.0
ADDITIONAL INFORMATION
Comment 1 Nate Graham 2024-09-17 20:22:39 UTC
Does discover find it if you search for the common name "ungoogled chromium" rather than the exact package name?

If not, then this is a packaging issue in the repo owner for not providing appstream metadata with the package. I'm using Fedora, which does provide appstream metadata for this package.
Comment 2 pqwoerituytrueiwoq 2024-09-18 02:39:15 UTC
how can i check the 'appstream metadata'? 
'ungoogled chromium', 'chromium', and 'ungoogled' do return the package
Comment 3 Nate Graham 2024-09-18 12:32:21 UTC
`appstreamcli search [search term]` in a terminal window will do the trick.

If those other keywords find it, then it sounds like this is working as expected: search works on the basis of keywords, not package names.
Comment 4 pqwoerituytrueiwoq 2024-09-18 16:43:16 UTC
Related bug: https://bugs.launchpad.net/launchpad/+bug/1574948
i guess you would call this a side stream bug (go down stream then up in stream in a different direction)