LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 06-08-2019, 11:55 PM   #1
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 22.04
Posts: 2,122

Rep: Reputation: 73
Get rid of hplip


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:~$
 
Old 06-09-2019, 04:57 AM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Since /usr/share/hplip/ui5 is missing, how about creating it and trying again?

You might run into other problems, but at least it would be a first step.

EDIT: Suggestions how to delete broken or incomplete packages: https://unix.stackexchange.com/quest...-when-it-fails.

Last edited by berndbausch; 06-09-2019 at 05:02 AM.
 
1 members found this post helpful.
Old 06-10-2019, 05:09 PM   #3
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 22.04
Posts: 2,122

Original Poster
Rep: Reputation: 73
Well, I cleared up this problem, caused another.

I went to the hplip developers page, downloaded the latest hplip-3.19.5.run

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
 
Old 06-11-2019, 02:58 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,095

Rep: Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365
you should know already "it does not work" is not a good post. Please post what's happened. Did you check the logs already?
 
Old 06-11-2019, 05:42 AM   #5
dc.901
Senior Member
 
Registered: Aug 2018
Location: Atlanta, GA - USA
Distribution: CentOS/RHEL, openSuSE/SLES, Ubuntu
Posts: 1,005

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Quote:
Originally Posted by Pedroski View Post
Well, I cleared up this problem, caused another.

I went to the hplip developers page, downloaded the latest hplip-3.19.5.run

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
 
Old 06-11-2019, 06:20 PM   #6
capt ron
Member
 
Registered: Aug 2003
Location: Albuquerque New Mexico
Distribution: LinuxMint 19.1
Posts: 53

Rep: Reputation: 9
From memory: (I'm 66 years old and my memory isn't what it once was):

go to the printer and from it's control panel find the setting "easy-setup" and make sure it is disabled.

Install the proprietary binary blob required for your "Winprinter" by opening a terminal and running "hp-setup"

Then run hplip. It should install the front-end linux driver for your printer.
 
Old 06-12-2019, 05:41 PM   #7
Steve R.
Member
 
Registered: Jun 2009
Location: Morehead City, NC
Distribution: Mint 20.3
Posts: 524

Rep: Reputation: 98
Quote:
Originally Posted by Pedroski View Post
I have an old hp 1025 colour laser printer. It has some kind of proprietary driver software.
Too old?

By any chance did you start here?

1. hp-linux-imaging and printing (The download does originate from SourceForge.)

2. After down loading, follow these instructions: Installer Walkthrough

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.

Last edited by Steve R.; 06-12-2019 at 05:59 PM.
 
Old 06-12-2019, 05:43 PM   #8
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 22.04
Posts: 2,122

Original Poster
Rep: Reputation: 73
@pan64

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.

Last edited by Pedroski; 06-12-2019 at 06:01 PM.
 
Old 06-12-2019, 06:08 PM   #9
Steve R.
Member
 
Registered: Jun 2009
Location: Morehead City, NC
Distribution: Mint 20.3
Posts: 524

Rep: Reputation: 98
Quote:
Originally Posted by Pedroski View Post
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?
 
Old 06-12-2019, 06:32 PM   #10
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 22.04
Posts: 2,122

Original Poster
Rep: Reputation: 73
Tried to add the printer from System Settings, but, because hp needs proprietary software, which is not available to Ubuntu, the printer doesn't work.

hp-setup is supposed to handle that. It fails, for me at least.

Too late to stop at the uninstall stage. Already installed all the latest stuff. The older version is gone!
 
Old 06-13-2019, 12:48 AM   #11
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,095

Rep: Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365
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...).
 
Old 06-13-2019, 02:15 AM   #12
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 22.04
Posts: 2,122

Original Poster
Rep: Reputation: 73
No, before I installed the latest hplip.run, it was working, but hplip was causing all the package problems.

The printer still works from this old laptop. Just won't work now from my newer laptop which I use for work.

The problem is hp-setup.
 
Old 06-13-2019, 06:02 AM   #13
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,095

Rep: Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365
so probably try an earlier/other version: https://launchpad.net/hplip
 
Old 06-13-2019, 10:53 AM   #14
Steve R.
Member
 
Registered: Jun 2009
Location: Morehead City, NC
Distribution: Mint 20.3
Posts: 524

Rep: Reputation: 98
Color LaserJet ProCP1020 Series Getting Started Guide

I assume that you have already looked here, but just in case.

Note that the initial installation setup requires a USB cable.

Last edited by Steve R.; 06-13-2019 at 10:55 AM.
 
Old 06-13-2019, 05:49 PM   #15
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 22.04
Posts: 2,122

Original Poster
Rep: Reputation: 73
Thanks for the suggestions.

I'm reluctant to install an older version of hplip, that is what caused the package problems.

When I try installing the printer, I first plug it in with a usb cable. Linux knows it is there. hp-setup just can't see it.

Perhaps a newer version of hplip will solve the problem. I have other printers I can use.

God forbid, but I could even use the gf's Windows computer, if I really need to print on that old laser, the hp 1025 works fine from there!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing HPLIP-GUI on HPLIP 3.17.11 Linux Mint 17.3 laptop anon298 Linux - Software 1 02-26-2018 08:22 PM
[SOLVED] Upgrade hplip-3.9.4b to hplip-3.9.12 (32-bit and 64-bit) tronayne Slackware 8 02-27-2011 11:12 PM
HPlip woes on --current ; Sharing printer gets broken if the hplip gui is launched Old_Fogie Slackware 2 10-28-2010 10:23 AM
How can I get rid of dpkg apt-get errors? jon_k Linux - Software 2 03-25-2005 01:25 PM
Trouble with Apt-Get/Synaptic on RH9 wanting to get rid of stuff I need rberry88 Red Hat 4 11-05-2003 03:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 06:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration