scancode-toolkit
scancode-toolkit copied to clipboard
Please fix Install command for ubuntu on document
Description
In Comprehensive Installation > Before Installing > Prerequisites , install command for ubuntu 16, 18, 20 ,22 and 24 is wrong. On ubuntu we use python3-dev instead of python-dev. Please fix command line for Ubuntu.
wrong command
sudo apt install python-dev bzip2 xz-utils zlib1g libxml2-dev libxslt1-dev libpopt0
- Someone may look command for Ubuntu but not see it.
- because python-dev is missing, this generates some error.
right command
sudo apt install python3-dev bzip2 xz-utils zlib1g libxml2-dev libxslt1-dev libpopt0
- please use python3-dev for python3
- Just copy and paste it, run
How To Reproduce
Tell us how to reproduce the issue.
- Go to Comprehensive Installation > Before Installing > Prerequisites .
- See that section.
System configuration
For bug reports, it really helps us to know:
- What OS are you running on? Ubuntu 24.04
- What version of scancode-toolkit was used to generate the scan file? latest package in Ubuntu (not effetced)
- What installation method was used to install/run scancode? apt
fixed #4570
This command will have mixed results across these Ubuntu versions due to Python 2 deprecation:
Ubuntu 16.04 & 18.04: ✅ Will work:
sudo apt install python-dev bzip2 xz-utils zlib1g libxml2-dev libxslt1-dev libpopt0
All packages available, including python-dev (Python 2.7 headers).
Ubuntu 20.04: ⚠️ Partially works
- python-dev was removed (Python 2 deprecated)
- All other packages install fine
- You'll get an error like: Package 'python-dev' has no installation candidate
Ubuntu 22.04 & 24.04: ⚠️ Partially works
- python-dev not available (Python 2 fully removed)
- All other packages install successfully
Solutions for newer versions:
For Python 3 development:sudo apt install python3-dev bzip2 xz-utils zlib1g libxml2-dev libxslt1-dev libpopt0
@AyanSinhaMahapatra , updated ubuntu document