因此,我尝试编辑多处理 Python 库 (/usr/lib/python3.5/multiprocessing) 中的一个文件。我破坏了该文件,并忘记保留原始文件的副本。我想我需要从头开始重新安装 python3。但是这样做:
sudo apt-get install --reinstall python3
我得到:
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 47 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
E: Internal Error, No file name for python3:amd64
并且损坏的文件仍处于我离开时的状态〜
如何摆脱这一困境?
答案1
该文件似乎由包提供libpython3.5-stdlib
$ dpkg -S /usr/lib/python3.5/multiprocessing
libpython3.5-stdlib:amd64: /usr/lib/python3.5/multiprocessing
所以你可能需要重新安装
sudo apt-get install --reinstall libpython3.5-stdlib