Bug 412834

Summary: "Cannot refresh cache whilst offline" -- except I'm online.
Product: [Applications] Discover Reporter: Harry Coin <hgcoin>
Component: discoverAssignee: Dan Leinir Turthra Jensen <leinir>
Status: RESOLVED UPSTREAM    
Severity: normal CC: aleixpol, nate, rikmills, sbmichael
Priority: NOR    
Version: 5.16.5   
Target Milestone: ---   
Platform: Other   
OS: Linux   
URL: https://github.com/hughsie/PackageKit/issues/336
Latest Commit: Version Fixed In:

Description Harry Coin 2019-10-11 00:24:45 UTC
SUMMARY
"Cannot refresh cache whilst offline" -- except I'm not offline, obviously since I'm filing this report.


STEPS TO REPRODUCE
1. Click the icon indicating updates are available in the task bar
2. Click 'check for updates'.
3. Notice it gives an error message and does nothing of any use.

System is the latest Ubuntu 'eoan', though this bug has been around for a long time.

My system's network is configured via systemd/networkd as is indicated in /etc/netplan.
I don't use the network manager for anything.   This bug appears whether the disused network-manager is enabled or disabled in systemd, or is running or not running.


OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2019-10-16 22:29:04 UTC
> I don't use the network manager for anything.

That's the problem. Your configuration is unsupported (not by Discover but by PackageKit itself). If you don't want to use NetworkManager, you need to remove it. If it's installed, you need to use it.

Not my decision, but this is the way the PackageKit people believe it ought to behave. See https://github.com/hughsie/PackageKit/issues/336
Comment 2 Michael SB 2021-09-25 03:59:09 UTC
Is there any development about this issue?

It's happening on latest Kubuntu 21.10 Beta - I am unable to search and install updates through Discover with this error and also unable install packages from regular Ubuntu repositories "no network connection available" but it is able install snaps... so in essence Discover is crippled right now in Kubuntu.
Comment 3 Nate Graham 2021-09-27 14:34:44 UTC
No, because this issue is outside of KDE's control. Happily, it looks like it was actually fixed upstream in https://github.com/PackageKit/PackageKit/pull/506 17 days ago. Probably either no PackageKit release has been made with that fix yet, or you have an older PackageKit release that doesn't include it.
Comment 4 Rik Mills 2021-09-27 14:47:46 UTC
(In reply to Nate Graham from comment #3)
> No, because this issue is outside of KDE's control. Happily, it looks like
> it was actually fixed upstream in
> https://github.com/PackageKit/PackageKit/pull/506 17 days ago. Probably
> either no PackageKit release has been made with that fix yet, or you have an
> older PackageKit release that doesn't include it.

For 21.10 there is a fixed packagekit currently waiting for approval by the Ubuntu release team.
Comment 5 Michael SB 2021-09-28 12:15:19 UTC
(In reply to Rik Mills from comment #4)
> (In reply to Nate Graham from comment #3)
> > No, because this issue is outside of KDE's control. Happily, it looks like
> > it was actually fixed upstream in
> > https://github.com/PackageKit/PackageKit/pull/506 17 days ago. Probably
> > either no PackageKit release has been made with that fix yet, or you have an
> > older PackageKit release that doesn't include it.
> 
> For 21.10 there is a fixed packagekit currently waiting for approval by the
> Ubuntu release team.

I can confirm that as of today, latest PackageKit updates on Kubuntu 21.10 Beta fixed this issue with Discover. It is now able to search and apply updates and also install regular packages. Thank you.
Comment 6 Nate Graham 2021-09-28 19:35:12 UTC
Great news!