ソフトウェアとアップデートは開始されません(Ubuntu 22.04)

ソフトウェアとアップデートは開始されません(Ubuntu 22.04)

ソフトウェアの起動と更新に問題があります(Ubuntu 22.04)。

システムログ:

Aug 22 11:07:03 maskalev-Aspire-A514-54 systemd[3327]: Started Application launched by gnome-shell.
Aug 22 11:07:04 maskalev-Aspire-A514-54 dbus-daemon[817]: [system] Activating service name='com.ubuntu.SoftwareProperties' requested by ':1.190' (uid=1000 pid=14929 comm="/usr/bin/python3 /usr/bin/software
-properties-gtk " label="unconfined") (using servicehelper)
Aug 22 11:07:04 maskalev-Aspire-A514-54 com.ubuntu.SoftwareProperties[14940]: Traceback (most recent call last):
Aug 22 11:07:04 maskalev-Aspire-A514-54 com.ubuntu.SoftwareProperties[14940]:   File "/lib/python3/dist-packages/launchpadlib/launchpad.py", line 34, in <module>
Aug 22 11:07:04 maskalev-Aspire-A514-54 com.ubuntu.SoftwareProperties[14940]:     from httplib2 import proxy_info_from_environment
Aug 22 11:07:04 maskalev-Aspire-A514-54 com.ubuntu.SoftwareProperties[14940]:   File "/lib/python3/dist-packages/httplib2/__init__.py", line 52, in <module>
Aug 22 11:07:04 maskalev-Aspire-A514-54 com.ubuntu.SoftwareProperties[14940]:     from . import auth
Aug 22 11:07:04 maskalev-Aspire-A514-54 com.ubuntu.SoftwareProperties[14940]:   File "/lib/python3/dist-packages/httplib2/auth.py", line 4, in <module>
Aug 22 11:07:04 maskalev-Aspire-A514-54 com.ubuntu.SoftwareProperties[14940]:     import pyparsing as pp
Aug 22 11:07:04 maskalev-Aspire-A514-54 com.ubuntu.SoftwareProperties[14940]: ModuleNotFoundError: No module named 'pyparsing'
Aug 22 11:07:04 maskalev-Aspire-A514-54 com.ubuntu.SoftwareProperties[14940]: During handling of the above exception, another exception occurred:
Aug 22 11:07:04 maskalev-Aspire-A514-54 com.ubuntu.SoftwareProperties[14940]: Traceback (most recent call last):
Aug 22 11:07:04 maskalev-Aspire-A514-54 com.ubuntu.SoftwareProperties[14940]:   File "/usr/lib/software-properties/software-properties-dbus", line 29, in <module>
Aug 22 11:07:04 maskalev-Aspire-A514-54 com.ubuntu.SoftwareProperties[14940]:     from softwareproperties.dbus.SoftwarePropertiesDBus import (
Aug 22 11:07:04 maskalev-Aspire-A514-54 com.ubuntu.SoftwareProperties[14940]:   File "/lib/python3/dist-packages/softwareproperties/dbus/SoftwarePropertiesDBus.py", line 32, in <module>
Aug 22 11:07:04 maskalev-Aspire-A514-54 com.ubuntu.SoftwareProperties[14940]:     from softwareproperties.SoftwareProperties import SoftwareProperties
Aug 22 11:07:04 maskalev-Aspire-A514-54 com.ubuntu.SoftwareProperties[14940]:   File "/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 64, in <module>
Aug 22 11:07:04 maskalev-Aspire-A514-54 com.ubuntu.SoftwareProperties[14940]:     from softwareproperties.shortcuts import shortcut_handler
Aug 22 11:07:04 maskalev-Aspire-A514-54 com.ubuntu.SoftwareProperties[14940]:   File "/lib/python3/dist-packages/softwareproperties/shortcuts.py", line 23, in <module>
Aug 22 11:07:04 maskalev-Aspire-A514-54 com.ubuntu.SoftwareProperties[14940]:     from softwareproperties.ppa import PPAShortcutHandler
Aug 22 11:07:04 maskalev-Aspire-A514-54 com.ubuntu.SoftwareProperties[14940]:   File "/lib/python3/dist-packages/softwareproperties/ppa.py", line 25, in <module>
Aug 22 11:07:04 maskalev-Aspire-A514-54 com.ubuntu.SoftwareProperties[14940]:     from launchpadlib.launchpad import Launchpad
Aug 22 11:07:04 maskalev-Aspire-A514-54 com.ubuntu.SoftwareProperties[14940]:   File "/lib/python3/dist-packages/launchpadlib/launchpad.py", line 36, in <module>
Aug 22 11:07:04 maskalev-Aspire-A514-54 com.ubuntu.SoftwareProperties[14940]:     from httplib2 import ProxyInfo
Aug 22 11:07:04 maskalev-Aspire-A514-54 com.ubuntu.SoftwareProperties[14940]:   File "/lib/python3/dist-packages/httplib2/__init__.py", line 52, in <module>
Aug 22 11:07:04 maskalev-Aspire-A514-54 com.ubuntu.SoftwareProperties[14940]:     from . import auth
Aug 22 11:07:04 maskalev-Aspire-A514-54 com.ubuntu.SoftwareProperties[14940]:   File "/lib/python3/dist-packages/httplib2/auth.py", line 4, in <module>
Aug 22 11:07:04 maskalev-Aspire-A514-54 com.ubuntu.SoftwareProperties[14940]:     import pyparsing as pp
Aug 22 11:07:04 maskalev-Aspire-A514-54 com.ubuntu.SoftwareProperties[14940]: ModuleNotFoundError: No module named 'pyparsing'
Aug 22 11:07:04 maskalev-Aspire-A514-54 dbus-daemon[817]: [system] Activated service 'com.ubuntu.SoftwareProperties' failed: Launch helper exited with unknown return code 1
Aug 22 11:07:04 maskalev-Aspire-A514-54 software-properties-gtk.desktop[14929]: Traceback (most recent call last):
Aug 22 11:07:04 maskalev-Aspire-A514-54 software-properties-gtk.desktop[14929]:   File "/usr/lib/python3/dist-packages/dbus/bus.py", line 177, in activate_name_owner
Aug 22 11:07:04 maskalev-Aspire-A514-54 software-properties-gtk.desktop[14929]:     return self.get_name_owner(bus_name)
Aug 22 11:07:04 maskalev-Aspire-A514-54 software-properties-gtk.desktop[14929]:   File "/usr/lib/python3/dist-packages/dbus/bus.py", line 361, in get_name_owner
Aug 22 11:07:04 maskalev-Aspire-A514-54 software-properties-gtk.desktop[14929]:     return self.call_blocking(BUS_DAEMON_NAME, BUS_DAEMON_PATH,
Aug 22 11:07:04 maskalev-Aspire-A514-54 software-properties-gtk.desktop[14929]:   File "/usr/lib/python3/dist-packages/dbus/connection.py", line 652, in call_blocking
Aug 22 11:07:04 maskalev-Aspire-A514-54 software-properties-gtk.desktop[14929]:     reply_message = self.send_message_with_reply_and_block(
Aug 22 11:07:04 maskalev-Aspire-A514-54 software-properties-gtk.desktop[14929]: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NameHasNoOwner: Could not get owner of name 'com.ubuntu.SoftwareProperties': no such name
Aug 22 11:07:04 maskalev-Aspire-A514-54 software-properties-gtk.desktop[14929]: During handling of the above exception, another exception occurred:
Aug 22 11:07:04 maskalev-Aspire-A514-54 software-properties-gtk.desktop[14929]: Traceback (most recent call last):
Aug 22 11:07:04 maskalev-Aspire-A514-54 software-properties-gtk.desktop[14929]:   File "/usr/bin/software-properties-gtk", line 100, in <module>
Aug 22 11:07:04 maskalev-Aspire-A514-54 software-properties-gtk.desktop[14929]:     app = SoftwarePropertiesGtk(datadir=options.data_dir, options=options, file=file)
Aug 22 11:07:04 maskalev-Aspire-A514-54 software-properties-gtk.desktop[14929]:   File "/usr/lib/python3/dist-packages/softwareproperties/gtk/SoftwarePropertiesGtk.py", line 210, in __init__
Aug 22 11:07:04 maskalev-Aspire-A514-54 software-properties-gtk.desktop[14929]:     proxy = bus.get_object("com.ubuntu.SoftwareProperties", "/")
Aug 22 11:07:04 maskalev-Aspire-A514-54 software-properties-gtk.desktop[14929]:   File "/usr/lib/python3/dist-packages/dbus/bus.py", line 241, in get_object
Aug 22 11:07:04 maskalev-Aspire-A514-54 software-properties-gtk.desktop[14929]:     return self.ProxyObjectClass(self, bus_name, object_path,
Aug 22 11:07:04 maskalev-Aspire-A514-54 software-properties-gtk.desktop[14929]:   File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 250, in __init__
Aug 22 11:07:04 maskalev-Aspire-A514-54 software-properties-gtk.desktop[14929]:     self._named_service = conn.activate_name_owner(bus_name)
Aug 22 11:07:04 maskalev-Aspire-A514-54 software-properties-gtk.desktop[14929]:   File "/usr/lib/python3/dist-packages/dbus/bus.py", line 182, in activate_name_owner
Aug 22 11:07:04 maskalev-Aspire-A514-54 software-properties-gtk.desktop[14929]:     self.start_service_by_name(bus_name)
Aug 22 11:07:04 maskalev-Aspire-A514-54 software-properties-gtk.desktop[14929]:   File "/usr/lib/python3/dist-packages/dbus/bus.py", line 277, in start_service_by_name
Aug 22 11:07:04 maskalev-Aspire-A514-54 software-properties-gtk.desktop[14929]:     return (True, self.call_blocking(BUS_DAEMON_NAME, BUS_DAEMON_PATH,
Aug 22 11:07:04 maskalev-Aspire-A514-54 software-properties-gtk.desktop[14929]:   File "/usr/lib/python3/dist-packages/dbus/connection.py", line 652, in call_blocking
Aug 22 11:07:04 maskalev-Aspire-A514-54 software-properties-gtk.desktop[14929]:     reply_message = self.send_message_with_reply_and_block(
Aug 22 11:07:04 maskalev-Aspire-A514-54 software-properties-gtk.desktop[14929]: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.Spawn.ChildExited: Launch helper exited with unknown return code 1

Pythonに問題があるようです(パス、バージョンなど)。

maskalev@maskalev-Aspire-A514-54:~$ pip install pyparsing
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: pyparsing in ./.local/lib/python3.10/site-packages (3.0.9)
maskalev@maskalev-Aspire-A514-54:~$ python3 -c "import sys; print(sys.path)"
['', '/usr/lib/python310.zip', '/usr/lib/python3.10', '/usr/lib/python3.10/lib-dynload', '/home/maskalev/.local/lib/python3.10/site-packages', '/usr/local/lib/python3.10/dist-packages', '/usr/lib/python3/dist-packages']
maskalev@maskalev-Aspire-A514-54:~$ whereis python3
python3: /usr/bin/python3 /usr/lib/python3 /etc/python3 /usr/share/python3 /usr/share/man/man1/python3.1.gz
maskalev@maskalev-Aspire-A514-54:~$ ls /usr/bin/python*
/usr/bin/python2.7         /usr/bin/python3     /usr/bin/python3.10-config  /usr/bin/python3.11-config  /usr/bin/python3-futurize    /usr/bin/python-dotenv
/usr/bin/python2.7-config  /usr/bin/python3.10  /usr/bin/python3.11         /usr/bin/python3-config     /usr/bin/python3-pasteurize

どんな提案でも喜んで受け入れます。リクエストに応じて追加情報をお送りします。

ベストアンサー1

ローカルユーザーのインストールはシステムソフトウェアとは関係ありません。 pipを使用してシステム全体のPythonパッケージをインストールすることはできません。

Ubuntuはソフトウェアセンターをこのパッケージに依存させるため、気付かずに何らかの方法でパッケージ(またはその内容のみ?)を削除する必要がありpython3-pyparsingます。あなたがこの問題を解決しようとしているという事実を見ると、どこかで似たようなことをしてシステムが故障したような気がします。これにより、途中でより多くの問題が発生する可能性が高くなります。 pyparsingを削除しても、他の重要なモジュールも削除されません。実際にシステムで使用されている実行可能ファイルを上書きしていますか?dpkgaptpipsudo pip uninstallpython3

すぐに問題を解決しようとしますが、複数のバージョンのPythonがパスをめちゃくちゃにすることを心配します。そして、システム全体にわたってインストールを混ぜて整理するのは面倒な方法で中断しているとsudo apt-get reinstall python3-pyparsing思うなら心配します。pip、あなたの最速解決策は、ユーザーのホームページを保存してUbuntuをリセットすることです。実際に投資した時間によって成功するかどうかが変わる場合があります。


¹私が説明した内容がまさにこれだ。ここそしてこここれは、pipシステムに特定のPythonモジュールの特定のバージョンが必要であることを知らず、システムを損傷します。

おすすめ記事