So ... there's a subtle thing with using 'apt' to install .deb files that isn't 100% intuitive. The location for the .deb file must have some path part in the specification.
apt-get won't install .deb files no matter how hard anyone tries.
apt will.
dpkg will, but it won't deal with any dependencies, which is why apt is a nicer tool.
Ok, so just to clarify ....
This won't work, assuming the .deb file is in the CWD/PWD.
Code:
sudo apt install file-version.deb
But any of these will work:
Code:
sudo apt install ./file-version.deb
sudo apt install ../relative/path/to/file-version.deb
sudo apt install /abosolute/path/to/file-version.deb
See the subtle difference?
Understanding the difference between absolute and relative paths on every OS ... that includes MS-Windows is a basic skill.
Absolute paths begin with a '/', always.
Relative paths are relative from the PWD - present working directory. You can look up what pwd/cwd mean and master those quickly.
Extra credit:
Every running process has a pwd. That includes programs a human starts, programs started by the system, programs run by cron or systemd or by other users. Understanding the PWD is an important thing, just like knowing which user is running a process.
Bookmarks