Software & Updates fails to open

Unable to open Software and Updates even by using terminal " software-properties-gtk" on fresh install Mate 20.04.1. Reinstalled several times now but issue appears after a few reboots. Here is command line output from software-properties-gtk if it helps:
:~$ software-properties-gtk
ERROR:dbus.proxies:Introspect error on :1.157:/: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying
Traceback (most recent call last):
File "/usr/bin/software-properties-gtk", line 100, in
app = SoftwarePropertiesGtk(datadir=options.data_dir, options=options, file=file)
File "/usr/lib/python3/dist-packages/softwareproperties/gtk/SoftwarePropertiesGtk.py", line 211, in init
self.backend.Reload();
File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 72, in call
return self._proxy_method(*args, **keywords)
File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 141, in call
return self._connection.call_blocking(self._named_service,
File "/usr/lib/python3/dist-packages/dbus/connection.py", line 652, in call_blocking
reply_message = self.send_message_with_reply_and_block(
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name :1.157 was not provided by any .service files
I have found commands to try and autoremove purge and reinstall without any success.
I have not had such issues on my system with any of the previous LTS Mate releases so perhaps my harware / system can be removed from problem.

Hi Matebod,
Knowing some strange related issues in 20.04.01, suggest install 20.04 and then update. Other, try live version to see if could be hardware apparent inconsistency. Other, disconnect your firewall and be sure reconnect to net. Make ping.
Lucky

Hi Tim,

Many thanks for picking up my issues.

I advise the following in response to your suggestions:

  • Same thing happened when I installed 20.04. Updates & Software worked fine for a few updates and restarts but same thing happened as the 20.04.1 install.

  • Live USB works fine on my system but then I'm not updating or restarting.

  • Found commands online to auto remove purge and reinstall software-properties-gtk - no change Software and updates still refused to open.

  • Disconnected / switched off firewall - and have left it off - no improvements as issue persists.

  • Wasn't sure what I should ping so didn't try that. Tried to Google for suggestions but unable to find anything that looked like a solution.

As I mentioned I have now reinstalled several times without any improvement.

I have copied and pasted the returned info when I tried to run 'software-properties-gtk' from the terminal (FYI I ran as sudo to see if it helped but it didn't):

ERROR:dbus.proxies:Introspect error on :1.120:/: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying
Traceback (most recent call last):
File "/usr/bin/software-properties-gtk", line 100, in
app = SoftwarePropertiesGtk(datadir=options.data_dir, options=options, file=file)
File "/usr/lib/python3/dist-packages/softwareproperties/gtk/SoftwarePropertiesGtk.py", line 211, in init
self.backend.Reload();
File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 72, in call
return self._proxy_method(*args, **keywords)
File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 141, in call
return self._connection.call_blocking(self._named_service,
File "/usr/lib/python3/dist-packages/dbus/connection.py", line 652, in call_blocking
reply_message = self.send_message_with_reply_and_block(
dbus.exceptions.DBusException: o

Unfortunately I don't have the knowledge to work out what is going wrong - but apparently something is!

When I try to start Software & Updates from the dropdown menu the following is returned in the system log:

Sep 24 16:02:44 Picard dbus-daemon[668]: [system] Activating service name='com.ubuntu.SoftwareProperties' requested by ':1.121' (uid=1000 pid=5876 comm="/usr/bin/python3 /usr/bin/software-properties-gtk " label="unconfined") (using servicehelper)
Sep 24 16:02:44 Picard com.ubuntu.SoftwareProperties[5892]: Unable to init server: Could not connect: Connection refused
Sep 24 16:02:44 Picard com.ubuntu.SoftwareProperties[5892]: Unable to init server: Could not connect: Connection refused
Sep 24 16:02:44 Picard dbus-daemon[668]: [system] Successfully activated service 'com.ubuntu.SoftwareProperties'
Sep 24 16:02:44 Picard com.ubuntu.SoftwareProperties[5892]: Traceback (most recent call last):
Sep 24 16:02:44 Picard com.ubuntu.SoftwareProperties[5892]: File "/usr/lib/software-properties/software-properties-dbus", line 68, in
Sep 24 16:02:44 Picard com.ubuntu.SoftwareProperties[5892]: server = SoftwarePropertiesDBus(bus, datadir=datadir)
Sep 24 16:02:44 Picard com.ubuntu.SoftwareProperties[5892]: File "/lib/python3/dist-packages/softwareproperties/dbus/SoftwarePropertiesDBus.py", line 66, in init
Sep 24 16:02:44 Picard com.ubuntu.SoftwareProperties[5892]: self._livepatch_service = LivepatchService()
Sep 24 16:02:44 Picard com.ubuntu.SoftwareProperties[5892]: File "/lib/python3/dist-packages/softwareproperties/LivepatchService.py", line 93, in init
Sep 24 16:02:44 Picard com.ubuntu.SoftwareProperties[5892]: self._session = requests_unixsocket.Session()
Sep 24 16:02:44 Picard com.ubuntu.SoftwareProperties[5892]: NameError: name 'requests_unixsocket' is not defined
Sep 24 16:02:44 Picard com.ubuntu.SoftwareProperties[5892]: Error in sys.excepthook:
Sep 24 16:02:44 Picard com.ubuntu.SoftwareProperties[5892]: Traceback (most recent call last):
Sep 24 16:02:44 Picard com.ubuntu.SoftwareProperties[5892]: File "/lib/python3/dist-packages/apport_python_hook.py", line 72, in apport_excepthook
Sep 24 16:02:44 Picard com.ubuntu.SoftwareProperties[5892]: from apport.fileutils import likely_packaged, get_recent_crashes
Sep 24 16:02:44 Picard com.ubuntu.SoftwareProperties[5892]: File "/lib/python3/dist-packages/apport/init.py", line 5, in
Sep 24 16:02:44 Picard com.ubuntu.SoftwareProperties[5892]: from apport.report import Report
Sep 24 16:02:44 Picard com.ubuntu.SoftwareProperties[5892]: File "/lib/python3/dist-packages/apport/report.py", line 32, in
Sep 24 16:02:44 Picard com.ubuntu.SoftwareProperties[5892]: import apport.fileutils
Sep 24 16:02:44 Picard com.ubuntu.SoftwareProperties[5892]: File "/lib/python3/dist-packages/apport/fileutils.py", line 12, in
Sep 24 16:02:44 Picard com.ubuntu.SoftwareProperties[5892]: import os, glob, subprocess, os.path, time, pwd, sys, requests_unixsocket
Sep 24 16:02:44 Picard com.ubuntu.SoftwareProperties[5892]: File "/lib/python3/dist-packages/requests_unixsocket/init.py", line 1, in
Sep 24 16:02:44 Picard com.ubuntu.SoftwareProperties[5892]: import requests
Sep 24 16:02:44 Picard com.ubuntu.SoftwareProperties[5892]: File "/lib/python3/dist-packages/requests/init.py", line 112, in
Sep 24 16:02:44 Picard com.ubuntu.SoftwareProperties[5892]: from . import utils
Sep 24 16:02:44 Picard com.ubuntu.SoftwareProperties[5892]: File "/lib/python3/dist-packages/requests/utils.py", line 24, in
Sep 24 16:02:44 Picard com.ubuntu.SoftwareProperties[5892]: from . import certs
Sep 24 16:02:44 Picard com.ubuntu.SoftwareProperties[5892]: File "/lib/python3/dist-packages/requests/certs.py", line 15, in
Sep 24 16:02:44 Picard com.ubuntu.SoftwareProperties[5892]: from certifi import where
Sep 24 16:02:44 Picard com.ubuntu.SoftwareProperties[5892]: ModuleNotFoundError: No module named 'certifi'
Sep 24 16:02:44 Picard com.ubuntu.SoftwareProperties[5892]: Original exception was:
Sep 24 16:02:44 Picard com.ubuntu.SoftwareProperties[5892]: Traceback (most recent call last):
Sep 24 16:02:44 Picard com.ubuntu.SoftwareProperties[5892]: File "/usr/lib/software-properties/software-properties-dbus", line 68, in
Sep 24 16:02:44 Picard com.ubuntu.SoftwareProperties[5892]: server = SoftwarePropertiesDBus(bus, datadir=datadir)
Sep 24 16:02:44 Picard com.ubuntu.SoftwareProperties[5892]: File "/lib/python3/dist-packages/softwareproperties/dbus/SoftwarePropertiesDBus.py", line 66, in init
Sep 24 16:02:44 Picard com.ubuntu.SoftwareProperties[5892]: self._livepatch_service = LivepatchService()
Sep 24 16:02:44 Picard com.ubuntu.SoftwareProperties[5892]: File "/lib/python3/dist-packages/softwareproperties/LivepatchService.py", line 93, in init
Sep 24 16:02:44 Picard com.ubuntu.SoftwareProperties[5892]: self._session = requests_unixsocket.Session()
Sep 24 16:02:44 Picard com.ubuntu.SoftwareProperties[5892]: NameError: name 'requests_unixsocket' is not defined

Again I don't have the knowledge to work out what is going wrong. Have tried Googling various lines but again, nothing that looked like a solution was returned.

Any other suggestions? Anything would be highly appreciated.

Many thanks in advance for your your time.

Regards.

Try reinstalling python3-six and python3-certifi

In my knowlege, now faster than googling tones of info, better reinstall from zero (like you did) and look at carefully you're done or happen just at point before you begin experience this strange issue.
Sorry, in fact have no idea could cause it.
Cheers

Hi Tim,

Thanks for for input anyway. Much Appreciated.

Hi I Googled and found a few lines to copy and paste. After which I used 'python3 -v' which then returned 3.8.2. No change to my error.
But many thanks for input - much appreciated.
Looks as if yet another install might be called for or another distro. perhaps. I've used Mate for a few years and it's aleays been an install and forget OS with absolutely no problems encountered or any intervention required. Still might be time to move on now.......

@matebod,
If I may suggest, don't switch DE or distro for issues like this; sooner or later you will have some issue in them too that would frustrate you. The issue is only not being able to open 'Software and Updates' but otherwise system updates and new software installs are working OK, correct?

Would you mind going through the checklist/suggestions again.

  1. Did you install/reinstall python3-six and python3-certifi packages as suggested by @LordBoltar? It is not clear to me from your reply if you did; you only mentioned checked python version. If not, please do. Let's see if that helps.

  2. As suggested by @Tim,

  • keep the firewall off till issue issue is resolved. There is some issue with proxy/connection.
  • try your best to record what you are doing till the point you start seeing issue.
    • are you enabling or disabling anything in 'Software and Updates'? CD/DVD, Canonical partners, PPAs, pre-release updates etc., if so turn off all of them and keep the default.

    • have you installed gnome-online-accounts (for google drive may be) and/or enabled livepatch? if so, disable livepatch and uninstall goa. I'm mentioning goa because, it is the only setting exposed in gsettings for SoftwareProperties.

      sai@sai-HP-Laptop-14-bs0xx:~$ gsettings list-keys com.ubuntu.SoftwareProperties
      goa-account-id
      
    • are you behind any VPN? or have you enabled any system-wide proxy? if so, disable it. Common thing in many error messages you posted are related to proxy connection.

I installed gnome-online-accounts and it enabled a new item 'Network Proxy' in the control panel that I don't remember having before (probably from dependancy, gnome-control-center(?)). See below.

Screenshot at 2020-09-27 06-50-24

That allows to set system-wide proxy settings.

Screenshot at 2020-09-27 06-49-54

Instead of reinstalling for troubleshooting, I would suggest, if you could, try to reproduce the issue on a virtualbox and if successful, you could reinstall once for all.

1 Like

@matebod, refer to two bug reports below, solution was to reinstall python3-six (and in one case, also reinstall python3-certifi).

sudo apt install --reinstall python3-six python3-certifi


1 Like