I had a filesystem error (fsck generated 283 megabytes in lost & found). The system boots now,
but a bunch of packages do not run.
For example:
It seems like some python files got lost. How can I fix it? Any ideas?sudo dpkg --install python-apt_1.6.2_amd64.deb
(Reading database ... 346977 files and directories currently installed.)
Preparing to unpack python-apt_1.6.2_amd64.deb ...
Traceback (most recent call last):
File "/usr/bin/pyclean", line 31, in <module>
from debpython import files as dpf
ImportError: No module named debpython
dpkg: warning: old python-apt package pre-removal script subprocess returned error exit status 1
dpkg: trying script from the new package instead ...
Traceback (most recent call last):
File "/usr/bin/pyclean", line 31, in <module>
from debpython import files as dpf
ImportError: No module named debpython
dpkg: error processing archive python-apt_1.6.2_amd64.deb (--install):
new python-apt package pre-removal script subprocess returned error exit status 1
Traceback (most recent call last):
File "/usr/bin/pycompile", line 35, in <module>
from debpython.version import SUPPORTED, debsorted, vrepr, \
ImportError: No module named debpython.version
dpkg: error while cleaning up:
installed python-apt package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
python-apt_1.6.2_amd64.deb
On a separate note, I will be installing a new SSD this weekend and replacing the current one.