$ ls
wkhtmltox_0.12.5-0.20180604.140.rc~6f77c46~bionic_amd64.deb
$ sudo apt install wkhtmltox_0.12.5-0.20180604.140.rc~6f77c46~bionic_amd64.deb
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package wkhtmltox_0.12.5-0.20180604.140.rc~6f77c46~bionic_amd64.deb
E: Couldn't find any package by glob 'wkhtmltox_0.12.5-0.20180604.140.rc~6f77c46~bionic_amd64.deb'
E: Couldn't find any package by regex 'wkhtmltox_0.12.5-0.20180604.140.rc~6f77c46~bionic_amd64.deb'
I was wondering why the deb
file can't be located?
Is it because of sudo
or apt install
?
Thanks.
Note that
$ sudo apt install ./wkhtmltox_0.12.5-0.20180604.140.rc~6f77c46~bionic_amd64.deb
works, but I was asking for the reason of the previous failure.
.deb
file perhaps? Also, I wonder if the tildes in the filename are potentially causing issues. I have often usedsudo apt install package.deb
, so I know that in general it will work as you appear to expect. – DopeGhoti Jun 08 '18 at 17:07sudo dpkg -i package_name.deb
is probably the answer to how many people will view this question. Also off-topic, using dpkg is vastly faster because it won't do dependency checking, and also works on distros that don't even have apt installed. Hope many of you find that helpful. – Wil Jun 08 '18 at 20:19dpkg
not doing dependency checking is why I prefer to useapt
to install one-off packages. – DopeGhoti Jun 08 '18 at 21:51