[SOLVED] Trouble installing HP printer

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Vilsen
Level 5
Level 5
Posts: 983
Joined: Thu Nov 16, 2017 4:45 am

[SOLVED] Trouble installing HP printer

Post by Vilsen »

I have read ALL about it ! Nothing works !

I had a Samsung printer . I ran an installation script and then everything worked.

However, I got a brand new HP P1005.

Now nothing works. In windows - of course - it works .
Nothing wrong with the printer but the instructions to install is
probably wrong an differ from different writers , also in this forum.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
cliffcoggin
Level 8
Level 8
Posts: 2300
Joined: Sat Sep 17, 2016 6:40 pm
Location: England

Re: Trouble installing HP printer

Post by cliffcoggin »

That's unfortunate.
Cliff Coggin
User avatar
kc1di
Level 18
Level 18
Posts: 8146
Joined: Mon Sep 08, 2008 8:44 pm
Location: Maine USA

Re: Trouble installing HP printer

Post by kc1di »

Hello and welcome to Linux Mint,
That Printer needs a driver plug in to work. Hp's web page says this.
This printer REQUIRES a downloadable driver plug-in. Use hp-setup to install the printer, and to download and install the plug-in. In general, required driver plugins are required for printing support. Driver plug-ins are released under a proprietary (non-open) license and are not part of the HPLIP tarball release.
So you need to run hp-setup to install it. The problem is with Hp not Mint. if your having problems with the dirver plugin install you may have to contact HP as there is nothing Mint or any linux distro can do if the plug in is not open source.

Good luck.
Easy tips : https://easylinuxtipsproject.blogspot.com/ Pjotr's Great Linux projects page.
Linux Mint Installation Guide: http://linuxmint-installation-guide.rea ... en/latest/
Registered Linux User #462608
wwfwng
Level 3
Level 3
Posts: 158
Joined: Tue Jul 24, 2012 9:19 pm

Re: Trouble installing HP printer

Post by wwfwng »

Did you read this page?

https://developers.hp.com/hp-linux-imag ... -printing/

Go to your package manager and search for hplip. Is it installed?
Vilsen
Level 5
Level 5
Posts: 983
Joined: Thu Nov 16, 2017 4:45 am

Re: Trouble installing HP printer

Post by Vilsen »

Yes , here it is and I dont know when it got there :
2021_06_22_09_45_40_resultat.jpg
I also - before your answer here - downloaded
hplip-3.21.4.run but I did not succeed do install it !

I have tried everything .

Why does it end with: .run ?

I have never seen that extension before.

It contain some strange things:

Code: Select all

#!/bin/sh
# This script was generated using Makeself 2.1.5

CRCsum="2929115219"
MD5="d979c0f78aefc70f5978336e49062977"
TMPROOT=${TMPDIR:=/tmp}

label="HPLIP 3.21.4 Self Extracting Archive"
script="./hplip-install"
scriptargs=""
targetdir="hplip-3.21.4"
filesizes="27054720"
keep=y

print_cmd_arg=""
if type printf > /dev/null; then
    print_cmd="printf"
elif test -x /usr/ucb/echo; then
    print_cmd="/usr/ucb/echo"
else
    print_cmd="echo"
fi

unset CDPATH

MS_Printf()
{
    $print_cmd $print_cmd_arg "$1"
}

MS_Progress()
{
    while read a; do
	MS_Printf .
    done
}

MS_diskspace()
{
	(
	if test -d /usr/xpg4/bin; then
		PATH=/usr/xpg4/bin:$PATH
	fi
	df -kP "$1" | tail -1 | awk '{print $4}'
	)
}

MS_dd()
{
    blocks=`expr $3 / 1024`
    bytes=`expr $3 % 1024`
    dd if="$1" ibs=$2 skip=1 obs=1024 conv=sync 2> /dev/null | \
    { test $blocks -gt 0 && dd ibs=1024 obs=1024 count=$blocks ; \
      test $bytes  -gt 0 && dd ibs=1 obs=1024 count=$bytes ; } 2> /dev/null
}

MS_Help()
{
    cat << EOH >&2
Makeself version 2.1.5
 1) Getting help or info about $0 :
  $0 --help   Print this message
  $0 --info   Print embedded info : title, default target directory, embedded script ...
  $0 --lsm    Print embedded lsm entry (or no LSM)
  $0 --list   Print the list of files in the archive
  $0 --check  Checks integrity of the archive
 
 2) Running $0 :
  $0 [options] [--] [additional arguments to embedded script]
  with following options (in that order)
  --confirm             Ask before running embedded script
  --noexec              Do not run embedded script
  --keep                Do not erase target directory after running
			the embedded script
  --nox11               Do not spawn an xterm
  --nochown             Do not give the extracted files to the current user
  --target NewDirectory Extract in NewDirectory
  --tar arg1 [arg2 ...] Access the contents of the archive through the tar command
  --                    Following arguments will be passed to the embedded script
EOH
}

MS_Check()
{
    OLD_PATH="$PATH"
    PATH=${GUESS_MD5_PATH:-"$OLD_PATH:/bin:/usr/bin:/sbin:/usr/local/ssl/bin:/usr/local/bin:/opt/openssl/bin"}
	MD5_ARG=""
    MD5_PATH=`exec <&- 2>&-; which md5sum || type md5sum`
    test -x "$MD5_PATH" || MD5_PATH=`exec <&- 2>&-; which md5 || type md5`
	test -x "$MD5_PATH" || MD5_PATH=`exec <&- 2>&-; which digest || type digest`
    PATH="$OLD_PATH"

    MS_Printf "Verifying archive integrity..."
    offset=`head -n 402 "$1" | wc -c | tr -d " "`
    verb=$2
    i=1
    for s in $filesizes
    do
		crc=`echo $CRCsum | cut -d" " -f$i`
		if test -x "$MD5_PATH"; then
			if test `basename $MD5_PATH` = digest; then
				MD5_ARG="-a md5"
			fi
			md5=`echo $MD5 | cut -d" " -f$i`
			if test $md5 = "00000000000000000000000000000000"; then
				test x$verb = xy && echo " $1 does not contain an embedded MD5 checksum." >&2
			else
				md5sum=`MS_dd "$1" $offset $s | eval "$MD5_PATH $MD5_ARG" | cut -b-32`;
				if test "$md5sum" != "$md5"; then
					echo "Error in MD5 checksums: $md5sum is different from $md5" >&2
					exit 2
				else
					test x$verb = xy && MS_Printf " MD5 checksums are OK." >&2
				fi
				crc="0000000000"; verb=n
			fi
		fi
		if test $crc = "0000000000"; then
			test x$verb = xy && echo " $1 does not contain a CRC checksum." >&2
		else
			sum1=`MS_dd "$1" $offset $s | CMD_ENV=xpg4 cksum | awk '{print $1}'`
			if test "$sum1" = "$crc"; then
				test x$verb = xy && MS_Printf " CRC checksums are OK." >&2
			else
				echo "Error in checksums: $sum1 is different from $crc"
				exit 2;
			fi
		fi
		i=`expr $i + 1`
		offset=`expr $offset + $s`
    done
    echo " All good."
}

UnTAR()
{
    tar $1vf - 2>&1 || { echo Extraction failed. > /dev/tty; kill -15 $$; }
}

finish=true
xterm_loop=
nox11=n
copy=none
ownership=y
verbose=n

initargs="$@"

while true
do
    case "$1" in
    -h | --help)
	MS_Help
	exit 0
	;;
    --info)
	echo Identification: "$label"
	echo Target directory: "$targetdir"
	echo Uncompressed size: 57708 KB
	echo Compression: gzip
	echo Date of packaging: Thu May  6 14:11:17 IST 2021
	echo Built with Makeself version 2.1.5 on 
	echo Build command was: "/usr/bin/makeself \\
    \"--notemp\" \\
    \"hplip-3.21.4\" \\
    \"hplip-3.21.4.run\" \\
    \"HPLIP 3.21.4 Self Extracting Archive\" \\
    \"./hplip-install\""
	if test x$script != x; then
	    echo Script run after extraction:
	    echo "    " $script $scriptargs
	fi
	if test x"" = xcopy; then
		echo "Archive will copy itself to a temporary location"
	fi
	if test x"y" = xy; then
	    echo "directory $targetdir is permanent"
	else
	    echo "$targetdir will be removed after extraction"
	fi
	exit 0
	;;
    --dumpconf)
	echo LABEL=\"$label\"
	echo SCRIPT=\"$script\"
	echo SCRIPTARGS=\"$scriptargs\"
	echo archdirname=\"hplip-3.21.4\"
	echo KEEP=y
	echo COMPRESS=gzip
	echo filesizes=\"$filesizes\"
	echo CRCsum=\"$CRCsum\"
	echo MD5sum=\"$MD5\"
	echo OLDUSIZE=57708
	echo OLDSKIP=403
	exit 0
	;;
    --lsm)
cat << EOLSM
No LSM.
EOLSM
	exit 0
	;;
    --list)
	echo Target directory: $targetdir
	offset=`head -n 402 "$0" | wc -c | tr -d " "`
	for s in $filesizes
	do
	    MS_dd "$0" $offset $s | eval "gzip -cd" | UnTAR t
	    offset=`expr $offset + $s`
	done
	exit 0
	;;
	--tar)
	offset=`head -n 402 "$0" | wc -c | tr -d " "`
	arg1="$2"
	shift 2
	for s in $filesizes
	do
	    MS_dd "$0" $offset $s | eval "gzip -cd" | tar "$arg1" - $*
	    offset=`expr $offset + $s`
	done
	exit 0
	;;
    --check)
	MS_Check "$0" y
	exit 0
	;;
    --confirm)
	verbose=y
	shift
	;;
	--noexec)
	script=""
	shift
	;;
    --keep)
	keep=y
	shift
	;;
    --target)
	keep=y
	targetdir=${2:-.}
	shift 2
	;;
    --nox11)
	nox11=y
	shift
	;;
    --nochown)
	ownership=n
	shift
	;;
    --xwin)
	finish="echo Press Return to close this window...; read junk"
	xterm_loop=1
	shift
	;;
    --phase2)
	copy=phase2
	shift
	;;
    --)
	shift
	break ;;
    -*)
	echo Unrecognized flag : "$1" >&2
	MS_Help
	exit 1
	;;
    *)
	break ;;
    esac
done

case "$copy" in
copy)
    tmpdir=$TMPROOT/makeself.$RANDOM.`date +"%y%m%d%H%M%S"`.$$
    mkdir "$tmpdir" || {
	echo "Could not create temporary directory $tmpdir" >&2
	exit 1
    }
    SCRIPT_COPY="$tmpdir/makeself"
    echo "Copying to a temporary location..." >&2
    cp "$0" "$SCRIPT_COPY"
    chmod +x "$SCRIPT_COPY"
    cd "$TMPROOT"
    exec "$SCRIPT_COPY" --phase2 -- $initargs
    ;;
phase2)
    finish="$finish ; rm -rf `dirname $0`"
    ;;
esac

if test "$nox11" = "n"; then
    if tty -s; then                 # Do we have a terminal?
	:
    else
        if test x"$DISPLAY" != x -a x"$xterm_loop" = x; then  # No, but do we have X?
            if xset q > /dev/null 2>&1; then # Check for valid DISPLAY variable
                GUESS_XTERMS="xterm rxvt dtterm eterm Eterm kvt konsole aterm"
                for a in $GUESS_XTERMS; do
                    if type $a >/dev/null 2>&1; then
                        XTERM=$a
                        break
                    fi
                done
                chmod a+x $0 || echo Please add execution rights on $0
                if test `echo "$0" | cut -c1` = "/"; then # Spawn a terminal!
                    exec $XTERM -title "$label" -e "$0" --xwin "$initargs"
                else
                    exec $XTERM -title "$label" -e "./$0" --xwin "$initargs"
                fi
            fi
        fi
    fi
fi

if test "$targetdir" = "."; then
    tmpdir="."
else
    if test "$keep" = y; then
	echo "Creating directory $targetdir" >&2
	tmpdir="$targetdir"
	dashp="-p"
    else
	tmpdir="$TMPROOT/selfgz$$$RANDOM"
	dashp=""
    fi
    mkdir $dashp $tmpdir || {
	echo 'Cannot create target directory' $tmpdir >&2
	echo 'You should try option --target OtherDirectory' >&2
	eval $finish
	exit 1
    }
fi

location="`pwd`"
if test x$SETUP_NOCHECK != x1; then
    MS_Check "$0"
fi
offset=`head -n 402 "$0" | wc -c | tr -d " "`

if test x"$verbose" = xy; then
	MS_Printf "About to extract 57708 KB in $tmpdir ... Proceed ? [Y/n] "
	read yn
	if test x"$yn" = xn; then
		eval $finish; exit 1
	fi
fi

MS_Printf "Uncompressing $label"
res=3
if test "$keep" = n; then
    trap 'echo Signal caught, cleaning up >&2; cd $TMPROOT; /bin/rm -rf $tmpdir; eval $finish; exit 15' 1 2 3 15
fi

leftspace=`MS_diskspace $tmpdir`
if test $leftspace -lt 57708; then
    echo
    echo "Not enough space left in "`dirname $tmpdir`" ($leftspace KB) to decompress $0 (57708 KB)" >&2
    if test "$keep" = n; then
        echo "Consider setting TMPDIR to a directory with more free space."
   fi
    eval $finish; exit 1
fi

for s in $filesizes
do
    if MS_dd "$0" $offset $s | eval "gzip -cd" | ( cd "$tmpdir"; UnTAR x ) | MS_Progress; then
		if test x"$ownership" = xy; then
			(PATH=/usr/xpg4/bin:$PATH; cd "$tmpdir"; chown -R `id -u` .;  chgrp -R `id -g` .)
		fi
    else
		echo
		echo "Unable to decompress $0" >&2
		eval $finish; exit 1
    fi
    offset=`expr $offset + $s`
done
echo

cd "$tmpdir"
res=0
if test x"$script" != x; then
    if test x"$verbose" = xy; then
		MS_Printf "OK to execute: $script $scriptargs $* ? [Y/n] "
		read yn
		if test x"$yn" = x -o x"$yn" = xy -o x"$yn" = xY; then
			eval $script $scriptargs $*; res=$?;
		fi
    else
		eval $script $scriptargs $*; res=$?
    fi
    if test $res -ne 0; then
		test x"$verbose" = xy && echo "The program '$script' returned an error code ($res)" >&2
    fi
fi
if test "$keep" = n; then
    cd $TMPROOT
    /bin/rm -rf $tmpdir
fi
eval $finish; exit $res
after this comes some binary :


Skärmavbild vid 2021-06-22 09-50-55_resultat_resultat.jpg
Skärmavbild vid 2021-06-22 09-50-55_resultat_resultat.jpg (44.51 KiB) Viewed 2552 times

lots of it ! THE WHOLE FILE IS 25,8 megabyte !!!!



1999 sh hplip-3.21.4.run
did NOT work
Last edited by karlchen on Tue Jun 22, 2021 5:05 am, edited 1 time in total.
Reason: enclosed the script part of the .run file in [code] tags to keep this post readable
User avatar
kato181
Level 9
Level 9
Posts: 2564
Joined: Fri Mar 24, 2017 12:33 am
Location: Frederickton NSW

Re: Trouble installing HP printer

Post by kato181 »

Try this link..
viewtopic.php?t=331728
Vilsen
Level 5
Level 5
Posts: 983
Joined: Thu Nov 16, 2017 4:45 am

Re: Trouble installing HP printer

Post by Vilsen »

I didn´t work !

Gone through all instructions after this message:
Skärmavbild vid 2021-06-23 08-49-08.png
Printer error ! in english.

Through all the diagnostics and finally this came up:

Code: Select all

Page 1 (<troubleshoot.SchedulerNotRunning.SchedulerNotRunning object at 0x7fcbf4761b00>):
{'cups_connection_failure': False}
Page 2 (<troubleshoot.ChoosePrinter.ChoosePrinter object at 0x7fcbf4761fd0>):
{'cups_dest': <cups.Dest HP-LaserJet-P1005>,
 'cups_instance': None,
 'cups_queue': 'HP-LaserJet-P1005',
 'cups_queue_listed': True}
Page 3 (<troubleshoot.CheckPrinterSanity.CheckPrinterSanity object at 0x7fcbf4761c18>):
{'cups_device_uri_scheme': 'usb',
 'cups_printer_dict': {'device-uri': 'usb://HP/LaserJet%20P1005?serial=BC1FFSW',
                       'printer-info': 'Hewlett-Packard HP LaserJet P1005',
                       'printer-is-shared': True,
                       'printer-location': 'mate18-desktop',
                       'printer-make-and-model': 'HP LaserJet P1005 '
                                                 'Foomatic/foo2xqx '
                                                 '(recommended)',
                       'printer-state': 3,
                       'printer-state-message': 'Filter failed',
                       'printer-state-reasons': ['none'],
                       'printer-type': 8425492,
                       'printer-uri-supported': 'ipp://localhost/printers/HP-LaserJet-P1005'},
 'cups_printer_remote': False,
 'is_cups_class': False,
 'local_cups_queue_attributes': {'charset-configured': 'utf-8',
                                 'charset-supported': ['us-ascii', 'utf-8'],
                                 'color-supported': False,
                                 'compression-supported': ['none', 'gzip'],
                                 'copies-default': 1,
                                 'copies-supported': (1, 9999),
                                 'cups-version': '2.2.7',
                                 'device-uri': 'usb://HP/LaserJet%20P1005?serial=BC1FFSW',
                                 'document-format-default': 'application/octet-stream',
                                 'document-format-supported': ['application/octet-stream',
                                                               'application/pdf',
                                                               'application/postscript',
                                                               'application/vnd.adobe-reader-postscript',
                                                               'application/vnd.cups-command',
                                                               'application/vnd.cups-pdf',
                                                               'application/vnd.cups-pdf-banner',
                                                               'application/vnd.cups-postscript',
                                                               'application/vnd.cups-raster',
                                                               'application/vnd.cups-raw',
                                                               'application/x-cshell',
                                                               'application/x-csource',
                                                               'application/x-perl',
                                                               'application/x-shell',
                                                               'image/gif',
                                                               'image/jpeg',
                                                               'image/png',
                                                               'image/pwg-raster',
                                                               'image/tiff',
                                                               'image/urf',
                                                               'image/x-bitmap',
                                                               'image/x-photocd',
                                                               'image/x-portable-anymap',
                                                               'image/x-portable-bitmap',
                                                               'image/x-portable-graymap',
                                                               'image/x-portable-pixmap',
                                                               'image/x-sgi-rgb',
                                                               'image/x-sun-raster',
                                                               'image/x-xbitmap',
                                                               'image/x-xpixmap',
                                                               'image/x-xwindowdump',
                                                               'text/css',
                                                               'text/html',
                                                               'text/plain'],
                                 'finishings-default': 3,
                                 'finishings-supported': [3],
                                 'generated-natural-language-supported': ['sv-se'],
                                 'ipp-features-supported': ['subscription-object'],
                                 'ipp-versions-supported': ['1.0',
                                                            '1.1',
                                                            '2.0',
                                                            '2.1'],
                                 'ippget-event-life': 15,
                                 'job-cancel-after-default': 10800,
                                 'job-cancel-after-supported': (0, 2147483647),
                                 'job-creation-attributes-supported': ['copies',
                                                                       'finishings',
                                                                       'ipp-attribute-fidelity',
                                                                       'job-hold-until',
                                                                       'job-name',
                                                                       'job-priority',
                                                                       'job-sheets',
                                                                       'media',
                                                                       'media-col',
                                                                       'multiple-document-handling',
                                                                       'number-up',
                                                                       'output-bin',
                                                                       'orientation-requested',
                                                                       'page-ranges',
                                                                       'print-color-mode',
                                                                       'print-quality',
                                                                       'printer-resolution',
                                                                       'sides'],
                                 'job-hold-until-default': 'no-hold',
                                 'job-hold-until-supported': ['no-hold',
                                                              'indefinite',
                                                              'day-time',
                                                              'evening',
                                                              'night',
                                                              'second-shift',
                                                              'third-shift',
                                                              'weekend'],
                                 'job-ids-supported': True,
                                 'job-k-limit': 0,
                                 'job-k-octets-supported': (0, 117331308),
                                 'job-page-limit': 0,
                                 'job-priority-default': 50,
                                 'job-priority-supported': [100],
                                 'job-quota-period': 0,
                                 'job-settable-attributes-supported': ['copies',
                                                                       'finishings',
                                                                       'job-hold-until',
                                                                       'job-name',
                                                                       'job-priority',
                                                                       'media',
                                                                       'media-col',
                                                                       'multiple-document-handling',
                                                                       'number-up',
                                                                       'output-bin',
                                                                       'orientation-requested',
                                                                       'page-ranges',
                                                                       'print-color-mode',
                                                                       'print-quality',
                                                                       'printer-resolution',
                                                                       'sides'],
                                 'job-sheets-default': ('none', 'none'),
                                 'job-sheets-supported': ['none',
                                                          'classified',
                                                          'confidential',
                                                          'form',
                                                          'secret',
                                                          'standard',
                                                          'topsecret',
                                                          'unclassified'],
                                 'jpeg-k-octets-supported': (0, 117331308),
                                 'jpeg-x-dimension-supported': (0, 65535),
                                 'jpeg-y-dimension-supported': (1, 65535),
                                 'marker-change-time': 0,
                                 'media-bottom-margin-supported': [400],
                                 'media-col-default': '(unknown IPP value tag '
                                                      '0x34)',
                                 'media-col-supported': ['media-bottom-margin',
                                                         'media-left-margin',
                                                         'media-right-margin',
                                                         'media-size',
                                                         'media-source',
                                                         'media-top-margin',
                                                         'media-type'],
                                 'media-default': 'iso_a4_210x297mm',
                                 'media-left-margin-supported': [400],
                                 'media-right-margin-supported': [400],
                                 'media-size-supported': ['(unknown IPP value '
                                                          'tag 0x34)',
                                                          '(unknown IPP value '
                                                          'tag 0x34)',
                                                          '(unknown IPP value '
                                                          'tag 0x34)',
                                                          '(unknown IPP value '
                                                          'tag 0x34)',
                                                          '(unknown IPP value '
                                                          'tag 0x34)',
                                                          '(unknown IPP value '
                                                          'tag 0x34)',
                                                          '(unknown IPP value '
                                                          'tag 0x34)',
                                                          '(unknown IPP value '
                                                          'tag 0x34)',
                                                          '(unknown IPP value '
                                                          'tag 0x34)',
                                                          '(unknown IPP value '
                                                          'tag 0x34)',
                                                          '(unknown IPP value '
                                                          'tag 0x34)',
                                                          '(unknown IPP value '
                                                          'tag 0x34)',
                                                          '(unknown IPP value '
                                                          'tag 0x34)',
                                                          '(unknown IPP value '
                                                          'tag 0x34)'],
                                 'media-source-supported': ['tray-1',
                                                            'auto',
                                                            'manual'],
                                 'media-supported': ['na_letter_8.5x11in',
                                                     'iso_a4_210x297mm',
                                                     'iso_a5_148x210mm',
                                                     'jis_b5_182x257mm',
                                                     'na_number-10_4.125x9.5in',
                                                     'iso_c5_162x229mm',
                                                     'iso_dl_110x220mm',
                                                     'na_monarch_3.875x7.5in',
                                                     'na_executive_7.25x10.5in',
                                                     'na_legal_8.5x14in',
                                                     'om_w522h737_184.15x260mm',
                                                     'om_w553h765_195.09x269.88mm',
                                                     'oe_w558h774_7.75x10.75in',
                                                     'custom_min_0.5x0.5in',
                                                     'custom_max_35277.78x35277.78mm'],
                                 'media-top-margin-supported': [400],
                                 'media-type-supported': ['stationery',
                                                          'multipurpose',
                                                          'all-in-one',
                                                          'bond',
                                                          'cardstock',
                                                          'color',
                                                          'envelope',
                                                          'heavy',
                                                          'labels',
                                                          'laser-jet',
                                                          'stationery-letterhead',
                                                          'light',
                                                          'office',
                                                          'premium-laser-jet',
                                                          'stationery-preprinted',
                                                          'prepunched',
                                                          'stationery-recycled',
                                                          'rough',
                                                          'transparency',
                                                          'unspecified'],
                                 'multiple-document-handling-supported': ['separate-documents-uncollated-copies',
                                                                          'separate-documents-collated-copies'],
                                 'multiple-document-jobs-supported': True,
                                 'multiple-operation-time-out': 300,
                                 'multiple-operation-time-out-action': 'process-job',
                                 'natural-language-configured': 'sv-se',
                                 'notify-attributes-supported': ['printer-state-change-time',
                                                                 'notify-lease-expiration-time',
                                                                 'notify-subscriber-user-name'],
                                 'notify-events-default': ['job-completed'],
                                 'notify-events-supported': ['job-completed',
                                                             'job-config-changed',
                                                             'job-created',
                                                             'job-progress',
                                                             'job-state-changed',
                                                             'job-stopped',
                                                             'printer-added',
                                                             'printer-changed',
                                                             'printer-config-changed',
                                                             'printer-deleted',
                                                             'printer-finishings-changed',
                                                             'printer-media-changed',
                                                             'printer-modified',
                                                             'printer-restarted',
                                                             'printer-shutdown',
                                                             'printer-state-changed',
                                                             'printer-stopped',
                                                             'server-audit',
                                                             'server-restarted',
                                                             'server-started',
                                                             'server-stopped'],
                                 'notify-lease-duration-default': 86400,
                                 'notify-lease-duration-supported': (0,
                                                                     2147483647),
                                 'notify-max-events-supported': [100],
                                 'notify-pull-method-supported': ['ippget'],
                                 'notify-schemes-supported': ['dbus',
                                                              'mailto',
                                                              'rss'],
                                 'number-up-default': 1,
                                 'number-up-supported': [1, 2, 4, 6, 9, 16],
                                 'operations-supported': [2,
                                                          4,
                                                          5,
                                                          6,
                                                          8,
                                                          9,
                                                          10,
                                                          11,
                                                          12,
                                                          13,
                                                          16,
                                                          17,
                                                          18,
                                                          19,
                                                          20,
                                                          21,
                                                          22,
                                                          23,
                                                          24,
                                                          25,
                                                          26,
                                                          27,
                                                          28,
                                                          34,
                                                          35,
                                                          37,
                                                          38,
                                                          56,
                                                          57,
                                                          59,
                                                          16385,
                                                          16386,
                                                          16387,
                                                          16388,
                                                          16389,
                                                          16390,
                                                          16391,
                                                          16392,
                                                          16393,
                                                          16394,
                                                          16395,
                                                          16396,
                                                          16397,
                                                          16398,
                                                          16399,
                                                          16423,
                                                          14],
                                 'orientation-requested-default': None,
                                 'orientation-requested-supported': [3,
                                                                     4,
                                                                     5,
                                                                     6],
                                 'output-bin-default': 'face-down',
                                 'output-bin-supported': ['face-down'],
                                 'page-ranges-supported': True,
                                 'pages-per-minute': 1,
                                 'pdf-k-octets-supported': (0, 117331308),
                                 'pdf-versions-supported': ['adobe-1.2',
                                                            'adobe-1.3',
                                                            'adobe-1.4',
                                                            'adobe-1.5',
                                                            'adobe-1.6',
                                                            'adobe-1.7',
                                                            'iso-19005-1_2005',
                                                            'iso-32000-1_2008',
                                                            'pwg-5102.3'],
                                 'pdl-override-supported': ['attempted'],
                                 'port-monitor': 'none',
                                 'port-monitor-supported': ['none'],
                                 'print-color-mode-default': 'monochrome',
                                 'print-color-mode-supported': ['monochrome'],
                                 'print-quality-default': 4,
                                 'print-quality-supported': [4],
                                 'printer-commands': ['AutoConfigure',
                                                      'Clean',
                                                      'PrintSelfTestPage'],
                                 'printer-config-change-date-time': '(IPP_TAG_DATE)',
                                 'printer-config-change-time': 1624031258,
                                 'printer-current-time': '(IPP_TAG_DATE)',
                                 'printer-device-id': 'MFG:Hewlett-Packard;MDL:HP '
                                                      'LaserJet '
                                                      'P1005;CMD:ACL;DES:HP '
                                                      'LaserJet '
                                                      'P1005;DRV:Dfoo2xqx,R1,M0,TF;',
                                 'printer-dns-sd-name': None,
                                 'printer-error-policy': 'retry-current-job',
                                 'printer-error-policy-supported': ['abort-job',
                                                                    'retry-current-job',
                                                                    'retry-job',
                                                                    'stop-printer'],
                                 'printer-geo-location': '(unknown IPP value '
                                                         'tag 0x12)',
                                 'printer-get-attributes-supported': ['document-format'],
                                 'printer-icons': 'http://localhost/icons/HP-LaserJet-P1005.png',
                                 'printer-info': 'Hewlett-Packard HP LaserJet '
                                                 'P1005',
                                 'printer-is-accepting-jobs': True,
                                 'printer-is-shared': True,
                                 'printer-is-temporary': False,
                                 'printer-location': 'mate18-desktop',
                                 'printer-make-and-model': 'HP LaserJet P1005 '
                                                           'Foomatic/foo2xqx '
                                                           '(recommended)',
                                 'printer-more-info': 'http://localhost/printers/HP-LaserJet-P1005',
                                 'printer-name': 'HP-LaserJet-P1005',
                                 'printer-op-policy': 'default',
                                 'printer-op-policy-supported': ['authenticated',
                                                                 'default'],
                                 'printer-organization': '',
                                 'printer-organizational-unit': '',
                                 'printer-resolution-default': (1200, 600, 3),
                                 'printer-resolution-supported': [(600, 600, 3),
                                                                  (1200,
                                                                   600,
                                                                   3)],
                                 'printer-settable-attributes-supported': ['printer-geo-location',
                                                                           'printer-info',
                                                                           'printer-location',
                                                                           'printer-organization',
                                                                           'printer-organizational-unit'],
                                 'printer-state': 3,
                                 'printer-state-change-date-time': '(IPP_TAG_DATE)',
                                 'printer-state-change-time': 1624430941,
                                 'printer-state-message': 'Filter failed',
                                 'printer-state-reasons': ['none'],
                                 'printer-type': 8425492,
                                 'printer-up-time': 1624430986,
                                 'printer-uri-supported': ['ipp://localhost/printers/HP-LaserJet-P1005'],
                                 'printer-uuid': 'urn:uuid:a208bd8c-19ff-39d2-70a6-5e3b8904ead5',
                                 'pwg-raster-document-resolution-supported': [(600,
                                                                               600,
                                                                               3)],
                                 'pwg-raster-document-sheet-back': 'normal',
                                 'pwg-raster-document-type-supported': ['black_1',
                                                                        'sgray_8'],
                                 'queued-job-count': 1,
                                 'server-is-sharing-printers': True,
                                 'sides-default': 'one-sided',
                                 'sides-supported': ['one-sided',
                                                     'two-sided-long-edge',
                                                     'two-sided-short-edge'],
                                 'uri-authentication-supported': ['requesting-user-name'],
                                 'uri-security-supported': ['none'],
                                 'which-jobs-supported': ['completed',
                                                          'not-completed',
                                                          'aborted',
                                                          'all',
                                                          'canceled',
                                                          'pending',
                                                          'pending-held',
                                                          'processing',
                                                          'processing-stopped']}}
Page 4 (<troubleshoot.CheckPPDSanity.CheckPPDSanity object at 0x7fcbf4769c18>):
{'cups_printer_ppd_defaults': {'Adjustment': {'halftone': 'default'},
                               'General': {'Copies': '1',
                                           'Density': 'Density3',
                                           'Duplex': 'None',
                                           'InputSlot': 'Auto',
                                           'MediaType': 'Plain',
                                           'PageRegion': 'A4',
                                           'PageSize': 'A4',
                                           'Quality': 'normal',
                                           'Resolution': '1200x600dpi'},
                               'Miscellaneous': {'NupOrient': 'port',
                                                 'NupPages': '1up'}},
 'cups_printer_ppd_valid': True,
 'missing_pkgs_and_exes': ([], [])}
Page 5 (<troubleshoot.LocalOrRemote.LocalOrRemote object at 0x7fcbf4769f28>):
{'printer_is_remote': False}
Page 6 (<troubleshoot.DeviceListed.DeviceListed object at 0x7fcbf47692e8>):
{'cups_device_dict': {'device-class': 'direct',
                      'device-id': 'MFG:Hewlett-Packard;MDL:HP LaserJet '
                                   'P1005;CMD:ACL;CLS:PRINTER;DES:HP LaserJet '
                                   'P1005;',
                      'device-info': 'HP LaserJet P1005',
                      'device-make-and-model': 'HP LaserJet P1005'}}
Page 7 (<troubleshoot.PrinterStateReasons.PrinterStateReasons object at 0x7fcbeee2b438>):
{'printer-state-message': 'Filter failed', 'printer-state-reasons': ['none']}
Page 8 (<troubleshoot.Locale.Locale object at 0x7fcbeedd7780>):
{'printer_page_size': 'A4',
 'system_locale_lang': None,
 'user_locale_ctype': 'sv_SE',
 'user_locale_messages': 'sv_SE'}
User avatar
kato181
Level 9
Level 9
Posts: 2564
Joined: Fri Mar 24, 2017 12:33 am
Location: Frederickton NSW

Re: Trouble installing HP printer

Post by kato181 »

What LM version are you running?
You haven't indicated how you are connecting the printer. USB or WiFi. As with most hp printers you have to connect them vis usb before you can have them work via wifi..That is typical of hp printers, I doubt the later models would be any different, I many be wrong.
Being a new printer, the drivers may not yet be available for LM 20, 20.1
Try this link..Follow the directions in the following instructions on how to create the installer. Substitute the run file with the one you have d/l
https://developers.hp.com/hp-linux-imag ... tall/index
Vilsen
Level 5
Level 5
Posts: 983
Joined: Thu Nov 16, 2017 4:45 am

Re: Trouble installing HP printer

Post by Vilsen »

Did I really forget to mention that ?

linux mint MATE 19.3
Utgåva Linux Mint 19 Tara 64-bitar
Kärna Linux 4.15.0-128-generic x86_64
MATE 1.20.1
14,6 GiB RAM + Intel® Core™ i5-3570K CPU @ 3.40GHz × 4

As my previous fully functioning Samsung M2020 printer they are both
connected via USB !

.................wait , something is happening ....I 'll be back...
Vilsen
Level 5
Level 5
Posts: 983
Joined: Thu Nov 16, 2017 4:45 am

Re: Trouble installing HP printer

Post by Vilsen »

This did not work last time I tried:
But now it is running:

Code: Select all

mate18@mate18-desktop ~/Skrivbord $ ls *.run
hplip-3.21.4.run
mate18@mate18-desktop ~/Skrivbord $ sh hplip-3.21.4.run
Creating directory hplip-3.21.4
Verifying archive integrity... All good.
Uncompressing HPLIP 3.21.4 Self Extracting Archive............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................

HP Linux Imaging and Printing System (ver. 3.21.4)
HPLIP Installer ver. 5.1

Copyright (c) 2001-18 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

Installer log saved in: hplip-install_Wed-23-Jun-2021_10:32:35.log

\
note: Defaults for each question are maked with a '*'. Press <enter> to accept the default.
Vilsen
Level 5
Level 5
Posts: 983
Joined: Thu Nov 16, 2017 4:45 am

Re: Trouble installing HP printer

Post by Vilsen »

it seems to get stuck at:
Skärmavbild vid 2021-06-23 11-01-20.png
Vilsen
Level 5
Level 5
Posts: 983
Joined: Thu Nov 16, 2017 4:45 am

Re: Trouble installing HP printer

Post by Vilsen »

sudo apt-get remove libhpmud0 libsane-hpaio printer-driver-postscript-hp


it's just rotating : - \ | / -
Vilsen
Level 5
Level 5
Posts: 983
Joined: Thu Nov 16, 2017 4:45 am

Re: Trouble installing HP printer

Post by Vilsen »

It has been running for half an hour now so I have to
terminate it .

Nothing happened...............!!!
Vilsen
Level 5
Level 5
Posts: 983
Joined: Thu Nov 16, 2017 4:45 am

Re: Trouble installing HP printer

Post by Vilsen »

Removed old hplip via synaptic,
ran hplip-3.21.4.run again but
same result it "hangs" at
sudo apt-get remove libhpmud0 libsane-hpaio printer-driver-postscript-hp
User avatar
kato181
Level 9
Level 9
Posts: 2564
Joined: Fri Mar 24, 2017 12:33 am
Location: Frederickton NSW

Re: Trouble installing HP printer

Post by kato181 »

Vilsen wrote: Wed Jun 23, 2021 5:57 am Removed old hplip via synaptic,
ran hplip-3.21.4.run again but
same result it "hangs" at
sudo apt-get remove libhpmud0 libsane-hpaio printer-driver-postscript-hp
try this..
sudo apt autoremove (file name)
User avatar
kato181
Level 9
Level 9
Posts: 2564
Joined: Fri Mar 24, 2017 12:33 am
Location: Frederickton NSW

Re: Trouble installing HP printer

Post by kato181 »

In terminal copy & paste the following command and post the results back here.
inxi -Fxxxxz
Then the following with the printer connected and turned on...
lpstat -a
Last edited by kato181 on Wed Jun 23, 2021 10:04 am, edited 1 time in total.
User avatar
kato181
Level 9
Level 9
Posts: 2564
Joined: Fri Mar 24, 2017 12:33 am
Location: Frederickton NSW

Re: Trouble installing HP printer

Post by kato181 »

Vilsen wrote: Wed Jun 23, 2021 4:38 am This did not work last time I tried:
But now it is running:

Code: Select all

mate18@mate18-desktop ~/Skrivbord $ ls *.run
hplip-3.21.4.run
mate18@mate18-desktop ~/Skrivbord $ sh hplip-3.21.4.run
Creating directory hplip-3.21.4
Verifying archive integrity... All good.
Uncompressing HPLIP 3.21.4 Self Extracting Archive............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................

HP Linux Imaging and Printing System (ver. 3.21.4)
HPLIP Installer ver. 5.1

Copyright (c) 2001-18 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

Installer log saved in: hplip-install_Wed-23-Jun-2021_10:32:35.log

\
note: Defaults for each question are maked with a '*'. Press <enter> to accept the default.
You need to follow the Steps listed below..
Step 3 select a (automatic)
Step 5
Step 6
Step 9
Step 10
Ensure you have the following installed..
build-essential
checkinstall

sudo apt install build-essential
sudo apt-get update
sudo install checkinstall
sudo apt-get update
Vilsen
Level 5
Level 5
Posts: 983
Joined: Thu Nov 16, 2017 4:45 am

Re: Trouble installing HP printer

Post by Vilsen »

Did all that !

Same thing : nothing happened , just rotating -\|/-
User avatar
kato181
Level 9
Level 9
Posts: 2564
Joined: Fri Mar 24, 2017 12:33 am
Location: Frederickton NSW

Re: Trouble installing HP printer

Post by kato181 »

Can you post the results of..
inxi -Fxxxz
Vilsen
Level 5
Level 5
Posts: 983
Joined: Thu Nov 16, 2017 4:45 am

Re: Trouble installing HP printer

Post by Vilsen »

mate18@mate18-desktop ~ $ inxi -Fxxxz
System: Host: mate18-desktop Kernel: 4.15.0-128-generic x86_64 bits: 64 gcc: 7.5.0
Desktop: MATE 1.20.1 (Gtk 3.22.30-1ubuntu4) info: mate-panel dm: lightdm Distro: Linux Mint 19 Tara
Machine: Device: desktop Mobo: ASRock model: Z77 Pro4 serial: N/A BIOS: American Megatrends v: P1.40 date: 07/13/2012
Battery hidpp__0: charge: N/A condition: NA/NA Wh volts: NA
model: Logitech Wireless Mouse M325 serial: <filter>status: Discharging
CPU: Quad core Intel Core i5-3570K (-MCP-) arch: Ivy Bridge rev.9 cache: 6144 KB
flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 27201
clock speeds: min/max: 1600/3800 MHz 1: 1600 MHz 2: 1600 MHz 3: 1600 MHz 4: 1600 MHz
Graphics: Card: Intel Xeon E3-1200 v2/3rd Gen Core processor Graphics Controller
bus-ID: 00:02.0 chip-ID: 8086:0162
Display Server: x11 (X.Org 1.19.6 ) drivers: modesetting (unloaded: fbdev,vesa)
Resolution: 1920x1080@60.00hz
OpenGL: renderer: Mesa DRI Intel HD Graphics 4000 (IVB GT2)
version: 4.2 Mesa 20.0.8 (compat-v: 3.0) Direct Render: Yes
Audio: Card Intel 7 Series/C216 Family High Definition Audio Controller
driver: snd_hda_intel bus-ID: 00:1b.0 chip-ID: 8086:1e20
Sound: Advanced Linux Sound Architecture v: k4.15.0-128-generic
Network: Card: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
driver: r8169 v: 2.3LK-NAPI port: e000 bus-ID: 04:00.0 chip-ID: 10ec:8168
IF: enp4s0 state: up speed: 100 Mbps duplex: full mac: <filter>
Drives: HDD Total Size: 5001.0GB (5.5% used)
ID-1: /dev/sda model: Samsung_SSD_860 size: 1000.2GB serial: <filter>
ID-2: /dev/sdb model: WDC_WD40EFAX size: 4000.8GB serial: <filter>
Partition: ID-1: / size: 112G used: 32G (30%) fs: ext4 dev: /dev/sda2
ID-2: /home size: 508G used: 224G (47%) fs: ext4 dev: /dev/sda3
RAID: System: supported: N/A
No RAID devices: /proc/mdstat, md_mod kernel module present
Unused Devices: none
Sensors: System Temperatures: cpu: 32.0C mobo: 31.0C
Fan Speeds (in rpm): cpu: N/A fan-1: 0 fan-2: 1354 fan-3: 858 fan-4: 578 fan-5: 0
Info: Processes: 192 Uptime: 2 min Memory: 1057.9/14992.1MB
Init: systemd v: 237 runlevel: 5 default: 2 Gcc sys: 7.5.0 alt: 5
Client: Shell (bash 4.4.201 running in mate-terminal) inxi: 2.3.56
Locked

Return to “Beginner Questions”