Bug 459496 - Error : Unable to load applications Please check Internet connectivity
Summary: Error : Unable to load applications Please check Internet connectivity
Status: RESOLVED FIXED
Alias: None
Product: Discover
Classification: Applications
Component: discover (show other bugs)
Version: 5.24.6
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-21 19:29 UTC by Jack
Modified: 2023-01-12 18:30 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.27


Attachments
plasma-discover startupscreen with unable-to-load-applications (31.15 KB, image/png)
2022-09-21 19:29 UTC, Jack
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jack 2022-09-21 19:29:43 UTC
Created attachment 152318 [details]
plasma-discover startupscreen with unable-to-load-applications

SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. Start Discover from the ubuntu menu or from command line by plasma-discover
2. Application starts and shows window with message :  Unable to load applications Please check Internet connectivity
3. This message does not go away and I do not get Applications but other things seem to work

OBSERVED RESULT
Clicking Applications gives the error again : Unable to load applications Please check Internet connectivity
Clicking on Application Addons shows a lot of icons
Clicking on Plasma Addons show a lot of icons
Clicking Installed shows "Nothing found"
Clicking Settings shows Ubuntu 22.04.01 LTS and lots of boxes with just some checked
Clicking About shows About info including version 5.24.6 
Clicking Applications gives the error again : Unable to load applications Please check Internet connectivity

EXPECTED RESULT
After starting the application I would expect to be able to browse to Applications and categories and find applications which I can install / remove

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Ubuntu 22.04.1 LTS :

lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.1 LTS
Release:        22.04
Codename:       jammy

(available in About System)
KDE Plasma Version:  
KDE Frameworks Version: 5.92.0
Qt Version: 5.15.3(built against 5.15.3)

ADDITIONAL INFORMATION

I am not sure but I think I may have this issue since I upgraded from Ubuntu 22.04 LTS to 22.04.1 LTS.
apt update, apt remove plasma-discover followed by apt install plasma-discover did not solve this.
deleting the ~/.cache/discover cache does not help either.
I do have Internet connectivity via my home LAN and WiFi and also tried by WiFi via a hotspot on my phone.
Always the same error.
I removed plasma discover and installed and older version plasma-discover_5.24.4-0ubuntu1_amd64.deb for which I also needed to apt remove plasma-discover-common and apt install plasma-discover-common=5.24.4-0ubuntu1
Same result. However, there were updates for plasma-discover and plasma-discover-common to version 5.24.6 which I began with and since applying these the application is back on version 5.24.6. So update mechanism works.
I tested with an other user, same result.
I created a new user and tested with that, same result.

Maybe the error is wrong and something needs to be changed somewhere in a configuration file.
I am lost. 

Please help
Comment 1 Aleix Pol 2022-09-21 21:47:12 UTC
Can you check that your NetworkManager state is indeed set as connected?

You can check by running "nmcli".
Comment 2 Jack 2022-09-21 22:34:37 UTC
Hello  Aleix Pol ,

The output of the nmcli on my laptop while using the LAN connection :

jack@jv:~$ nmcli
eno1: connected to Wired connection 1
        "Realtek RTL8111/8168/8411"
        ethernet (r8169), 2C:41:38:60:80:23, hw, mtu 1500
        ip4 default, ip6 default
        inet4 192.168.2.27/24
        route4 192.168.2.0/24 metric 100
        route4 default via 192.168.2.254 metric 100
        route4 169.254.0.0/16 metric 1000
        inet6 2a02:a46b:30:1:47cf:b61f:d89d:595a/64
        inet6 fe80::730c:ba4a:4d0:c2bc/64
        route6 fe80::/64 metric 1024
        route6 2a02:a46b:30:1::/64 metric 100
        route6 default via fe80::26d3:f2ff:fe97:a394 metric 100

wlo1: unavailable
        "Intel Centrino 1030"
        wifi (iwlwifi), AC:72:89:C3:2D:05, sw disabled, hw, mtu 1500

lo: unmanaged
        "lo"
        loopback (unknown), 00:00:00:00:00:00, sw, mtu 65536

DNS configuration:
        servers: 192.168.2.13 192.168.2.254
        domains: home
        interface: eno1

        servers: fe80::26d3:f2ff:fe97:a394
        interface: eno1

Use "nmcli device show" to get complete information about known devices and
"nmcli connection show" to get an overview on active connection profiles.

Consult nmcli(1) and nmcli-examples(7) manual pages for complete usage details.
jack@jv:~$ date
do 22 sep 2022  0:34:20 CEST
jack@jv:~$
Comment 3 Jack 2022-09-21 22:43:51 UTC
Hello  Aleix Pol ,

just to be complete, I type this info on the same laptop as where I have the Discover issue so Internet connection is fine.

Kind regards,

Jack
Comment 4 Aleix Pol 2022-09-22 10:24:41 UTC
Okay, can you check that you have appstream information? You can do so by running "appstreamcli status"
Comment 5 Jack 2022-09-22 12:51:26 UTC
jack@jv:~$ appstreamcli status
AppStream Status:
Version: 0.15.2

OS metadata sources:
 Software catalog data
 Group: os-catalog
  /usr/share/app-info/xmls
    • Collection XML:  1
  /var/lib/swcatalog/yaml
    • YAML:  9
  /var/lib/swcatalog/icons
    • Iconsets:
        ubuntu-jammy-updates-main
        ubuntu-jammy-updates-universe
        ubuntu-jammy-updates-multiverse
        ubuntu-jammy-backports-universe
        ubuntu-jammy-security-main
        ubuntu-jammy-security-universe
        ubuntu-jammy-main
        ubuntu-jammy-universe
        ubuntu-jammy-multiverse

 Data from locally installed software
 Group: local-metainfo
  /usr/share/applications
    • Desktop Entry:  441
  /usr/share/metainfo
    • MetaInfo XML:  182

Other metadata sources:
• No metadata.
Summary:
✔ We have information on 183 software components.
jack@jv:~$
Comment 6 Nate Graham 2022-09-22 20:40:06 UTC
> ✔ We have information on 183 software components.

I suspect that's the problem. For me, I get 5053!

Downstream distro config issue?
Comment 7 Nate Graham 2022-09-22 20:40:52 UTC
Also in Discover I guess we should do a better job of differentiating between:

"Couldn't find any of the favorite apps"

and

"No network connection"
Comment 8 Jack 2022-09-22 21:37:50 UTC
(In reply to Nate Graham from comment #6)
> > ✔ We have information on 183 software components.
> 
> I suspect that's the problem. For me, I get 5053!
> 
> Downstream distro config issue?

I am not sure what to do with this. What is meant by 'Downstream distro config issue?' and what can I do about this ?
I have been using Ubuntu 22.04 LTS for a long time and Discover worked just fine.
Some time ago I upgraded to Ubuntu 22.04.1 LTS and maybe I have the issue since then.
I would suspect that apt remove plasma-discover followed by apt install plasma-discover would put everything back in place.
Is there some configuration which I need to delete after a remove so a new install recreates that ?
Comment 9 Jack 2022-09-23 08:27:55 UTC
Hello, I have issues with the Application part and found an issue with the Updates part (https://bugs.kde.org/show_bug.cgi?id=452718) 
I started a terminal window and tried some things based on the suggestions by Nate Graham there which gives the next info.

---

plasma-discover

Shows Discover screen with error message  and in terminal window :

kf.kirigami: Warning: Theme implementations should use Kirigami.BasicThemeDefinition for its root item
kf.kirigami: Failed to find a Kirigami platform plugin
qrc:/qml/DiscoverWindow.qml:116:19: QML Shortcut: Shortcut: Only binding to one of multiple key bindings associated with 15. Use 'sequences: [ <key> ]' to bind to all of them.
QObject::startTimer: Timers cannot have negative intervals
qrc:/qml/DiscoverPage.qml:42:37: QML Shortcut: Shortcut: Only binding to one of multiple key bindings associated with 15. Use 'sequences: [ <key> ]' to bind to all of them.
adding empty sources model QStandardItemModel(0x5571c42e0300)
file:///usr/lib/x86_64-linux-gnu/qt5/qml/org/kde/kirigami.2/private/PrivateActionToolButton.qml:74:5: QML Binding: Binding loop detected for property "value"

When I click on Applications I get a nice menu on the left with I think all categories and in the terminal window the next extra messages :

kf.i18n: "0 instead of 1 arguments to message {Search the web for \"...} supplied before conversion."
kf.i18n: "0 instead of 1 arguments to message {\"%1\" was not found i...} supplied before conversion."
kf.i18n: "0 instead of 1 arguments to message {\"%1\" may be availabl...} supplied before conversion."
qrc:/qml/DiscoverPage.qml:42:37: QML Shortcut: Shortcut: Only binding to one of multiple key bindings associated with 15. Use 'sequences: [ <key> ]' to bind to all of them.
Qt Quick Layouts: Detected recursive rearrange. Aborting after two iterations.
Qt Quick Layouts: Detected recursive rearrange. Aborting after two iterations.

On the right I see an entry for VirtualBox

When I click on any of the categories I see "Nothing found" in the application window and no additional messages in the terminal window and sometimes I see VirtualBox.
For example in Applications > Games > Emulators.

When I use Back in top of the menu I go back 1 level and when click the last time back to go to the top level there is an extra message in the terminal window :

qrc:/qml/DiscoverPage.qml:42:37: QML Shortcut: Shortcut: Only binding to one of multiple key bindings associated with 15. Use 'sequences: [ <key> ]' to bind to all of them.

---

I saw the command 'pkcon get-updates' and looked in the man page and found 'pkcon get-packages'

pkcon get-packages

This gave a lot of output so I did :

pkcon get-packages | wc

  74314  222931 5589799

The next one shows the first lines :
 
pkcon get-packages | more

Transaction:	Getting packages
Status: 	Waiting in queue
Status: 	Starting
Status: 	Loading cache
Percentage:	0
Percentage:	100
Percentage:	0
Percentage:	50
Percentage:	100
Percentage:	0
Percentage:	100
Status: 	Querying
Status: 	Finished
Results:
Available    0ad-0.0.25b-2.amd64 (ubuntu-jammy-universe)
Available    0ad-data-0.0.25b-1.all (ubuntu-jammy-universe)
Available    0ad-data-common-0.0.25b-1.all (ubuntu-jammy-universe)
Available    0install-2.16-2.amd64 (ubuntu-jammy-universe)
Available    0install-core-2.16-2.amd64 (ubuntu-jammy-universe)
Available    0xffff-0.9-1.amd64 (ubuntu-jammy-universe)
Available    1oom-1.0-2.amd64 (ubuntu-jammy-multiverse)
Available    2048-0.20210105.1243-1.amd64 (ubuntu-jammy-universe)
Installed    2048-qt-0.1.6-2build1.amd64 (manual:ubuntu-jammy-universe)
Available    2ping-4.5-1.all (ubuntu-jammy-universe)
Available    2to3-3.10.6-1~22.04.all (ubuntu-jammy-updates-universe)
Available    2vcard-0.6-4.all (ubuntu-jammy-universe)
Available    3270-common-4.1ga10-1.1.amd64 (ubuntu-jammy-universe)


The next one shows info on the editor geany :

pkcon get-packages | grep geany

Installed    geany-1.38-1.amd64 (manual:ubuntu-jammy-universe)
Installed    geany-common-1.38-1.all (auto:ubuntu-jammy-universe)
Available    geany-plugin-addons-1.38+dfsg-1.amd64 (ubuntu-jammy-universe)
Available    geany-plugin-autoclose-1.38+dfsg-1.amd64 (ubuntu-jammy-universe)
Available    geany-plugin-automark-1.38+dfsg-1.amd64 (ubuntu-jammy-universe)
Available    geany-plugin-codenav-1.38+dfsg-1.amd64 (ubuntu-jammy-universe)
Available    geany-plugin-commander-1.38+dfsg-1.amd64 (ubuntu-jammy-universe)
Available    geany-plugin-ctags-1.38+dfsg-1.amd64 (ubuntu-jammy-universe)
Available    geany-plugin-debugger-1.38+dfsg-1.amd64 (ubuntu-jammy-universe)
Available    geany-plugin-defineformat-1.38+dfsg-1.amd64 (ubuntu-jammy-universe)
Available    geany-plugin-doc-1.38+dfsg-1.amd64 (ubuntu-jammy-universe)
Available    geany-plugin-extrasel-1.38+dfsg-1.amd64 (ubuntu-jammy-universe)
Available    geany-plugin-gendoc-1.38+dfsg-1.amd64 (ubuntu-jammy-universe)
Available    geany-plugin-geniuspaste-1.38+dfsg-1.amd64 (ubuntu-jammy-universe)
Available    geany-plugin-git-changebar-1.38+dfsg-1.amd64 (ubuntu-jammy-universe)
Available    geany-plugin-gproject-1.38+dfsg-1.all (ubuntu-jammy-universe)
Available    geany-plugin-insertnum-1.38+dfsg-1.amd64 (ubuntu-jammy-universe)
Available    geany-plugin-keyrecord-1.38+dfsg-1.amd64 (ubuntu-jammy-universe)
Available    geany-plugin-latex-1.38+dfsg-1.amd64 (ubuntu-jammy-universe)
Available    geany-plugin-lineoperations-1.38+dfsg-1.amd64 (ubuntu-jammy-universe)
Available    geany-plugin-lipsum-1.38+dfsg-1.amd64 (ubuntu-jammy-universe)
Available    geany-plugin-lua-1.38+dfsg-1.amd64 (ubuntu-jammy-universe)
Available    geany-plugin-macro-1.38+dfsg-1.amd64 (ubuntu-jammy-universe)
Available    geany-plugin-markdown-1.38+dfsg-1.amd64 (ubuntu-jammy-universe)
Available    geany-plugin-miniscript-1.38+dfsg-1.amd64 (ubuntu-jammy-universe)
Available    geany-plugin-numberedbookmarks-1.38+dfsg-1.amd64 (ubuntu-jammy-universe)
Available    geany-plugin-overview-1.38+dfsg-1.amd64 (ubuntu-jammy-universe)
Available    geany-plugin-pairtaghighlighter-1.38+dfsg-1.amd64 (ubuntu-jammy-universe)
Available    geany-plugin-pg-1.38+dfsg-1.amd64 (ubuntu-jammy-universe)
Available    geany-plugin-pohelper-1.38+dfsg-1.amd64 (ubuntu-jammy-universe)
Available    geany-plugin-prettyprinter-1.38+dfsg-1.amd64 (ubuntu-jammy-universe)
Available    geany-plugin-prj-1.38+dfsg-1.amd64 (ubuntu-jammy-universe)
Available    geany-plugin-projectorganizer-1.38+dfsg-1.amd64 (ubuntu-jammy-universe)
Available    geany-plugin-scope-1.38+dfsg-1.amd64 (ubuntu-jammy-universe)
Available    geany-plugin-sendmail-1.38+dfsg-1.amd64 (ubuntu-jammy-universe)
Available    geany-plugin-shiftcolumn-1.38+dfsg-1.amd64 (ubuntu-jammy-universe)
Available    geany-plugin-spellcheck-1.38+dfsg-1.amd64 (ubuntu-jammy-universe)
Available    geany-plugin-tableconvert-1.38+dfsg-1.amd64 (ubuntu-jammy-universe)
Available    geany-plugin-treebrowser-1.38+dfsg-1.amd64 (ubuntu-jammy-universe)
Available    geany-plugin-updatechecker-1.38+dfsg-1.amd64 (ubuntu-jammy-universe)
Available    geany-plugin-vc-1.38+dfsg-1.amd64 (ubuntu-jammy-universe)
Available    geany-plugin-vimode-1.38+dfsg-1.amd64 (ubuntu-jammy-universe)
Available    geany-plugin-workbench-1.38+dfsg-1.amd64 (ubuntu-jammy-universe)
Available    geany-plugin-xmlsnippets-1.38+dfsg-1.amd64 (ubuntu-jammy-universe)
Available    geany-plugins-1.38+dfsg-1.all (ubuntu-jammy-universe)
Installed    geany-plugins-common-1.38+dfsg-1.amd64 (manual:ubuntu-jammy-universe)

---

I found the next and since I think a repair does not break anything :
pkcon repair
                              [=========================]         
Testing changes               [=========================]         
Finished                      [=========================]         
                              [=========================]         
Waiting for authentication    [=========================]         
Loading cache                 [=========================]         
Running                       [=========================]         
Finished                      [=========================]


Did not help

---

pkcon get-updates

Getting updates               [=========================]         
Loading cache                 [=========================]         
Finished                      [=========================]         
Blocked         libnss-systemd-249.11-0ubuntu3.6.amd64 (ubuntu-jammy-updates-main)      nss module providing dynamic user and group name resolution
Blocked         libpam-systemd-249.11-0ubuntu3.6.amd64 (ubuntu-jammy-updates-main)      system and service manager - PAM module
Blocked         libspeechd2-0.11.1-1ubuntu2.amd64 (ubuntu-jammy-updates-main)   Speech Dispatcher: Shared libraries
Blocked         libsystemd0-249.11-0ubuntu3.6.amd64 (ubuntu-jammy-updates-main) systemd utility library
Blocked         libsystemd0-249.11-0ubuntu3.6.i386 (ubuntu-jammy-updates-main)  systemd utility library
Blocked         libudev-dev-249.11-0ubuntu3.6.amd64 (ubuntu-jammy-updates-main) libudev development files
Blocked         libudev1-249.11-0ubuntu3.6.amd64 (ubuntu-jammy-updates-main)    libudev shared library
Blocked         libudev1-249.11-0ubuntu3.6.i386 (ubuntu-jammy-updates-main)     libudev shared library
Blocked         speech-dispatcher-0.11.1-1ubuntu2.amd64 (ubuntu-jammy-updates-main)     Common interface to speech synthesizers
Blocked         speech-dispatcher-audio-plugins-0.11.1-1ubuntu2.amd64 (ubuntu-jammy-updates-main)       Speech Dispatcher: Audio output plugins
Blocked         speech-dispatcher-espeak-ng-0.11.1-1ubuntu2.amd64 (ubuntu-jammy-updates-main)   Speech Dispatcher: Espeak-ng output module
Blocked         systemd-249.11-0ubuntu3.6.amd64 (ubuntu-jammy-updates-main)     system and service manager
Blocked         systemd-sysv-249.11-0ubuntu3.6.amd64 (ubuntu-jammy-updates-main)        system and service manager - SysV links
Blocked         systemd-timesyncd-249.11-0ubuntu3.6.amd64 (ubuntu-jammy-updates-main)   minimalistic service to synchronize local time with NTP servers
Blocked         udev-249.11-0ubuntu3.6.amd64 (ubuntu-jammy-updates-main)        /dev/ and hotplug management daemon

---

plasma-discover --listbackends

Available backends:
 * kns-backend
 * packagekit-backend
 
plasma-discover --backends kns-backend

Shows Discover screen with error message  and in terminal window :

kf.kirigami: Warning: Theme implementations should use Kirigami.BasicThemeDefinition for its root item
kf.kirigami: Failed to find a Kirigami platform plugin
qrc:/qml/DiscoverWindow.qml:116:19: QML Shortcut: Shortcut: Only binding to one of multiple key bindings associated with 15. Use 'sequences: [ <key> ]' to bind to all of them.
QObject::startTimer: Timers cannot have negative intervals
qrc:/qml/DiscoverPage.qml:42:37: QML Shortcut: Shortcut: Only binding to one of multiple key bindings associated with 15. Use 'sequences: [ <key> ]' to bind to all of them.
file:///usr/lib/x86_64-linux-gnu/qt5/qml/org/kde/kirigami.2/private/PrivateActionToolButton.qml:74:5: QML Binding: Binding loop detected for property "value"
qrc:/qml/BrowsingPage.qml:58: TypeError: Cannot read property 'errorMessage' of undefined
qrc:/qml/BrowsingPage.qml:61: TypeError: Cannot read property 'actions' of undefined
qrc:/qml/BrowsingPage.qml:56: TypeError: Cannot read property 'iconName' of undefined
qrc:/qml/BrowsingPage.qml:55: TypeError: Cannot call method 'explainDysfunction' of null

plasma-discover --backends packagekit-backend

Shows Discover screen with error message  and in terminal window :

kf.kirigami: Warning: Theme implementations should use Kirigami.BasicThemeDefinition for its root item
kf.kirigami: Failed to find a Kirigami platform plugin
qrc:/qml/DiscoverWindow.qml:116:19: QML Shortcut: Shortcut: Only binding to one of multiple key bindings associated with 15. Use 'sequences: [ <key> ]' to bind to all of them.
QObject::startTimer: Timers cannot have negative intervals
qrc:/qml/DiscoverPage.qml:42:37: QML Shortcut: Shortcut: Only binding to one of multiple key bindings associated with 15. Use 'sequences: [ <key> ]' to bind to all of them.
adding empty sources model QStandardItemModel(0x55b28e22f510)
file:///usr/lib/x86_64-linux-gnu/qt5/qml/org/kde/kirigami.2/private/PrivateActionToolButton.qml:74:5: QML Binding: Binding loop detected for property "value"


Since flatpak-backend was mentioned I also did :

plasma-discover --backends flatpak-backend

Shows Discover screen with error message  and in terminal window :

kf.kirigami: Warning: Theme implementations should use Kirigami.BasicThemeDefinition for its root item
kf.kirigami: Failed to find a Kirigami platform plugin
qrc:/qml/DiscoverWindow.qml:116:19: QML Shortcut: Shortcut: Only binding to one of multiple key bindings associated with 15. Use 'sequences: [ <key> ]' to bind to all of them.
QObject::startTimer: Timers cannot have negative intervals
qrc:/qml/DiscoverPage.qml:42:37: QML Shortcut: Shortcut: Only binding to one of multiple key bindings associated with 15. Use 'sequences: [ <key> ]' to bind to all of them.
org.kde.plasma.libdiscover: error loading "flatpak-backend" "The shared library was not found." QJsonObject()
org.kde.plasma.libdiscover: Didn't find any Discover backend!
org.kde.plasma.libdiscover: Couldn't find any backends
qrc:/qml/BrowsingPage.qml:58: TypeError: Cannot read property 'errorMessage' of undefined
qrc:/qml/BrowsingPage.qml:61: TypeError: Cannot read property 'actions' of undefined
qrc:/qml/BrowsingPage.qml:56: TypeError: Cannot read property 'iconName' of undefined
qrc:/qml/BrowsingPage.qml:55: TypeError: Cannot call method 'explainDysfunction' of null

---

I also moved everything from /etc/apt/sources.list.d to a different folder in my home folder, rebooted and tried again and this did not help either

.......
Comment 10 Nate Graham 2022-09-23 17:26:36 UTC
(In reply to Jack from comment #8)
> I am not sure what to do with this. What is meant by 'Downstream distro
> config issue?' and what can I do about this ?
> I have been using Ubuntu 22.04 LTS for a long time and Discover worked just
> fine.
> Some time ago I upgraded to Ubuntu 22.04.1 LTS and maybe I have the issue
> since then.

Sorry, that was meant for Aleix, not you. :) It means that the problem is not in Discover, but rather with the distro or your configuration of it. The right amount of appstream metadata isn't present for some reason. I don't know why, though; I don't have any real familiarity with the way Ubuntu does things.
Comment 11 Nate Graham 2023-01-12 18:30:53 UTC
This should be fixed in 5.27 now.