E: Package 'python' has no installation candidate

Sam*_*jee 6 python

I have been experimenting with some hacking tools (like hydro) recently and I came across a tool called Responder. It basically opens an SMB server that grabs the NetNTLMv for the administrative user from a server/client (BTW I am still a beginner so please go easy on me if I am wrong). I tried to run the script by typing ./Responder.py -I tun0 but it said /usr/bin/env: \xe2\x80\x98python\xe2\x80\x99: No such file or directory. I understood that python was not installed so I ran sudo apt install python but instead of it telling me that the installation was complete, it told me this:

\n
Reading package lists... Done\nBuilding dependency tree... Done\nReading state information... Done\nPackage python is not available, but is referred to by another package.\nThis may mean that the package is missing, has been obsoleted, or\nis only available from another source\nHowever the following packages replace it:\n  2to3 python2-minimal:i386 python2:i386 python2-minimal python2 dh-python\n  python-is-python3\n\nE: Package 'python' has no installation candidate\n
Run Code Online (Sandbox Code Playgroud)\n

sudo apt update && sudo apt upgrade即使在运行后和重新启动后,输出仍保持不变。

\n

我记得 python 在上次更新之前工作,所以我不太确定该怎么做。

\n

版本:Ubuntu 22.04 amd64

\n

(注:我点击了 Responder.py 代码,我在 shebang 行中看到它特别需要 python 1,因此 python 2 和 3 不应该工作......无论如何我都尝试过,正如我猜测的那样,它不工作。)

\n

Art*_*ild 5

所有最近安装的 Ubuntupython3仅使用。

要运行指向的程序python,请安装该软件包python-is-python3

sudo apt install python-is-python3
Run Code Online (Sandbox Code Playgroud)

或者手动创建一个符号链接python3(这基本上就是上面的包所做的):

sudo ln -s /usr/bin/python3 /usr/bin/python
Run Code Online (Sandbox Code Playgroud)