Cockpit Software Updates - Loading Available Updates Failed - Cannot Refresh Cache Whilst Offline

Cockpit Software Updates - Loading Available Updates Failed - Cannot Refresh Cache Whilst Offline

On a Ubuntu Server LTS 20.x, with renderer : networkd, LAN / WAN Connectivity are all properly fucntional. However in Cockpit > Software Updates, it gives the error message:

Loading available updates failed    
Cannot refresh cache whilst offline    

Changing the setting to renderer : NetworkManager
makes Cockpit > Software Updates work flawlessly without impacting the Networking module in Cockpit.

But I would rather stick to renderer : networkd as this is a Server.

Any insight to get renderer : networkd to work ? Or Cockpit just 'needs' NetworkManager ?

Note:

sudo systemctl stop network-manager.service    
sudo systemctl disable network-manager.service     

Will make the Networking module in cockpit fail with error :

Network devices and graphs require NetworkManager
4

2 Answers

Apparently Cockpit just 'needs' Network Manager.

That was hinted at in my question as well.

Changing the setting to renderer : NetworkManager makes Cockpit > Software Updates work flawlessly without impacting the Networking module in Cockpit.

Other workarounds cause some modules ( especially the Networking module ) to not function properly. Cockpit project github reference ->

Note : This method also ensures that when you use Cockpit to manage your Virtual Machines, creating bridges etc work flawlessly as well.

According to this, the easiest workaround until Ubuntu settles on a network manager is this:

nmcli con add type dummy con-name fake ifname fake0 ip4 1.2.3.4/24 gw4 1.2.3.1
3

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

James H. Sterling
Author

James H. Sterling

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.