Не удалось обновить уведомление об обновлении, ModuleNotFoundError: нет модуля с именем «debian»

Я пытаюсь обновить update-notifier и update-notifier-common, но вместо этого получаю эти сообщения об ошибках. Что мне делать, чтобы исправить сломанное обновление?

      Setting up update-notifier-common (3.192.40.4) ...
Traceback (most recent call last):
  File "/usr/lib/update-notifier/package-data-downloader", line 24, in <module>
    import debian.deb822
ModuleNotFoundError: No module named 'debian'
dpkg: error processing package update-notifier-common (--configure):
 installed update-notifier-common package post-installation script subprocess returned error exit st
atus 1
dpkg: dependency problems prevent configuration of update-notifier:
 update-notifier depends on update-notifier-common (= 3.192.40.4); however:
  Package update-notifier-common is not configured yet.

dpkg: error processing package update-notifier (--configure):
 dependency problems - leaving unconfigured
Processing triggers for libglib2.0-0:amd64 (2.68.1-1~ubuntu21.04.1) ...
No apport report written because the error message indicates its a followup error from a previous fa
ilure.
      Override for key “direction” in schema “org.xfce.mousepad.state.search” in override file “/usr
/share/glib-2.0/schemas/20_xubuntu-default-settings.gschema.override” is outside the range given in 
the schema; ignoring override for this key.
Processing triggers for libglib2.0-0:i386 (2.68.1-1~ubuntu21.04.1) ...
Override for key “direction” in schema “org.xfce.mousepad.state.search” in override file “/usr/share
/glib-2.0/schemas/20_xubuntu-default-settings.gschema.override” is outside the range given in the sc
hema; ignoring override for this key.
Processing triggers for hicolor-icon-theme (0.17-2) ...
Errors were encountered while processing:
 update-notifier-common
 update-notifier
E: Sub-process /usr/bin/dpkg returned an error code (1)

Это было 8 лет назад, в котором говорилось о переустановке python-debian, но apt говорит, что пакет недоступен. Я беспокоюсь о том, чтобы сделать что-то неправильно с установкой Python, потому что кажется, что исправить это будет большой проблемой.

Я на Xubuntu 21.04, если это актуально.

1 ответ

Вы должны бежать

      sudo apt-get update
sudo apt-get install --reinstall python3-debian

а затем установите все обновления с помощью таких команд, как

      sudo apt-get --fix-broken install
sudo apt-get dist-upgrade
Другие вопросы по тегам