我正在尝试更新 update-notifier 和 update-notifier-common,但收到此错误消息。我应该怎么做才能修复损坏的更新?
\nSetting up update-notifier-common (3.192.40.4) ...\nTraceback (most recent call last):\n File "/usr/lib/update-notifier/package-data-downloader", line 24, in <module>\n import debian.deb822\nModuleNotFoundError: No module named \'debian\'\ndpkg: error processing package update-notifier-common (--configure):\n installed update-notifier-common package post-installation script subprocess returned error exit st\natus 1\ndpkg: dependency problems prevent configuration of update-notifier:\n update-notifier depends on update-notifier-common (= 3.192.40.4); however:\n Package update-notifier-common is not configured yet.\n\ndpkg: error processing package update-notifier (--configure):\n dependency problems - leaving unconfigured\nProcessing triggers for libglib2.0-0:amd64 (2.68.1-1~ubuntu21.04.1) ...\nNo apport report written because …Run Code Online (Sandbox Code Playgroud) 很长一段时间以来,每当我安装软件包时,我都会遇到问题。例如,当我尝试安装外星人包时,我得到的结果是:
\n\nsudo apt-get install alien\nReading package lists... Done\nBuilding dependency tree \nReading state information... Done\nalien is already the newest version (8.95).\n0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.\n4 not fully installed or removed.\nAfter this operation, 0 B of additional disk space will be used.\nDo you want to continue? [O/n] O\nSetting up update-notifier-common (3.192.1.7) ...\nTraceback (most recent call last):\nFile "/usr/lib/update-notifier/package-data-downloader", line 24, in <module>\nimport debian.deb822\nFile "/usr/lib/python3/dist-packages/debian/deb822.py", line 38, in <module>\nimport chardet\nModuleNotFoundError: No module …Run Code Online (Sandbox Code Playgroud) 为什么偶尔会update-notifier吐出大量“权限被拒绝”行journalctl?
Dec 04 08:55:32 ML systemd[1]: NetworkManager-dispatcher.service: Succeeded.
Dec 04 08:55:56 ML pkexec[334886]: pam_unix(polkit-1:session): session opened for user root by (uid=1000)
Dec 04 08:55:56 ML pkexec[334886]: jabowery: Executing command [USER=root] [TTY=unknown] [CWD=/home/jabowery] [COMMAND=/usr/lib/update-notifier/package-system-locked]
Dec 04 08:55:56 ML update-notifier.desktop[334889]: Cannot stat file /proc/3782/fd/4: Permission denied
Dec 04 08:55:56 ML update-notifier.desktop[334889]: Cannot stat file /proc/3782/fd/5: Permission denied
... about 300 lines...
Dec 04 08:55:56 ML update-notifier.desktop[334892]: Cannot stat file /proc/3782/fd/73: Permission denied
Dec 04 08:55:56 ML …Run Code Online (Sandbox Code Playgroud)