So, I foolishly inadvertently forcibly removed python3:
Code: Select all
sudo dpkg --force all --remove python3
dpkg: python3: dependency problems, but removing anyway as you requested:
wajig depends on python3 (>= 3.2).
python3-apt depends on python3 (>= 3.2).
python3-apt depends on python3 (<< 3.3).
python3-apt depends on python3 (>= 3.2).
python3-apt depends on python3 (<< 3.3).
(Reading database ... 220522 files and directories currently installed.)
Removing python3 ...
Processing triggers for man-db ...
Queue me frantically trying to undo:
Code: Select all
apt install python3
The following NEW packages will be installed:
python3
The following packages will be upgraded:
python3-minimal
The following partially installed packages will be configured:
debconf
1 packages upgraded, 1 newly installed, 0 to remove and 595 not upgraded.
Need to get 0 B/62.5 kB of archives. After unpacking 218 kB will be used.
Do you want to continue? [Y/n/?] y
Setting up debconf (1.5.46) ...
(Reading database ... 220487 files and directories currently installed.)
Preparing to replace python3-minimal 3.2.3-4 (using .../python3-minimal_3.2.3-5_all.deb) ...
Unpacking replacement python3-minimal ...
Selecting previously unselected package python3.
Unpacking python3 (from .../python3_3.2.3-5_all.deb) ...
Processing triggers for man-db ...
Setting up python3-minimal (3.2.3-5) ...
Could not import runpy module
Traceback (most recent call last):
File "/usr/bin/py3compile", line 289, in <module>
main()
File "/usr/bin/py3compile", line 283, in main
process.communicate()
File "/usr/lib/python3.2/subprocess.py", line 809, in communicate
self.stdin.close()
IOError: [Errno 32] Broken pipe
dpkg: error processing python3-minimal (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of python3:
python3 depends on python3-minimal (= 3.2.3-5); however:
Package python3-minimal is not configured yet.
dpkg: error processing python3 (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
python3-minimal
python3
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up python3-minimal (3.2.3-5) ...
Could not import runpy module
Traceback (most recent call last):
File "/usr/bin/py3compile", line 289, in <module>
main()
File "/usr/bin/py3compile", line 283, in main
process.communicate()
File "/usr/lib/python3.2/subprocess.py", line 809, in communicate
self.stdin.close()
IOError: [Errno 32] Broken pipe
dpkg: error processing python3-minimal (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of python3:
python3 depends on python3-minimal (= 3.2.3-5); however:
Package python3-minimal is not configured yet.
dpkg: error processing python3 (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
python3-minimal
python3
Current status: 0 broken [-2], 595 updates [-1].
On the flip side, my system is updating quite happily updating. Keeping in mind
broken python is a broken system
how can I ensure my python isn't broken? I dare not reboot my computer.
Synaptic gives the following message after the upgrade
Code: Select all
Errors were encountered while processing:
python3-minimal
python3
python3-apt
wajig
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up python3-minimal (3.2.3-5) ...
Could not import runpy module
Traceback (most recent call last):
File "/usr/bin/py3compile", line 289, in <module>
main()
File "/usr/bin/py3compile", line 283, in main
process.communicate()
File "/usr/lib/python3.2/subprocess.py", line 809, in communicate
self.stdin.close()
IOError: [Errno 32] Broken pipe
dpkg: error processing python3-minimal (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of python3:
python3 depends on python3-minimal (= 3.2.3-5); however:
Package python3-minimal is not configured yet.
dpkg: error processing python3 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3-apt:
python3-apt depends on python3 (>= 3.2.3-3~); however:
Package python3 is not configured yet.
python3-apt depends on python3 (<< 3.3); however:
Package python3 is not configured yet.
dpkg: error processing python3-apt (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of wajig:
wajig depends on python3 (>= 3.2); however:
Package python3 is not configured yet.
wajig depends on python3-apt; however:
Package python3-apt is not configured yet.
dpkg: error processing wajig (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
python3-minimal
python3
python3-apt
wajig