[SOLVED] hp laserJet p1006

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
ardv
Level 3
Level 3
Posts: 102
Joined: Thu Feb 16, 2023 6:47 am

[SOLVED] hp laserJet p1006

Post by ardv »

i'm using Linux Mint 21.1 Cinnamon
i have an hp laserJet p1006
when adding it from the settings and trying to print it doesn't work
when i try with hplip version 3.21.12 i always get this error:
device communication error 5012

so i think to upgrade to the latest hplip version 3.22.10 may be this could help
i downloaded it from here: https://developers.hp.com/hp-linux-imag ... g/gethplip
i chooses Linux mint

when i run the installer i get this error:

Code: Select all

warning: Missing REQUIRED dependency: libtool (libtool - Library building support services)
warning: Missing REQUIRED dependency: libnetsnmp-devel (libnetsnmp-devel - SNMP networking library development files)
warning: Missing REQUIRED dependency: libcrypto (libcrypto - OpenSSL cryptographic library)
warning: Missing REQUIRED dependency: python3-pyqt4 (PyQt 4- Qt interface for Python (for Qt version 4.x))
warning: This installer cannot install 'python3-pyqt4' for your distro/OS and/or version.
error: Installation cannot continue without this dependency. Please manually install this dependency and re-run this installer.
so how can i manually install these?
i tried:

Code: Select all

sudo apt install cups-devel 
sudo apt install cups-image
sudo apt install libusb
sudo apt install python3-pyqt4
sudo apt install libnetsnmp-devel
sudo apt install libcrypto
but i tells me: E: Unable to locate package cups-devel

i hope that you can help
Last edited by LockBot on Tue Sep 26, 2023 10:00 pm, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
MikeNovember
Level 7
Level 7
Posts: 1856
Joined: Fri Feb 28, 2020 7:37 am
Location: Nice, Paris, France

Re: hp laserJet p1006

Post by MikeNovember »

Hi,

Latest available online version of hplip DOES NOT recognize Linux Mint 21.1 and CANNOT be installed correctly.

Your printer (see https://developers.hp.com/hp-linux-imag ... ices/index) is supported by hplip since 2.8.2 version, with an USB interface.

Linux Mint 21.1 include 3.21.12 version, well enough for your printer.

So:

- If you have a Timeshift snapshot or a system backup (before hplip installation attempt) use it and restore your system. If not, hope hplip package installation will be enough.

- Since you are using drivers, you should remove driverless packages "sane-airscan" and "ipp-usb"
(read https://linuxmint-user-guide.readthedoc ... nters.html).

- After system restore (if possible) and restart:

Code: Select all

# uninstall sane-airscan and ipp-usb
sudo apt remove sane-airscan ipp-usb
# reinstall hplip
sudo apt reinstall hplip
Once this done, connect your printer with an USB cable and power it up. It should be recognized.

You can use cups browser interface to set-up your printer:

Check that its web interface works: a click on http://localhost:631/admin should open a page on your browser allowing you to manage printers.

If you receive a connection error (ERR_CONNECTION_REFUSED), this means that Cups server is not configured correctly to listen on localhost.

To correct this:

Code: Select all

xed:////etc/cups/cupsd.conf
Paste the following line, near (before or after) the lines with "Listen", then save the edited file and quit Xed:

Code: Select all

Listen 127.0.0.1:631
Restart cups:

Code: Select all

sudo systemctl restart cups
In order to be able to use Cups web interface, your username should be member of lpdamin group. Add it (if it is already added, you will get the confirmation as the command answer):

Code: Select all

sudo usermod -aG lpadmin username
NB: Cups username to set up / use is your actual username, and cups password is the one you use for sudo.

Now, clicking on http://localhost:631/admin should open the cups printers management page. Select "Adminstration", then your printer, and set-it up. Enter your password when required.

Regards,

MN
_____________________________
Linux Mint 21.3 Mate host with Ubuntu Pro enabled, VMware Workstation Player with Windows 10 Pro guest, ASUS G74SX (i7-2670QM, 16 GB RAM, GTX560M with 3GB RAM, 1TB SSD).
ardv
Level 3
Level 3
Posts: 102
Joined: Thu Feb 16, 2023 6:47 am

Re: hp laserJet p1006

Post by ardv »

MikeNovember wrote: Sun Mar 26, 2023 5:52 am Hi,

Latest available online version of hplip DOES NOT recognize Linux Mint 21.1 and CANNOT be installed correctly.

Your printer (see https://developers.hp.com/hp-linux-imag ... ices/index) is supported by hplip since 2.8.2 version, with an USB interface.

Linux Mint 21.1 include 3.21.12 version, well enough for your printer.

So:

- If you have a Timeshift snapshot or a system backup (before hplip installation attempt) use it and restore your system. If not, hope hplip package installation will be enough.

- Since you are using drivers, you should remove driverless packages "sane-airscan" and "ipp-usb"
(read https://linuxmint-user-guide.readthedoc ... nters.html).

- After system restore (if possible) and restart:

Code: Select all

# uninstall sane-airscan and ipp-usb
sudo apt remove sane-airscan ipp-usb
# reinstall hplip
sudo apt reinstall hplip
Once this done, connect your printer with an USB cable and power it up. It should be recognized.

You can use cups browser interface to set-up your printer:

Check that its web interface works: a click on http://localhost:631/admin should open a page on your browser allowing you to manage printers.

If you receive a connection error (ERR_CONNECTION_REFUSED), this means that Cups server is not configured correctly to listen on localhost.

To correct this:

Code: Select all

xed:////etc/cups/cupsd.conf
Paste the following line, near (before or after) the lines with "Listen", then save the edited file and quit Xed:

Code: Select all

Listen 127.0.0.1:631
Restart cups:

Code: Select all

sudo systemctl restart cups
In order to be able to use Cups web interface, your username should be member of lpdamin group. Add it (if it is already added, you will get the confirmation as the command answer):

Code: Select all

sudo usermod -aG lpadmin username
NB: Cups username to set up / use is your actual username, and cups password is the one you use for sudo.

Now, clicking on http://localhost:631/admin should open the cups printers management page. Select "Adminstration", then your printer, and set-it up. Enter your password when required.

Regards,

MN
i did all what you said: removing those packages, reinstalling hplip, and adding that line
but i still getting device communication error

error: Unable to communicate with device (code=12): hp:/usb/HP_LaserJet_P1006?serial=AC1EM1G
error: Device not found
User avatar
MikeNovember
Level 7
Level 7
Posts: 1856
Joined: Fri Feb 28, 2020 7:37 am
Location: Nice, Paris, France

Re: hp laserJet p1006

Post by MikeNovember »

Hi,

It might be an hardware problem, test another USB port or another cable.

Regards,

MN
_____________________________
Linux Mint 21.3 Mate host with Ubuntu Pro enabled, VMware Workstation Player with Windows 10 Pro guest, ASUS G74SX (i7-2670QM, 16 GB RAM, GTX560M with 3GB RAM, 1TB SSD).
ardv
Level 3
Level 3
Posts: 102
Joined: Thu Feb 16, 2023 6:47 am

Re: hp laserJet p1006

Post by ardv »

MikeNovember wrote: Sun Mar 26, 2023 2:09 pm Hi,

It might be an hardware problem, test another USB port or another cable.

Regards,

MN
i don't think it is a hardware problem
i tried to delete the printer and install it again not from HPLIP but from the Linux mint printers from settings and in driver i choose: hpcus not foomatics and now it sometimes works and other times not working
i think there is a problem in the driver or something like this
how can i know the firmware version in the printer? and can i upgrade it?
driver.png
ardv
Level 3
Level 3
Posts: 102
Joined: Thu Feb 16, 2023 6:47 am

Re: [SOLVED] hp laserJet p1006

Post by ardv »

i have bought a new usb cable and now the printer is working well
User avatar
MikeNovember
Level 7
Level 7
Posts: 1856
Joined: Fri Feb 28, 2020 7:37 am
Location: Nice, Paris, France

Re: hp laserJet p1006

Post by MikeNovember »

ardv wrote: Mon Apr 03, 2023 2:40 am
MikeNovember wrote: Sun Mar 26, 2023 2:09 pm Hi,

It might be an hardware problem, test another USB port or another cable.

Regards,

MN
i don't think it is a hardware problem
ardv wrote: Sun Apr 16, 2023 1:35 am i have bought a new usb cable and now the printer is working well
:mrgreen:
_____________________________
Linux Mint 21.3 Mate host with Ubuntu Pro enabled, VMware Workstation Player with Windows 10 Pro guest, ASUS G74SX (i7-2670QM, 16 GB RAM, GTX560M with 3GB RAM, 1TB SSD).
Locked

Return to “Printers & Scanners”