2

I tried to install the drivers for my scanners from Epson: V300 and XP-520

I downloaded:

Tried to run sudo ./install.sh but for both packages I get the error:

E: Unable to locate package libsane
sotirov
  • 4,379
bky
  • 123

3 Answers3

7

It appears that in 2017, someone decided to rename libsane to libsane1. Currently, libsane is just used for backwards compatibility purposes. It has no files itself. It does nothing else but depend on libsane1. However, the libsane package is not available in Ubuntu 23.10 and there is high probability, we wouldn't see it it future releases.

For your driver to work, first you will have to install the libsane1 package. And the workaround for libsane is to download and install the package from another Ubuntu release. In the example below, I am using libsane from Ubuntu 23.04 (Lunar Lobster) for amd64 architecture and it works. You can download and install it with:

sudo apt install libsane1
wget http://mirrors.kernel.org/ubuntu/pool/universe/s/sane-backends/libsane_1.2.1-1_amd64.deb
sudo dpkg -i libsane_1.2.1-1_amd64.deb

I was able to run the sudo ./install.sh after that.

Related:

sotirov
  • 4,379
2

I have found libsane_1.2.1-2_amd64.deb in Debian at https://packages.debian.org/bookworm/libsane and works fine with Ubuntu 24.04 and scanner Epsov600. I have downloaded it and iscan-gt-x820-bundle-2.30.4.x64.deb.tar.gz from Epson After that i have installed libsane sudo dpkg -i libsane_1.2.1-2_amd64.deb unzipped the Epson bundle

tar -xvf iscan-gt-x820-bundle-2.30.4.x64.deb.tar.gz

and in the end, brought to the folder /Downloads/v600/iscan-gt-x820-bundle-2.30.4.x64.deb$ I launched

./install.sh

That is all, sorry for my eglish

1

I solved this problem by making a small change in the scanner's .deb installation package. Open a terminal in the directory where the installation .deb package is located and run the following code:

mkdir kyocera-sane

dpkg-deb -R kyocera-sane_2.1.4406_amd64.deb kyocera-sane/

and then open a text editor

nano kyocera-sane/DEBIAN/control

Find the following part in the file:

Depends: libsane (>= 1.0.21)

and replace it with:

Depends: libsane1 (>= 1.0.21)

save and close the file.

After you have made the edit, rebuild modified .deb package:

dpkg-deb -b kyocera-sane/ kyocera-sane-modified.deb

Finally, install the new package you created:

sudo dpkg -i kyocera-sane-modified.deb

Summary: Parse your .deb installation file, make the necessary changes to the control file (libsane>libsane1), and rebuild your .deb installation file. Install your package using any method you like. It worked for me, it may work for you too.