首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >子进程/usr/bin/dpkg由于update-notifier-common返回错误代码(1)

子进程/usr/bin/dpkg由于update-notifier-common返回错误代码(1)
EN

Stack Overflow用户
提问于 2018-09-28 03:08:42
回答 1查看 606关注 0票数 2

在运行apt升级命令时,我得到了。

代码语言:javascript
复制
update-initramfs: Generating /boot/initrd.img-4.4.0-135-generic
    Errors were encountered while processing:
     update-notifier-common
     update-notifier
    E: Sub-process /usr/bin/dpkg returned an error code (1)


root@demo:~# apt install nano
Reading package lists... Done
Building dependency tree       
Reading state information... Done
nano is already the newest version (2.5.3-2ubuntu2).
nano set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Setting up update-notifier-common (3.168.9) ...
Traceback (most recent call last):
  File "/usr/lib/update-notifier/package-data-downloader", line 24, in <module>
    import debian.deb822
  File "/usr/lib/python3/dist-packages/debian/deb822.py", line 47, in <module>
    import six
ImportError: No module named 'six'
dpkg: error processing package update-notifier-common (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of update-notifier:
 update-notifier depends on update-notifier-common (= 3.168.9); however:
  Package update-notifier-common is not configured yet.

dpkg: error processing package update-notifier (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Errors were encountered while processing:
 update-notifier-common
 update-notifier
E: Sub-process /usr/bin/dpkg returned an error code (1)

请帮帮忙

EN

回答 1

Stack Overflow用户

发布于 2021-01-20 23:35:47

我今天遇到了同样的问题。在堆栈溢出站点上进行了多次搜索后,未找到所需的解决方案。然而,我在中文网站上搜索后找到了一个解决方案,下面是解决方案:

代码语言:javascript
复制
cd /var/lib/dpkg
sudo mv info info.bak
sudo mkdir info
sudo apt-get upgrade

参考here

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/52543627

复制
相关文章

相似问题

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