Eu fiz o seguinte:
mkdir ~/repair_python
cd ~/repair_python
apt-get download python2.7-minimal libpython2.7-minimal python-minimal python2.7
sudo dpkg -i --force-all *.deb
… como recomendado em esta resposta . Por alguma razão, isso restaurou minha aparência terminal. Agora, se eu tentar:
sudo apt-get install python3
Eu recebo o seguinte:
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3 is already the newest version (3.5.1-3).
0 upgraded, 0 newly installed, 0 to remove and 241 not upgraded.
4 not fully installed or removed.
Need to get 0 B/8,710 B of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
No apport report written because the error message indicates its
a followup error from a previous failure.
dpkg: error processing package python3 (--configure): package is in a very bad
inconsistent state; you should reinstall it before attempting configuration
dpkg: dependency problems prevent configuration of click:
click depends on python3:any (>= 3.2~); however: Package python3 is not configured yet.
dpkg: error processing package click (--configure):
dependency problems - leaving unconfigured dpkg:
dependency problems prevent configuration of gnome-menus:
gnome-menus depends on python3:any (>=3.1~); however:
Package python3 is not configured yet.
dpkg: error processing package gnome-menus (--configure): dependency problems
- leaving unconfigured dpkg:
dependency problems prevent configuration of python3-packagekit:
python3-packagekit depends on python3:any (>= 3.3.2-2~);
however:
Package python3 is not configured yet.
dpkg: error processing package python3-packagekit (--configure):
dependency problems - leaving unconfigured
No apport report written
because the error message indicates its a followup error from a previous failure.
No apport report written because MaxReports is reached already
Errors were encountered while processing: python3 click gnome-menus
python3-packagekit E: Sub-process /usr/bin/dpkg returned an error code (1)
... então, obviamente, algo ainda não está bem com o meu Python 3 (embora eu possa lançar o Python 3 REPL de um terminal bem), mas pelo menos meus terminais agora parecem normais.