install using deb file code example
Example 1: install deb file
sudo dpkg -i /path/to/deb/file
sudo apt-get install -f
Example 2: how to install dpkg in ubuntu
# download dpkg package
#open terminal into same directory and now type command with <packagename>.deb
sudo dpkg -i <package-name>.deb
#Ex: sudo dpkg -i mongodb-compass_1.23.0_amd64.deb