View Issue Details

IDProjectCategoryView StatusLast Update
0005641Kali LinuxKali Package Bugpublic2019-08-17 19:30
Reporterzh11ka Assigned Torhertzog  
PriorityhighSeverityminorReproducibilityhave not tried
Status closedResolutionnot fixable 
Product Version2019.2 
Summary0005641: unable to install updates and upgrades because of python
Description

whenever i try to install any updates & upgrades or tools its giving me back a python error i tried to uninstall and reinstall but its still giving me the same error

here is the output for 'apt-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:
libexpat1-dev libgirepository-1.0-1 libpython3-dev libpython3.7 libpython3.7-dev libreadline7 python-pip-whl python3.7-dev
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 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 python3 (3.7.3-1) ...
running python rtupdate hooks for python3.7...

Traceback (most recent call last):
File "/usr/bin/py3clean", line 32, in <module>
from debpython import files as dpf

File "/usr/share/python3/debpython/init.py", line 7, in <module>
from subprocess import PIPE, Popen
File "/usr/bin/subprocess.py", line 406, in <module>

_create_pipe = _posixsubprocess.cloexec_pipe

AttributeError: module '_posixsubprocess' has no attribute 'cloexec_pipe'
error running python rtupdate hook apt-listchanges

Traceback (most recent call last):
File "/usr/bin/py3clean", line 32, in <module>
from debpython import files as dpf

File "/usr/share/python3/debpython/init.py", line 7, in <module>
from subprocess import PIPE, Popen
File "/usr/bin/subprocess.py", line 406, in <module>
_create_pipe = _posixsubprocess.cloexec_pipe

AttributeError: module '_posixsubprocess' has no attribute 'cloexec_pipe'
error running python rtupdate hook backdoor-factory

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

from debpython import files as dpf

File "/usr/share/python3/debpython/init.py", line 7, in <module>
from subprocess import PIPE, Popen

File "/usr/bin/subprocess.py", line 406, in <module>
_create_pipe = _posixsubprocess.cloexec_pipe
AttributeError: module '_posixsubprocess' has no attribute 'cloexec_pipe'

error running python rtupdate hook gedit

Traceback (most recent call last):
File "/usr/bin/py3clean", line 32, in <module>
from debpython import files as dpf

File "/usr/share/python3/debpython/init.py", line 7, in <module>
from subprocess import PIPE, Popen

File "/usr/bin/subprocess.py", line 406, in <module>
_create_pipe = _posixsubprocess.cloexec_pipe

AttributeError: module '_posixsubprocess' has no attribute 'cloexec_pipe'
error running python rtupdate hook system-config-printer-common
Traceback (most recent call last):

File "/usr/bin/py3clean", line 32, in <module>
from debpython import files as dpf
File "/usr/share/python3/debpython/init.py", line 7, in <module>
from subprocess import PIPE, Popen

File "/usr/bin/subprocess.py", line 406, in <module>
_create_pipe = _posixsubprocess.cloexec_pipe
AttributeError: module '_posixsubprocess' has no attribute 'cloexec_pipe'

error running python rtupdate hook terminator
Traceback (most recent call last):

File "/usr/bin/py3clean", line 32, in <module>
from debpython import files as dpf
File "/usr/share/python3/debpython/init.py", line 7, in <module>
from subprocess import PIPE, Popen

File "/usr/bin/subprocess.py", line 406, in <module>
_create_pipe = _posixsubprocess.cloexec_pipe
AttributeError: module '_posixsubprocess' has no attribute 'cloexec_pipe'
error running python rtupdate hook veil

Traceback (most recent call last):
File "/usr/bin/py3clean", line 32, in <module>
from debpython import files as dpf

File "/usr/share/python3/debpython/init.py", line 7, in <module>
from subprocess import PIPE, Popen
File "/usr/bin/subprocess.py", line 406, in <module>
_create_pipe = _posixsubprocess.cloexec_pipe

AttributeError: module '_posixsubprocess' has no attribute 'cloexec_pipe'
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)

Additional Information

i also tried these commands:
apt update && apt -y full-upgrade
sudo apt-get --reinstall install python3
sudo apt-get dist-upgrade
sudo apt-get -f install
sudo apt-get -f install python3

Activities

rhertzog

rhertzog

2019-08-17 19:30

administrator   ~0010904

File "/usr/bin/subprocess.py", line 406, in <module>
_create_pipe = _posixsubprocess.cloexec_pipe

/usr/bin/subprocess.py is not provided by any Kali package, drop that file and you should be in a better state. Anyway, this is not a kali bug but something that you broke yourself.

Issue History

Date Modified Username Field Change
2019-08-17 12:40 zh11ka New Issue
2019-08-17 19:30 rhertzog Assigned To => rhertzog
2019-08-17 19:30 rhertzog Status new => closed
2019-08-17 19:30 rhertzog Resolution open => not fixable
2019-08-17 19:30 rhertzog Note Added: 0010904