删除了python3和python3.5。重新安装在shell中。无法启动终端

时间:2021-08-02 23:39:32

In /usr/lib I did sudo rm -rf python3 and python3.5 for a dumb reason.

在/ usr / lib中我为了一个愚蠢的原因做了sudo rm -rf python3和python3.5。

I tried ctrl+alt+F1 and then:

我试过ctrl + alt + F1然后:

$ sudo apt-get install python3-all
$ sudo apt-get install gnome-terminal
$ sudo apt-get install python3.5

Terminal still won't launch.

终端仍然无法启动。

Also tried:

$ sudo apt install --reinstall python3 

but gets

"subprocess /usr/bin/dpkg returned an error code(1)

I'm really not a linux user so I have no idea what I'm doing. What should I do to get terminal running again?

我真的不是Linux用户所以我不知道我在做什么。我该怎么做让终端再次运行?

1 个解决方案

#1


0  

That should works.

这应该有效。

$ sudo apt-get update
$ sudo apt-get install python3.5

#1


0  

That should works.

这应该有效。

$ sudo apt-get update
$ sudo apt-get install python3.5