Root installation on Ubuntu 22.04.1 LTS

I was installing the required package using the following the command:
sudo apt-get install dpkg-dev cmake g++ gcc binutils libx11-dev libxpm-dev
libxft-dev libxext-dev python libssl-dev

and getting the error.
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
Package python 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:
2to3 python2-minimal:i386 python2:i386 python2-minimal python2 dh-python
python-is-python3

E: Package ‘python’ has no installation candidate
please suggest me how to solve this problem.

@mrafik try substituting python with python3.

how to substitute python for python3 ?

sudo apt-get install dpkg-dev cmake g++ gcc binutils libx11-dev libxpm-dev
libxft-dev libxext-dev python3 libssl-dev

You may also want to add python-is-python3 to that list.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.