Hello. After running apt-get update && apt-get dist-upgrade earlier, I began having a syntax error which causes dpkg to fail on installation of python-configargparse (0.9.3-0kali1). This results in issues for mitmproxy and kali-linux-full packages. Please see output below.
Things tried so far:
- Googling. Only found similar listing on Portuguese site but that site didnt have a solution.
- Installing python-configargparse manually (didnt work)
- Editing the pythonconfigargparse.py in hopes of fixing the syntax error (but cannot figure out what is the error)
Any advice please?
Code:
root@kali:# apt-get install python-configargparse
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-configargparse is already the newest version.
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]?
Setting up python-configargparse (0.9.3-0kali1) ...
SyntaxError: ('invalid syntax', ('/usr/lib/python2.6/dist-packages/configargparse.py', 16, 65, 'ACTION_TYPES_THAT_DONT_NEED_A_VALUE = {argparse._StoreTrueAction, argparse._StoreFalseAction, argparse._CountAction, argparse._StoreConstAction, argparse._AppendConstAction}\n'))
dpkg: error processing python-configargparse (--configure):
subprocess installed post-installation script returned error exit status 101
Errors were encountered while processing:
python-configargparse
E: Sub-process /usr/bin/dpkg returned an error code (1)