首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >未能更新更新通知程序,ModuleNotFoundError:没有名为“debian”的模块

未能更新更新通知程序,ModuleNotFoundError:没有名为“debian”的模块
EN

Ask Ubuntu用户
提问于 2021-12-17 04:09:35
回答 1查看 2.2K关注 0票数 7

我试图更新更新通知程序和更新通知程序-常见,但我得到的错误信息,而不是。我该怎么做才能修复坏掉的更新?

代码语言:javascript
复制
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,但是apt说这个包是不可用的。我担心在python安装上做错了事情,因为这似乎是一个很大的麻烦。

我正在使用Xubuntu 21.04,如果这是相关的话。

EN

回答 1

Ask Ubuntu用户

回答已采纳

发布于 2021-12-17 11:29:33

你得跑

代码语言:javascript
复制
sudo apt-get update
sudo apt-get install --reinstall python3-debian

然后使用以下命令安装所有升级

代码语言:javascript
复制
sudo apt-get --fix-broken install
sudo apt-get dist-upgrade
票数 10
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1382388

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档