Now I have do install with dpkd?
It’s better to install the driver with
apt
. That way it will automatically install any dependencies that might be missing:
Bash:
sudo apt install /path/to/epson-inkjet-printer-escpr_1.7.25-1lsb3.2_amd64.deb
Note: Where
/path/to
is the path to the directory containing the driver you downloaded.
E.g. if you downloaded it to your Downloads directory, the path would be
Bash:
~/Downloads/epson-inkjet-printer-escpr_1.7.25-1lsb3.2_amd64.deb
Alternatively, if you
cd
into the directory containing the driver, you can use a relative path:
./epson-inkjet-printer-escpr_1.7.25-1lsb3.2_amd64.deb
as the path.
Either way, install the package with
apt
. If you install with
dpkg
and the package has any external dependencies that aren’t installed, the package will fail to install and you’ll have to install any extra dependencies before trying to install the package again.
So whenever installing packages, whether locally stored ones that you’ve downloaded, or remote ones that are in your distros default repositories,
apt
should always be preferred over
dpkg
because
apt
can tesolve any missing dependency chains.
apt
uses
dpkg
under the hood. But it’s pretty rare that you will need to use
dpkg
. Usually only if
apt
was interrupted/stopped mid-operation. E.g. if you’re installing updates, or new packages and you have a power cut, or your laptops battery dies, or the system somehow crashes. (kernel panic, or lockup/freeze due to problems/bugs with hardware, or device card drivers.)
In those rare cases, after you reboot your pc, you might need to use
dpkg
to try to finish installing/configuring packages that didn’t completely install if
apt
throws errors when you try to use it again.
Other than that,
apt
should be preferred over
dpkg
.