Я не записывал сообщения об ошибках, но это повторялось несколько раз.
Когда я пытаюсь запустить sudo ap t-get upgrade
Я получаю
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
gyp libc-ares2 libjs-async libjs-inherits libjs-node-uuid libjs-underscore
libllvm9 libstd-rust-1.43 libuv1 libuv1-dev linux-hwe-5.4-headers-5.4.0-42
linux-hwe-5.4-headers-5.4.0-45 linux-hwe-5.4-headers-5.4.0-47
linux-hwe-5.4-headers-5.4.0-48 linux-hwe-5.4-headers-5.4.0-51
linux-hwe-5.4-headers-5.4.0-52 linux-hwe-5.4-headers-5.4.0-53
linux-hwe-5.4-headers-5.4.0-54 linux-hwe-5.4-headers-5.4.0-56
linux-hwe-5.4-headers-5.4.0-58 linux-hwe-5.4-headers-5.4.0-59
linux-hwe-5.4-headers-5.4.0-62 linux-hwe-5.4-headers-5.4.0-64
linux-hwe-5.4-headers-5.4.0-65 linux-hwe-5.4-headers-5.4.0-66
linux-hwe-5.4-headers-5.4.0-67 linux-hwe-5.4-headers-5.4.0-70
linux-hwe-5.4-headers-5.4.0-72 linux-hwe-5.4-headers-5.4.0-73
linux-hwe-5.4-headers-5.4.0-74 node-abbrev node-ansi node-ansi-color-table
node-archy node-async node-balanced-match node-block-stream
node-brace-expansion node-combined-stream node-concat-map node-cookie-jar
node-delayed-stream node-forever-agent node-form-data node-fs.realpath
node-fstream node-fstream-ignore node-github-url-from-git node-glob
node-graceful-fs node-hosted-git-info node-inflight node-inherits node-ini
node-isexe node-json-stringify-safe node-lockfile node-lru-cache node-mime
node-minimatch node-mkdirp node-mute-stream node-node-uuid node-nopt
node-npmlog node-once node-osenv node-path-is-absolute node-pseudomap
node-qs node-read node-request node-retry node-rimraf node-semver node-sha
node-slide node-spdx-correct node-spdx-expression-parse
node-spdx-license-ids node-tar node-tunnel-agent node-underscore
node-validate-npm-package-license node-which node-wrappy node-yallist nodejs
nodejs-doc wnode
Use 'sudo apt autoremove' to remove them.
The following packages will be upgraded:
ubuntu-drivers-common
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 52.7 kB of archives.
After this operation, 41.0 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 ubuntu-drivers-common amd64 1:0.8.6.3~0.18.04.1 [52.7 kB]
Fetched 52.7 kB in 0s (152 kB/s)
Preconfiguring packages ...
(Reading database ... 565080 files and directories currently installed.)
Preparing to unpack .../ubuntu-drivers-common_1%3a0.8.6.3~0.18.04.1_amd64.deb ...
Unpacking ubuntu-drivers-common (1:0.8.6.3~0.18.04.1) over (1:0.5.2.5) ...
Setting up update-notifier-common (3.192.1.11) ...
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 status 1
Setting up ubuntu-drivers-common (1:0.8.6.3~0.18.04.1) ...
dpkg: dependency problems prevent configuration of update-notifier:
update-notifier depends on update-notifier-common (= 3.192.1.11); 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)
для sudo dpkg --configure -a
Setting up update-notifier-common (3.192.1.11) ...
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 status 1
dpkg: dependency problems prevent configuration of update-notifier:
update-notifier depends on update-notifier-common (= 3.192.1.11); however:
Package update-notifier-common is not configured yet.
dpkg: error processing package update-notifier (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
update-notifier-common
update-notifier
для sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
gyp libc-ares2 libjs-async libjs-inherits libjs-node-uuid libjs-underscore
libllvm9 libstd-rust-1.43 libuv1 libuv1-dev linux-hwe-5.4-headers-5.4.0-42
linux-hwe-5.4-headers-5.4.0-45 linux-hwe-5.4-headers-5.4.0-47
linux-hwe-5.4-headers-5.4.0-48 linux-hwe-5.4-headers-5.4.0-51
linux-hwe-5.4-headers-5.4.0-52 linux-hwe-5.4-headers-5.4.0-53
linux-hwe-5.4-headers-5.4.0-54 linux-hwe-5.4-headers-5.4.0-56
linux-hwe-5.4-headers-5.4.0-58 linux-hwe-5.4-headers-5.4.0-59
linux-hwe-5.4-headers-5.4.0-62 linux-hwe-5.4-headers-5.4.0-64
linux-hwe-5.4-headers-5.4.0-65 linux-hwe-5.4-headers-5.4.0-66
linux-hwe-5.4-headers-5.4.0-67 linux-hwe-5.4-headers-5.4.0-70
linux-hwe-5.4-headers-5.4.0-72 linux-hwe-5.4-headers-5.4.0-73
linux-hwe-5.4-headers-5.4.0-74 node-abbrev node-ansi node-ansi-color-table
node-archy node-async node-balanced-match node-block-stream
node-brace-expansion node-combined-stream node-concat-map node-cookie-jar
node-delayed-stream node-forever-agent node-form-data node-fs.realpath
node-fstream node-fstream-ignore node-github-url-from-git node-glob
node-graceful-fs node-hosted-git-info node-inflight node-inherits node-ini
node-isexe node-json-stringify-safe node-lockfile node-lru-cache node-mime
node-minimatch node-mkdirp node-mute-stream node-node-uuid node-nopt
node-npmlog node-once node-osenv node-path-is-absolute node-pseudomap
node-qs node-read node-request node-retry node-rimraf node-semver node-sha
node-slide node-spdx-correct node-spdx-expression-parse
node-spdx-license-ids node-tar node-tunnel-agent node-underscore
node-validate-npm-package-license node-which node-wrappy node-yallist nodejs
nodejs-doc wnode
Use 'sudo apt autoremove' to remove them.
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.
Setting up update-notifier-common (3.192.1.11) ...
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 status 1
dpkg: dependency problems prevent configuration of update-notifier:
update-notifier depends on update-notifier-common (= 3.192.1.11); 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)
apt-cache policy python-debian python3-debian:
python-debian:
Installed: (none)
Candidate: 0.1.32
Version table: 0.1.32 500
500 us.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
500 us.archive.ubuntu.com/ubuntu bionic/universe i386 Packages
python3-debian:
Installed: 0.1.32
Candidate: 0.1.32
Version table:
*** 0.1.32 500
500 us.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
500 us.archive.ubuntu.com/ubuntu bionic/main i386 Packages
100 /var/lib/dpkg/status
Кажется, что-то не так с вашим dpkg.
Попробуйте перенастроить dpkg с помощью
sudo dpkg --configure -a
. Если не работает, выполните:
sudo apt --fix-broken install
sudo dpkg --configure -a