dpkg to install deb code example
Example 1: install deb file
sudo dpkg -i /path/to/deb/file
sudo apt-get install -f
Example 2: install deb file in ubuntu
sudo apt install path_to_deb_file
sudo dpkg -i /path/to/deb/file
sudo apt-get install -f
sudo apt install path_to_deb_file