How To Install libsane on Ubuntu 20.04
Introduction
In this tutorial we learn how to install libsane
on Ubuntu 20.04.
What is libsane
libsane is:
SANE stands for “Scanner Access Now Easy” and is an application programming interface (API) that provides standardized access to any raster image scanner hardware (flatbed scanner, hand-held scanner, video- and still-cameras, frame-grabbers, etc.). The SANE standard is free and its discussion and development are open to everybody. The current source code is written to support several operating systems, including GNU/Linux, OS/2, Win32 and various Unices and is available under the GNU General Public License (commercial applications and backends are welcome, too, however).
Graphical frontends for sane are available in the packages sane and xsane. Command line frontend scanimage, saned and sane-find-scanner are available in the sane-utils package. Task: print-server, ubuntu-desktop-minimal, ubuntu-desktop, kubuntu-desktop, xubuntu-core, xubuntu-desktop, lubuntu-desktop, ubuntustudio-desktop-core, ubuntustudio-desktop, ubuntukylin-desktop, ubuntu-mate-core, ubuntu-mate-desktop, ubuntu-budgie-desktop
Package: libsane Architecture: amd64 Version: 1.0.29-0ubuntu5.1 Multi-Arch: same Priority: optional Section: libs Source: sane-backends Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Jörg Frings-Fürst [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 12638 Provides: libsane1 (= 1.0.29-0ubuntu5.1) Depends: acl, adduser, libsane-common (= 1.0.29-0ubuntu5.1), udev, libavahi-client3 (>= 0.6.16), libavahi-common3 (>= 0.6.16), libc6 (>= 2.29), libcurl3-gnutls (>= 7.16.2), libgcc-s1 (>= 3.0), libgphoto2-6 (>= 2.5.10), libgphoto2-port12 (>= 2.5.10), libieee1284-3, libjpeg8 (>= 8c), libpng16-16 (>= 1.6.2-1), libsnmp35 (>= 5.8+dfsg), libstdc++6 (>= 5.2), libtiff5 (>= 4.0.3), libusb-1.0-0 (>= 2:1.0.22), libxml2 (>= 2.7.4) Recommends: sane-utils (>= 1.0.29-0ubuntu5.1) Suggests: avahi-daemon, hplip Breaks: libsane1 (« 1.0.27-3.1~) Replaces: libsane1 (« 1.0.27-3.1~) Filename: pool/main/s/sane-backends/libsane_1.0.29-0ubuntu5.1_amd64.deb Size: 2404636 MD5sum: 08fb64cc483274918974703d9284a1fd SHA1: 66ed63b97245147af9f3214b0601a481181590cb SHA256: 55df98ecde035f629a48b628758d8f67e413cc8eb4c1d522b542eac8db412e6d SHA512: eb2f382d3c778e83b5ead296b6bccb51a8e240d0b65bcd525f262e44b7b5a6d0254452032fb41883d380e60c865dc798793eed8a50004eff5ffe0d911262209f Homepage: http://www.sane-project.org Description-en: API library for scanners SANE stands for “Scanner Access Now Easy” and is an application programming interface (API) that provides standardized access to any raster image scanner hardware (flatbed scanner, hand-held scanner, video- and still-cameras, frame-grabbers, etc.). The SANE standard is free and its discussion and development are open to everybody. The current source code is written to support several operating systems, including GNU/Linux, OS/2, Win32 and various Unices and is available under the GNU General Public License (commercial applications and backends are welcome, too, however).
Graphical frontends for sane are available in the packages sane and xsane. Command line frontend scanimage, saned and sane-find-scanner are available in the sane-utils package. Task: print-server, ubuntu-desktop-minimal, ubuntu-desktop, kubuntu-desktop, xubuntu-core, xubuntu-desktop, lubuntu-desktop, ubuntustudio-desktop-core, ubuntustudio-desktop, ubuntukylin-desktop, ubuntu-mate-core, ubuntu-mate-desktop, ubuntu-budgie-desktop
Package: libsane Architecture: amd64 Version: 1.0.29-0ubuntu5 Multi-Arch: same Priority: optional Section: libs Source: sane-backends Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Jörg Frings-Fürst [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 12638 Provides: libsane1 (= 1.0.29-0ubuntu5) Depends: acl, adduser, libsane-common (= 1.0.29-0ubuntu5), udev, libavahi-client3 (>= 0.6.16), libavahi-common3 (>= 0.6.16), libc6 (>= 2.29), libcurl3-gnutls (>= 7.16.2), libgcc-s1 (>= 3.0), libgphoto2-6 (>= 2.5.10), libgphoto2-port12 (>= 2.5.10), libieee1284-3, libjpeg8 (>= 8c), libpng16-16 (>= 1.6.2-1), libsnmp35 (>= 5.8+dfsg), libstdc++6 (>= 5.2), libtiff5 (>= 4.0.3), libusb-1.0-0 (>= 2:1.0.22), libxml2 (>= 2.7.4) Recommends: sane-utils (>= 1.0.29-0ubuntu5) Suggests: avahi-daemon, hplip Breaks: libsane1 (« 1.0.27-3.1~) Replaces: libsane1 (« 1.0.27-3.1~) Filename: pool/main/s/sane-backends/libsane_1.0.29-0ubuntu5_amd64.deb Size: 2403832 MD5sum: a1117f993fc5e39e01a975866458101c SHA1: d31fa9b02cff444044065099c9b0357e2aebed62 SHA256: 955aaa8c8237e4ba160aaaee9e101f74f930776f16720b664ae2bb33d4350cb5 Homepage: http://www.sane-project.org Description-en: API library for scanners SANE stands for “Scanner Access Now Easy” and is an application programming interface (API) that provides standardized access to any raster image scanner hardware (flatbed scanner, hand-held scanner, video- and still-cameras, frame-grabbers, etc.). The SANE standard is free and its discussion and development are open to everybody. The current source code is written to support several operating systems, including GNU/Linux, OS/2, Win32 and various Unices and is available under the GNU General Public License (commercial applications and backends are welcome, too, however).
Graphical frontends for sane are available in the packages sane and xsane. Command line frontend scanimage, saned and sane-find-scanner are available in the sane-utils package. Task: print-server, ubuntu-desktop-minimal, ubuntu-desktop, kubuntu-desktop, xubuntu-core, xubuntu-desktop, lubuntu-desktop, ubuntustudio-desktop-core, ubuntustudio-desktop, ubuntukylin-desktop, ubuntu-mate-core, ubuntu-mate-desktop, ubuntu-budgie-desktop
There are three methods to install libsane
on Ubuntu 20.04. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install libsane Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install libsane
using apt-get
by running the following command:
sudo apt-get -y install libsane
Install libsane Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libsane
using apt
by running the following command:
sudo apt -y install libsane
Install libsane Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install libsane
using aptitude
by running the following command:
sudo aptitude -y install libsane
How To Uninstall libsane on Ubuntu 20.04
To uninstall only the libsane
package we can use the following command:
sudo apt-get remove libsane
Uninstall libsane And Its Dependencies
To uninstall libsane
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove libsane
Remove libsane Configurations and Data
To remove libsane
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge libsane
Remove libsane configuration, data, and all of its dependencies
We can use the following command to remove libsane
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libsane
References
Summary
In this tutorial we learn how to install libsane
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.