Actually, better is
Code:
sudo apt install ./package-name.deb
apt will seek out and install dependencies, whereas dpkg does not. You should first cd into the folder where the .deb has been downloaded, or else specify the full path in the command above.
An alternative is to use gdebi.
To check if gdebi is installed
and if it needs to be installed
Code:
sudo apt install gdebi
#then
sudo gdebi package-name.deb
Same routine if path needs to be specified, as above.
Advantage of gdebi is that it can be used from Terminal, or right-click the .deb file in your File Manager, and you can run it from there.
G'day
@janjan and welcome to linux.org
What Debian-based Linux Distribution are you using?
Chris Turner
wizardfromoz
Edited - fixed syntax error, first command. Wizard