UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have an old hp 1025 colour laser printer. It has some kind of proprietary driver software.
I installed hplip. Something has gone badly wrong with hplip and its updating process.
I want to remove it. I know there are some threads about this here, but purge fails:
Quote:
pedro@pedro-newssd:~$ sudo apt-get purge hplip
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
hplip*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
85 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up python3 (3.6.7-1~18.04) ...
running python rtupdate hooks for python3.6...
E: py3compile:183: cannot create directory /usr/share/hplip/ui5/__pycache__: FileNotFoundError(2, 'No such file or directory')
[Errno 2] No such file or directory: '/usr/share/hplip/ui5/aboutdialog.py'
[Errno 2] No such file or directory: '/usr/share/hplip/ui5/aboutdialog_base.py'
[Errno 2] No such file or directory: '/usr/share/hplip/ui5/aligndialog.py'
I found this. But I just get the same errors each time I try any of this.
I'm getting a 100 million errors every time I upgrade.
How to get rid of hplip?? Summer holiday is coming, if need be, I will reinstall!
Some of a long long list of Errors:
Quote:
dpkg: error processing package update-manager-core (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of ubuntu-software:
ubuntu-software depends on gnome-software (>= 3.28.1-0ubuntu4.18.04.10); however:
Package gnome-software is not configured yet.
dpkg: error processing package ubuntu-software (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
dpkg: too many errors, stopping
Errors were encountered while processing:
python3
update-notifier-common
python3-lxml:amd64
idle
language-selector-common
python3-update-manager
python3-dev
gnome-shell
apport-gtk
unity
youtube-dl
python3-gi-cairo
netplan.io
ubuntu-release-upgrader-core
python3-gi
python3-apport
python3-netifaces
python3-problem-report
ubuntu-drivers-common
python3-debconf
python3-uno
software-properties-gtk
nplan
update-notifier
gnome-software
ubuntu-desktop
gedit-common
python3-httplib2
unattended-upgrades
gedit
idle3
apport
update-manager
python3-gdbm:amd64
python3-software-properties
python3-urllib3
gnome-menus
python3-tk:amd64
ubuntu-minimal
python3-lib2to3
language-selector-gnome
python3-distutils
python3-distupgrade
python3-dateutil
python3-pyxattr
software-properties-common
python3-distro-info
ufw
ubuntu-release-upgrader-gtk
update-manager-core
ubuntu-software
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)
pedro@pedro-newssd:~$
It takes a long time to install all kinds of stuff. Then hp's own hp-setup program cannot find the printer, it does not work!
If I enter lsusb in bash, I can see the hp printer immediately.
RANT: Why does hp make life do difficult?
In our little office at work we have an Epson printer/scanner and a Brother printer. When I install a new version of Ubuntu or Fedora on my work computer or laptop, I plug them in, Ubuntu or Fedora sees them, installs them, says, "Do you want to print a test page?" Both work in seconds!
I have been able to make the hp printer work before, but I can't remember how, apart from running hp-setup
It takes a long time to install all kinds of stuff. Then hp's own hp-setup program cannot find the printer, it does not work!
If I enter lsusb in bash, I can see the hp printer immediately.
RANT: Why does hp make life do difficult?
In our little office at work we have an Epson printer/scanner and a Brother printer. When I install a new version of Ubuntu or Fedora on my work computer or laptop, I plug them in, Ubuntu or Fedora sees them, installs them, says, "Do you want to print a test page?" Both work in seconds!
I have been able to make the hp printer work before, but I can't remember how, apart from running hp-setup
Have you tried "force"
Code:
sudo dpkg --remove --force-all <package>
I have never done this, so don't know what to expect.
And, since this is for office, perhaps this time you should document
PS: I recently installed our networked HP printer under Mint 19.1. I did not use hplip. Mint successfully found the network printer and installed it. So you may not need hplip.
Another tidbit. Our network printer is browser accessible at http://192.168.1.217/. The printer may install on a different URL for you.
If you run hplip-3.19.5.run it first uninstalls the older version (which solved my original problem), then installs loads of stuff. Takes a while. Then it tells you, you have to run hp-setup, "Do you want to run hp-setup now?".
hp-setup cannot find the usb printer. That is the problem, so it never completes.
lsusb clearly shows the printer.
I tried a reboot. I tried running hp-setup as sudo.
I have managed to get this installed before, but I cannot remember how I tricked it into working.
Basically, how can it not find the usb printer, when I can see it clearly with lsusb??
@Steve R Thanks for the link. Installer Walkthrough Step 12 fails. It cannot see the printer. I tried rebooting.
hp-setup just cannot see the printer.
why does hp make this so hard? Other printers install on Linux very easily. I would not buy another hp printer.
If you run hplip-3.19.5.run it first uninstalls the older version (which solved my original problem), then installs loads of stuff. Takes a while. Then it tells you, you have to run hp-setup, "Do you want to run hp-setup now?".
Getting back to your original question. Can you let hplip simply do the uninstall and then just terminate the install part?
Have your tried to add the printer under: System System Settings --> Printers --> Add?
if the printer is not recognized: this printer is quite old, or just not supported by the software you want to install. Or just it is a hardware problem (wire, usbport, whatever...).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.