подпроцесс - ошибка apt-listchanges

Я продолжаю получать эту ошибку, когда пытаюсь установить или обновить почти все.

After this operation, 731 kB disk space will be freed.
Do you want to continue? [Y/n] y
/bin/sh: 1: /usr/bin/apt-listchanges: not found
E: Sub-process /usr/bin/apt-listchanges --apt || test $? -lt 10 returned an error code (1)
E: Failure running script /usr/bin/apt-listchanges --apt || test $? -lt 10

Выход для cat /etc/apt/apt.conf.d/20listchanges:

DPkg::Pre-Install-Pkgs { "/usr/bin/apt-listchanges --apt || test $? -lt 10"; };

DPkg::Tools::Options::/usr/bin/apt-listchanges::Version "2";

Выход для sudo apt update && sudo apt upgrade:

    Errors were encountered while processing:

     python3

     python3-crypto

     lsb-release

    E: Sub-process /usr/bin/dpkg returned an error code (

output for sudo apt update --fix-missing && sudo apt install -f

Hit:2 http://ftp.de.debian.org/debian sid InRelease

Hit:1 http://kali.download/kali kali-rolling InRelease

Hit:3 http://kali.download/kali kali-bleeding-edge InRelease

Reading package lists... Done

Building dependency tree       

Reading state information... Done

2 packages can be upgraded. Run 'apt list --upgradable' to see them.

Reading package lists... Done

Building dependency tree       

Reading state information... Done

0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.

1 not fully installed or removed.

After this operation, 0 B of additional disk space will be used.

Setting up python3 (3.7.3-1) ...

running python rtupdate hooks for python3.7...

dpkg-query: package 'apt-listchanges' is not installed

Use dpkg --contents (= dpkg-deb --contents) to list archive files contents.

Traceback (most recent call last):

  File "/usr/bin/py3clean", line 210, in <module>

    main()

  File "/usr/bin/py3clean", line 196, in main

    pfiles = set(dpf.from_package(options.package))

  File "/usr/share/python3/debpython/files.py", line 53, in from_package

    raise Exception("cannot get content of %s" % package_name)

Exception: cannot get content of apt-listchanges


error running python rtupdate hook apt-listchanges

dpkg-query: package 'backdoor-factory' is not installed

Use dpkg --contents (= dpkg-deb --contents) to list archive files contents.

Traceback (most recent call last):

  File "/usr/bin/py3clean", line 210, in <module>

    main()

  File "/usr/bin/py3clean", line 196, in main

    pfiles = set(dpf.from_package(options.package))

  File "/usr/share/python3/debpython/files.py", line 53, in from_package

    raise Exception("cannot get content of %s" % package_name)

Exception: cannot get content of backdoor-factory

error running python rtupdate hook backdoor-factory

dpkg-query: package 'dh-python' is not installed

Use dpkg --contents (= dpkg-deb --contents) to list archive files contents.

Traceback (most recent call last):

  File "/usr/bin/py3clean", line 210, in <module>

    main()

  File "/usr/bin/py3clean", line 196, in main

    pfiles = set(dpf.from_package(options.package))

  File "/usr/share/python3/debpython/files.py", line 53, in from_package

    raise Exception("cannot get content of %s" % package_name)

Exception: cannot get content of dh-python

error running python rtupdate hook dh-python

dpkg-query: package 'gedit' is not installed

Use dpkg --contents (= dpkg-deb --contents) to list archive files contents.

Traceback (most recent call last):

  File "/usr/bin/py3clean", line 210, in <module>

    main()

  File "/usr/bin/py3clean", line 196, in main
    pfiles = set(dpf.from_package(options.package))

  File "/usr/share/python3/debpython/files.py", line 53, in from_package

    raise Exception("cannot get content of %s" % package_name)

Exception: cannot get content of gedit

error running python rtupdate hook gedit

dpkg-query: package 'system-config-printer-common' is not installed

Use dpkg --contents (= dpkg-deb --contents) to list archive files contents.

Traceback (most recent call last):
  File "/usr/bin/py3clean", line 210, in <module>

    main()

  File "/usr/bin/py3clean", line 196, in main

    pfiles = set(dpf.from_package(options.package))

  File "/usr/share/python3/debpython/files.py", line 53, in from_package
    raise Exception("cannot get content of %s" % package_name)
Exception: cannot get content of system-config-printer-common

error running python rtupdate hook system-config-printer-common
dpkg-query: package 'terminator' is not installed

Use dpkg --contents (= dpkg-deb --contents) to list archive files contents.

Traceback (most recent call last):

  File "/usr/bin/py3clean", line 210, in <module>
    main()

  File "/usr/bin/py3clean", line 196, in main
    pfiles = set(dpf.from_package(options.package))

  File "/usr/share/python3/debpython/files.py", line 53, in from_package
    raise Exception("cannot get content of %s" % package_name)

Exception: cannot get content of terminator

error running python rtupdate hook terminator

dpkg-query: package 'veil' is not installed

Use dpkg --contents (= dpkg-deb --contents) to list archive files contents.

Traceback (most recent call last):

  File "/usr/bin/py3clean", line 210, in <module>
    main()

  File "/usr/bin/py3clean", line 196, in main
    pfiles = set(dpf.from_package(options.package))

  File "/usr/share/python3/debpython/files.py", line 53, in from_package

    raise Exception("cannot get content of %s" % package_name)

Exception: cannot get content of veil

error running python rtupdate hook veil

dpkg-query: package 'virtualbox' is not installed

Use dpkg --contents (= dpkg-deb --contents) to list archive files contents.

Traceback (most recent call last):
  File "/usr/bin/py3clean", line 210, in <module>
    main()
  File "/usr/bin/py3clean", line 196, in main
    pfiles = set(dpf.from_package(options.package))
  File "/usr/share/python3/debpython/files.py", line 53, in from_package
    raise Exception("cannot get content of %s" % package_name)

Exception: cannot get content of virtualbox

error running python rtupdate hook virtualbox
dpkg: error processing package python3 (--configure):

 installed python3 package post-installation script subprocess returned error 
exit status 4

Errors were encountered while processing:
 python3
E: Sub-process /usr/bin/dpkg returned an error code (1)
1
задан 26 August 2019 в 13:58

1 ответ

Опция № 1:

Попробуйте:

sudo apt purge -f apt-listchanges

Затем попытка:

sudo apt install -f apt-listchanges

Опция № 2:

Попробуйте:

sudo dpkg --remove apt-listchanges

Затем попытка:

sudo apt install -f apt-listchanges

Опция № 3:

Попробуйте:

sudo mv /etc/apt/apt.conf.d/20listchanges /etc/apt/apt.conf.d/20listchanges.bak

Затем попытка:

sudo apt update && sudo apt upgrade
0
ответ дан 7 December 2019 в 19:06

Другие вопросы по тегам:

Похожие вопросы: