How to install deb package in Ubuntu/Linux mint and others

Various Linux software was distributed only as source code many years ago. We had to compile the software from the source code in order to use it. If the source code of the software depended on other libraries, then we also had to download the source code of this library and compile it before compiling the software that we wanted to install.