我是 Linux 新手。我刚刚在 Windows 10 计算机上双启动了 Ubuntu 16.04。每次我尝试安装任何与 update-notifier-common 和 flashplugin-installer 有关的错误时。以下是我尝试安装 chrome 时的一个示例:
Setting up update-notifier-common (3.168.5) ...
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 38, in <module>
import chardet
ImportError: No module named 'chardet'
dpkg: error processing package update-notifier-common (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of flashplugin-installer:
flashplugin-installer depends on update-notifier-common (>= 0.119ubuntu2); however:
Package update-notifier-common is not configured yet.
dpkg: error processing package flashplugin-installer (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a follow up error from a previous failure.
Setting up chromium-browser (62.0.3202.94-0ubuntu0.16.04.1317) ...
Setting up chromium-browser-l10n (62.0.3202.94-0ubuntu0.16.04.1317) ...
Errors were encountered while processing:
update-notifier-common
flashplugin-installer
E: Sub-process /usr/bin/dpkg returned an error code (1)
这个错误是什么意思?我该如何修复它?
答案1
遇到了同样的问题,由于我已经安装了替代的 Python 版本(3.6),并且默认版本是(3.5),所以我的解决方案是update-alternatives --config python3
升级到以前的版本。
希望它能够为遇到同样问题的人提供帮助。