意外删除后如何在ubuntu中恢复python 2.7 [包含在/ usr / bin /]

问题描述 投票:1回答:1

我正在尝试使用以下脚本修复texlivehttp://mirror.ctan.org/systems/texlive/tlnet/update-tlmgr-latest.sh

这弄乱了我的/ usr / bin目录。现在我收到此错误

bash: /usr/lib/command-not-found: /usr/bin/python3: bad interpreter: Permission denied

以某种方式,现在我没有python 2.7。

也sudo apt更新不再起作用。

我正在使用Ubuntu 16.04

如何解决此错误

尝试1:

从官方网站下载了python 2.7.6“ .tar”并尝试过

./configure

错误

./configure.lineno: line 473: expr: command not found 

echo $ PATH

/home/USER/anaconda3/bin:/bin:/condabin:/home/USER/gv:/home/USER/bin:/home/USER/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/USER/g09/bsd:/home/USER/g09/local:/home/USER/g09/extras:/home/USER/g09
python ubuntu apt tex-live
1个回答
0
投票

您可以从官方网站here下载python 2.7,解压缩/解压缩,然后按照README.rst文件中的说明进行构建。

© www.soinside.com 2019 - 2024. All rights reserved.