Actually, better is
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
sudo apt install gdebi
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.
and welcome to linux.org
What Debian-based Linux Distribution are you using?
Edited - fixed syntax error, first command. Wizard