Когда нажимаю на иконку приложения "Software & Updates", ничего не происходит. Как будто приложение просто игнорирует мой клик. И совершенно непонятно как с этим бороться. Ярлык на приложение есть (и ярлык правильно ссылается на приложение), вроде система должна реагировать - но ничего не срабатывает.
Я пытался очистить списки старых приложений в надежде что это поможет. Но ничего не произошло:
sudo rm -rvf /var/lib/apt/lists/*
sudo apt-get update
sudo shutdown -r now
Вот некоторые сведения о моей системе:
$ uname -a
Linux Ubuntu 5.4.0-42-generic #46~18.04.1-Ubuntu SMP Fri Jul 10 09:11:24 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
$ gnome-shell --version
GNOME Shell 3.28.4
$ software-properties-gtk
ERROR:dbus.proxies:Introspect error on :1.228:/: 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 <module>
app = SoftwarePropertiesGtk(datadir=options.data_dir, options=options, file=file)
File "/usr/lib/python3/dist-packages/softwareproperties/gtk/SoftwarePropertiesGtk.py", line 173, in __init__
self.backend.Reload();
File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 70, in __call__
return self._proxy_method(*args, **keywords)
File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 145, in __call__
**keywords)
File "/usr/lib/python3/dist-packages/dbus/connection.py", line 651, in call_blocking
message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name :1.228 was not provided by any .service files
Я так же пытался переустановить пакет python3-size (как советовали здесь), но это тоже не помогло:
sudo apt-get update && sudo apt-get install --reinstall python3-six python3-certifi
Еще я заметил некоторые ошибки в логах журнала через journalctl -e (не знаю имеют ли они отношение к делу, но привожу на всякий случай):
May 14 08:14:14 Prime dbus-daemon[1303]: [system] Activating service name='com.ubuntu.SoftwareProperties' requested by ':1.157' (uid=1000 pid=10808 comm="/usr/bin/python3 /usr/bin/soft
May 14 08:14:14 Prime com.ubuntu.SoftwareProperties[1303]: Unable to init server: Could not connect: Connection refused
May 14 08:14:14 Prime com.ubuntu.SoftwareProperties[1303]: Unable to init server: Could not connect: Connection refused
May 14 08:14:14 Prime dbus-daemon[1303]: [system] Successfully activated service 'com.ubuntu.SoftwareProperties'
May 14 08:14:14 Prime com.ubuntu.SoftwareProperties[1303]: Traceback (most recent call last):
May 14 08:14:14 Prime com.ubuntu.SoftwareProperties[1303]: File "/usr/lib/software-properties/software-properties-dbus", line 68, in <module>
May 14 08:14:14 Prime com.ubuntu.SoftwareProperties[1303]: server = SoftwarePropertiesDBus(bus, datadir=datadir)
May 14 08:14:14 Prime com.ubuntu.SoftwareProperties[1303]: File "/usr/lib/python3/dist-packages/softwareproperties/dbus/SoftwarePropertiesDBus.py", line 66, in __init__
May 14 08:14:14 Prime com.ubuntu.SoftwareProperties[1303]: self._livepatch_service = LivepatchService()
May 14 08:14:14 Prime com.ubuntu.SoftwareProperties[1303]: File "/usr/lib/python3/dist-packages/softwareproperties/LivepatchService.py", line 93, in __init__
May 14 08:14:14 Prime com.ubuntu.SoftwareProperties[1303]: self._session = requests_unixsocket.Session()
May 14 08:14:14 Prime com.ubuntu.SoftwareProperties[1303]: NameError: name 'requests_unixsocket' is not defined
Не смотря на эти ошибки, пакет requests_unixsocket в системе имеется. И смысл вот сообщения NameError: name 'requests_unixsocket' is not defined я вообще не понимаю.
$ pip list | grep requests
requests 2.24.0
requests-unixsocket 0.1.5
WARNING: You are using pip version 20.2.2; however, version 20.2.3 is available.
You should consider upgrading via the '/usr/bin/python3 -m pip install --upgrade pip' command.
$ pip3 list | grep requests
requests 2.24.0
requests-unixsocket 0.1.5
WARNING: You are using pip version 20.2.2; however, version 20.2.3 is available.
You should consider upgrading via the '/usr/bin/python3 -m pip install --upgrade pip' command.
$ pip3 list --user | grep requests
requests 2.24.0
WARNING: You are using pip version 20.2.2; however, version 20.2.3 is available.
You should consider upgrading via the '/usr/bin/python3 -m pip install --upgrade pip' command.
Для чистоты эксперимента, я пробовал импортировать requests_unixsocket в пайтон-консоли и все работало:
Python 3.6.9 (default, Jul 17 2020, 12:50:27)
[GCC 8.4.0] on linux
Type "help", "copyright", "credits" or "license()" for more information.
>>> import requests_unixsocket
>>> a = requests_unixsocket.Session()
>>> a
<requests_unixsocket.Session object at 0x7fb103952470>
Вообще непонятно почему /usr/lib/python3/dist-packages/softwareproperties/LivepatchService.py
нельзя импортировать. Он явно присутствует в моем сетапе:
$ ls /usr/lib/python3/dist-packages/ | grep request
requests_unixsocket
requests_unixsocket-0.1.5.egg-info
Вообщем, я много инфы предоставил - sorry если дополнительные данные больше запутали вопрос, чем помогли объяснить суть проблемы. Помогите разобраться с запуском приложения "Software & Updates".