python-dev包安装错误

1 linux python apt package-management

Package python-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  python2-dev python2 python-dev-is-python3

E: Package 'python-dev' has no installation candidate
E: Unable to locate package libcapstone3
Run Code Online (Sandbox Code Playgroud)

Ste*_*itt 5

python-dev自 Debian 11、Ubuntu 20.10 以及源自这些版本的任何发行版以来不再可用。如果您需要 Python 2,可以尝试python2-dev替代,但请注意,Python 社区不再支持 Python 2,并且许多模块仅适用于 Debian 和 Ubuntu 中的 Python 3。

\n

libcapstone3也已过时,当前版本的 Debian、Ubuntu 及其衍生品已发布libcapstone4。如果您\xe2\x80\x99尝试使用此库构建软件,您应该安装libcapstone-dev; 如果您\xe2\x80\x99正在寻找Python模块,请安装python3-capstone(它\xe2\x80\x99s仅适用于Python 3)。

\n