install ubuntu deb

C++
sudo dpkg -i /path/to/deb/file
sudo apt-get install -f#install downloaded .deb
sudo dpkg -i /path/name.deb

#install packages
sudo apt install package_namesudo apt install path_to_deb_file
Source

Also in C++: