0
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
2
  • What distro & version are you using? On Debian (and most derivatives), the python-dev package has been renamed to python2-dev (and while python2 is still supported, most future work is focused on python3). Also note that Debian no longer even has libcapstone3, it currently has libcapstone4 and libcapstone-dev version 4.0.2-5 (and python3-capstone)
    – cas
    Jul 4 at 2:35
  • Please supply the command you are running that generates the error messages you posted (e.g., apt-get install python-dev).
    – rlandster
    Jul 6 at 10:36

1 Answer 1

2

python-dev is no longer available since Debian 11, Ubuntu 20.10, and any distribution derived from those. If you need Python 2 you can try python2-dev instead, but note that Python 2 is no longer supported by the Python community, and many modules are only available for Python 3 in Debian and Ubuntu.

libcapstone3 is also obsolete, current releases of Debian, Ubuntu and derivatives ship libcapstone4. If you’re trying to build software using this library, you should install libcapstone-dev; if you’re looking for the Python module, install python3-capstone (it’s only available for Python 3).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.