我犯了一个大错误。我在终端上发出了以下命令
sudo apt-get purge python
我没有阅读它删除的内容:(
我使用 LaTeX 排版系统,其中一些软件包现在无法正常工作。我在这里问过我的问题。
如果我丢失了 python 文件,是否需要重新安装完整的操作系统或其他东西可以帮助我解决这个问题?
日志 -
Start-Date: 2019-08-17 13:55:17
Commandline: apt-get purge python
Requested-By: ubuntu (1000)
Purge: python-webencodings:amd64 (0.5-2), python-six:amd64 (1.11.0-2), python-matplotlib:amd64 (2.1.1-2ubuntu3), vprerex:amd64 (1:6.5.1-1), python-cycler:amd64 (0.10.0-1), feynmf:amd64 (1.08-10), fragmaster:amd64 (1.7-5), python-xdg:amd64 (0.25-4ubuntu1), python-gi:amd64 (3.26.1-2ubuntu1), latex-cjk-all:amd64 (4.8.4+git20170127-2), python-tk:amd64 (2.7.16-2~18.04.york0), python-tz:amd64 (2018.3-2), python-dbus:amd64 (1.2.6-1), python-chardet:amd64 (3.0.4-1), texlive-pictures:amd64 (2017.20180305-1), python-pyparsing:amd64 (2.2.0+dfsg1-2), python-subprocess32:amd64 (3.2.7-3), python:amd64 (2.7.16-1~18.04.york0), python-lxml:amd64 (4.2.1-1ubuntu0.1), python-enum34:amd64 (1.1.6-2), texlive-xetex:amd64 (2017.20180305-1), qbittorrent:amd64 (4.0.3-1), lyx:amd64 (2.2.4-0ubuntu0.18.04.1), texlive-latex-extra:amd64 (2017.20180305-2), python-cryptography:amd64 (2.1.4-1ubuntu1.3), python-crypto:amd64 (2.6.1-8ubuntu2), texlive-music:amd64 (2017.20180305-2), python-keyrings.alt:amd64 (3.0-1), python-cffi-backend:amd64 (1.11.5-1), python-ipaddress:amd64 (1.0.17-1), python-olefile:amd64 (0.45.1-1), prerex:amd64 (6.5.4-1), texlive-lang-other:amd64 (2017.20180305-1), texlive-full:amd64 (2017.20180305-1), python-scour:amd64 (0.36-2), python-pkg-resources:amd64 (39.0.1-2), python-html5lib:amd64 (0.999999999-1), python-all:amd64 (2.7.16-1~18.04.york0), inkscape:amd64 (0.92.3-1), python-bs4:amd64 (4.6.0-1), texlive-pstricks:amd64 (2017.20180305-2), python-secretstorage:amd64 (2.3.1-2), python-dev:amd64 (2.7.16-1~18.04.york0), python-setuptools:amd64 (39.0.1-2), python-keyring:amd64 (10.6.0-1), lyx-common:amd64 (2.2.4-0ubuntu0.18.04.1), texlive-formats-extra:amd64 (2017.20180305-2), python-idna:amd64 (2.6-1), python-wheel:amd64 (0.30.0-0.2), texlive-science:amd64 (2017.20180305-2), asymptote:amd64 (2.41-4), python-dateutil:amd64 (2.6.1-1), latex-cjk-thai:amd64 (4.8.4+git20170127-2), python-numpy:amd64 (1:1.13.3-2ubuntu1), texlive-extra-utils:amd64 (2017.20180305-2), python-pil:amd64 (5.1.0-1), python-pip:amd64 (9.0.1-2.3~ubuntu1.18.04.1), python-asn1crypto:amd64 (0.24.0-1), python-backports.functools-lru-cache:amd64 (1.4-2), python-all-dev:amd64 (2.7.16-1~18.04.york0)
End-Date: 2019-08-17 13:59:03
我复制了您的列表并将其与我安装的程序(Ubuntu 19.04)进行了比较。然后我删除了在我的系统中“自动”创建的每个包。它们也将安装在您的系统上,但也标记为“自动”。
这就是您必须安装的所有程序。“自动”标记的程序将紧随其后。如果您想验证是否已安装其余部分,您可以运行
并检查其余的是否已安装。如果没有,请将缺少的每个安装为“手动”。