python-dev包安装错误

python-dev包安装错误
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

答案1

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

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

相关内容