![损坏了 python3 源文件(在多处理中)...如何从头开始重新安装 python3 (.5.2)?](https://linux22.com/image/888112/%E6%8D%9F%E5%9D%8F%E4%BA%86%20python3%20%E6%BA%90%E6%96%87%E4%BB%B6%EF%BC%88%E5%9C%A8%E5%A4%9A%E5%A4%84%E7%90%86%E4%B8%AD%EF%BC%89...%E5%A6%82%E4%BD%95%E4%BB%8E%E5%A4%B4%E5%BC%80%E5%A7%8B%E9%87%8D%E6%96%B0%E5%AE%89%E8%A3%85%20python3%20(.5.2)%EF%BC%9F.png)
因此,我尝试编辑多处理 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