Over VPS or Remote Console!? to install a local .deb
Debian package on Ubuntu Linux using CLI, you can use one of the following tools.
But anyway, it's better to update Ubuntu before installing a new .deb package as following
# apt update # apt upgrade
CLI Install Local DEB Debian Package
1- Using apt command
# apt install /path/to/debian_package_name.deb
And to uninstall a package
# apt remove debian_package_name
Or to uninstall the package and remove its configuration files too.
# apt remove --purge debian_package_name
2- using dpkg command
# dpkg -i /path/to/debian_package.deb
And to uninstall a package you can use
# dpkg -r debian_package_name
Or to uninstall the package and remove its configuration files too.
# dpkg --purge debian_package_name
What if you get a broken dependencies issue while trying to install a Debian package!?..
Run the commands
# apt install -f # apt upgrade -f # apt dist-upgrade -f
Then update and upgrade Ubuntu, and try installing your package again.