3

I made a boo-boo.

I bought a new HP OfficeJet Pro 6970, without first verifying if it works with Ubuntu 18.04. Of course, it does not.

INSTALL MISSING REQUIRED DEPENDENCIES
-------------------------------------
note: Installation of dependencies requires an active internet connection.
warning: Missing REQUIRED dependency: cups-devel (CUPS devel- Common Unix Printing System development files)
warning: Missing REQUIRED dependency: libtool (libtool - Library building support services)
warning: Missing REQUIRED dependency: cups-image (CUPS image - CUPS image development files)
warning: Missing REQUIRED dependency: libnetsnmp-devel (libnetsnmp-devel - SNMP networking library development files)
warning: Missing REQUIRED dependency: pyqt4-dbus (PyQt 4 DBus - DBus Support for PyQt4)
warning: Missing REQUIRED dependency: pyqt4 (PyQt 4- Qt interface for Python (for Qt version 4.x))
warning: Missing REQUIRED dependency: dbus (DBus - Message bus system)
warning: Missing REQUIRED dependency: sane-devel (SANE - Scanning library development files)


INSTALL MISSING OPTIONAL DEPENDENCIES
-------------------------------------
note: Installation of dependencies requires an active internet connection.
warning: Missing OPTIONAL dependency for option 'fax': reportlab (Reportlab - PDF library for Python)
warning: Missing OPTIONAL dependency for option 'scan': pil (PIL - Python Imaging Library (required for commandline scanning with hp-scan))
warning: This installer cannot install 'pil' for your distro/OS and/or version.

All the recommended repositories are active, which doesn't matter as the missing dependencies above are no longer available with 18.04.

Yes, I am running the latest version of hplip-3.19.3

This is where I get stuck:

Running 'sudo apt-get install --assume-yes libcups2-dev'
Please wait, this may take several minutes...
error: Command failed. Re-try #1...
Running 'sudo apt-get install --assume-yes libcups2-dev'
Please wait, this may take several minutes...
error: Command failed. Re-try #2...
Running 'sudo apt-get install --assume-yes libcups2-dev'
Please wait, this may take several minutes...
error: Command failed. Re-try #3...
Running 'sudo apt-get install --assume-yes libcups2-dev'
Please wait, this may take several minutes...
error: Package install command failed with error code 100
Would you like to retry installing the missing package(s) (y=yes*, n=no, q=quit) ?

Any life-saving... okay money-saving advice out there?

nightwatch
  • 805
  • 3
  • 23
  • 51

2 Answers2

3

I would suggest you make sure that you have installed hplip-gui package. If it is not installed - install it with:

sudo apt-get install hplip-gui

Acknowledgements to N0rbert and his reply to a similar question here.

N0rbert
  • 103,263
graham
  • 13,061
2

According to hplip official page you have to install at least HPLIP 3.16.8, so the package from Ubuntu 18.04 LTS (version 3.17.10) would be enough.

The proprietary driver/plugin is not required for your printer.

Then consider to follow Uninstallation part of my other answer to remove unnecessary binary version of HPLIP:

sh hplip-3.19.3.run --noexec
cd hplip-3.19.3
sudo ./uninstall.py
sudo rm -rf /usr/share/hplip/

Afterwards we install official Ubuntu packages instead (optionally):

sudo apt-get install hplip-gui

and run hp-setup (see exact steps in my other answer).

N0rbert
  • 103,263