Gnome-software says internet access not available while i'm connected

Bug #1936893 reported by corrado venturini
36
This bug affects 8 people
Affects Status Importance Assigned to Milestone
snap-store-desktop
Confirmed
Undecided
Unassigned
gnome-software (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Started gnome-software, click on 'Updates' gnome-software says: 'Unable to download updates: Internet access required but wasn't available' while I'm connected via wifi.
see nmcli output and attached screenshot.
corrado@corrado-n4-ii-0718:~$ nmcli connection show
NAME UUID TYPE DEVICE
corado 62241493-d859-4bcd-9843-7f158233130b wifi wlp2s0
Wired connection 1 72d727fa-2f49-3b54-a39f-2a059e6948c7 ethernet --
corrado@corrado-n4-ii-0718:~$ nmcli -f connection.metered connection show 62241493-d859-4bcd-9843-7f158233130b
connection.metered: unknown
corrado@corrado-n4-ii-0718:~$ busctl get-property org.freedesktop.NetworkManager /org/freedesktop/NetworkManager org.freedesktop.NetworkManager Metered
u 3
corrado@corrado-n4-ii-0718:~$

The problem was different: https://gitlab.gnome.org/GNOME/gnome-software/-/issues/996
before today updates:
Start-Date: 2021-07-20 06:35:15
Commandline: apt upgrade
Requested-By: corrado (1000)
Install: gir1.2-clutter-gst-3.0:amd64 (3.0.27-2, automatic), gir1.2-gtkclutter-1.0:amd64 (1.8.4-4, automatic)
Upgrade: ubuntu-drivers-common:amd64 (1:0.8.9.1, 1:0.9.1.2), gnome-shell-extension-desktop-icons-ng:amd64 (0.18.0-0ubuntu2, 0.18.0-0ubuntu3), netplan.io:amd64 (0.102-0ubuntu4, 0.102-0ubuntu6), libnetplan0:amd64 (0.102-0ubuntu4, 0.102-0ubuntu6), libnspr4:amd64 (2:4.29-1, 2:4.32-1)
End-Date: 2021-07-20 06:35:20

ProblemType: Bug
DistroRelease: Ubuntu 21.10
Package: gnome-software 3.38.1-1
ProcVersionSignature: Ubuntu 5.11.0-20.21+21.10.1-generic 5.11.21
Uname: Linux 5.11.0-20-generic x86_64
ApportVersion: 2.20.11-0ubuntu67
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Tue Jul 20 07:36:06 2021
InstallationDate: Installed on 2021-07-18 (1 days ago)
InstallationMedia: Ubuntu 21.10 "Impish Indri" - Alpha amd64 (20210718)
InstalledPlugins:
 gnome-software-plugin-flatpak N/A
 gnome-software-plugin-snap 3.38.1-1
SourcePackage: gnome-software
UpgradeStatus: No upgrade log present (probably fresh install)
---
ProblemType: Bug
ApportVersion: 2.20.11-0ubuntu67
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
DistroRelease: Ubuntu 21.10
InstallationDate: Installed on 2021-07-18 (8 days ago)
InstallationMedia: Ubuntu 21.10 "Impish Indri" - Alpha amd64 (20210718)
InstalledPlugins:
 gnome-software-plugin-flatpak N/A
 gnome-software-plugin-snap 3.38.1-1
Package: gnome-software 3.38.1-1
PackageArchitecture: amd64
ProcVersionSignature: Ubuntu 5.11.0-20.21+21.10.1-generic 5.11.21
Tags: wayland-session impish
Uname: Linux 5.11.0-20-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin lxd plugdev sambashare sudo whoopsie
_MarkForUpload: True

Revision history for this message
corrado venturini (corradoventu) wrote :
Revision history for this message
corrado venturini (corradoventu) wrote (last edit ):

Problem solved, see: https://gitlab.gnome.org/GNOME/gnome-software/-/issues/996

Edit: problem NOT solved, I have again the same problem.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gnome-software (Ubuntu):
status: New → Confirmed
Revision history for this message
corrado venturini (corradoventu) wrote : Dependencies.txt

apport information

tags: added: apport-collected
description: updated
Revision history for this message
corrado venturini (corradoventu) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
corrado venturini (corradoventu) wrote : ProcEnviron.txt

apport information

Revision history for this message
corrado venturini (corradoventu) wrote :

Problem seems random...

Revision history for this message
Paul White (paulw2u) wrote :

Confirming with snap version of the store.
Version: 3.38.0-64-g23c4c77

Changed in snap-store-desktop:
status: New → Confirmed
Revision history for this message
glx (glx33807) wrote :

works for me after I do `sudo systemctl restart packagekit`

Revision history for this message
Leó Kolbeinsson (leok) wrote :

Confirmimg comment #9 @glx

Testing Ubuntu Impish daily ISO 28-08-2021

Also receiving this error while attempting to install software -

The error is: "Unable to install: Internet access required but wasn't available'

I then entered `sudo systemctl restart packagekit` and then was able to install software.

Revision history for this message
Ubuntu QA Website (ubuntuqa) wrote :

This bug has been reported on the Ubuntu ISO testing tracker.

A list of all reports related to this bug can be found here:
http://iso.qa.ubuntu.com/qatracker/reports/bugs/1936893

tags: added: iso-testing
Revision history for this message
Sebastien Bacher (seb128) wrote :

the issue could also be due to bug #1943189

Revision history for this message
corrado venturini (corradoventu) wrote :

Confirmimg comment #9 @glx for Ubuntu software
testing Ubuntu Impish just installed from Ubuntu 21.10 "Impish Indri" - Beta amd64 (20210924)

Revision history for this message
Rik Mills (rikmills) wrote :

As gnome-software uses packagekit, then it seems likely that the cause of this is the same as in: https://bugs.launchpad.net/plasma-discover/+bug/1945030

Revision history for this message
Mike Adams (mikethebos) wrote :

Workaround: add the following lines to /etc/systemd/system/packagekit.service.d/override.conf

[Unit]
Wants=network-online.target
After=network-online.target

Revision history for this message
corrado venturini (corradoventu) wrote :

corrado@corrado-n4-jj-1107:~$ cat /etc/systemd/system/packagekit.
cat: /etc/systemd/system/packagekit.: No such file or directory
corrado@corrado-n4-jj-1107:~$

Revision history for this message
corrado venturini (corradoventu) wrote :

file does not exist also with the correct name without dot
corrado@corrado-n4-jj-1107:~$ cat /etc/systemd/system/packagekit
cat: /etc/systemd/system/packagekit: No such file or directory
corrado@corrado-n4-jj-1107:~$

Revision history for this message
Sergei (olosegres) wrote (last edit ):

@corradoventu
Try this in terminal

sudo mkdir /etc/systemd/system/packagekit.service.d
sudo gedit /etc/systemd/system/packagekit.service.d/override.conf

And paste this to file

[Unit]
Wants=network-online.target
After=network-online.target

Revision history for this message
corrado venturini (corradoventu) wrote :

Done. now after reboot starting gnome-software i see 'automatic update paused' and if i click on 'find out more' i have a box saying 'the current network is metered...'

and i'm unable to correct with
sudo systemctl restart packagekit
or
sudo systemctl restart NetworkManager.service
or
sudo nmcli networking off
sudo nmcli networking on

or going to settings and setting and resetting the option 'metered connection'
in both wifi and network

but this should be solved by NM 1.34.0. while Jammy has NM 1.32.12
https://gitlab.gnome.org/GNOME/gnome-software/-/issues/996

Revision history for this message
corrado venturini (corradoventu) wrote :

After removing the directory you suggest and reboot the problem seems disappeared.
Note: in the meantime kernel has changed to 5.15.0-17

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.