1st command not any return like yours
Code:
librarian@Ubuntu5:~$ sudo apt purge hplip hplip-data hplip-doc hplip-gui hpijs-ppds libsane-hpaio printer-driver-hpcups printer-driver-hpijs
[sudo] password for librarian:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
libhpmud0 python3-dbus.mainloop.pyqt5 python3-notify2
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
hpijs-ppds* hplip* hplip-data* hplip-doc* hplip-gui* libsane-hpaio*
printer-driver-hpcups* printer-driver-hpijs*
0 upgraded, 0 newly installed, 8 to remove and 0 not upgraded.
After this operation, 17.9 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 327898 files and directories currently installed.)
Removing hpijs-ppds (3.23.12+dfsg0-0ubuntu5) ...
Removing hplip-gui (3.23.12+dfsg0-0ubuntu5) ...
Removing hplip (3.23.12+dfsg0-0ubuntu5) ...
Removing hplip-data (3.23.12+dfsg0-0ubuntu5) ...
dpkg: warning: while removing hplip-data, directory '/usr/share/hplip/ui5' not empty so not removed
dpkg: warning: while removing hplip-data, directory '/usr/share/hplip/scan' not
empty so not removed
dpkg: warning: while removing hplip-data, directory '/usr/share/hplip/prnt' not
empty so not removed
dpkg: warning: while removing hplip-data, directory '/usr/share/hplip/pcard' not
empty so not removed
dpkg: warning: while removing hplip-data, directory '/usr/share/hplip/installer'
not empty so not removed
dpkg: warning: while removing hplip-data, directory '/usr/share/hplip/fax' not e
mpty so not removed
dpkg: warning: while removing hplip-data, directory '/usr/share/hplip/copier' no
t empty so not removed
dpkg: warning: while removing hplip-data, directory '/usr/share/hplip/base/pexpe
ct' not empty so not removed
Removing hplip-doc (3.23.12+dfsg0-0ubuntu5) ...
Removing libsane-hpaio:amd64 (3.23.12+dfsg0-0ubuntu5) ...
No diversion 'diversion of /lib/udev/rules.d/56-hpmud.rules to /lib/udev/rules.d
/56-hpmud.rules.usr-is-merged by usr-is-merged', none removed.
Removing printer-driver-hpcups (3.23.12+dfsg0-0ubuntu5) ...
Removing printer-driver-hpijs (3.23.12+dfsg0-0ubuntu5) ...
Processing triggers for doc-base (0.11.2) ...
Processing 1 removed doc-base file...
Processing triggers for cups (2.4.7-1.2ubuntu7.3) ...
lpinfo: Success
Processing triggers for gnome-menus (3.36.0-1.1ubuntu3) ...
Processing triggers for man-db (2.12.0-4build2) ...
Processing triggers for dbus (1.14.10-4ubuntu4.1) ...
Processing triggers for desktop-file-utils (0.27-2build1) ...
(Reading database ... 327146 files and directories currently installed.)
Purging configuration files for hplip (3.23.12+dfsg0-0ubuntu5) ...
Purging configuration files for hplip-gui (3.23.12+dfsg0-0ubuntu5) ...
Purging configuration files for libsane-hpaio:amd64 (3.23.12+dfsg0-0ubuntu5) ...
dpkg: warning: while removing libsane-hpaio:amd64, directory '/usr/share/hplip' not empty so not removed
Processing triggers for dbus (1.14.10-4ubuntu4.1) ...
librarian@Ubuntu5:~$ librarian@Ubuntu5:~$ sudo apt install hplip hplip-gui python3-notify2 python3-reportlab system-config-printer
librarian@Ubuntu5:~$
2nd command
[code]librarian@Ubuntu5:~$ sudo apt install hplip hplip-gui python3-notify2 python3-reportlab system-config-printer
[sudo] password for librarian:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
python3-notify2 is already the newest version (0.3-5).
python3-notify2 set to manually installed.
python3-reportlab is already the newest version (4.1.0-4).
system-config-printer is already the newest version (1.5.18-1ubuntu9).
system-config-printer set to manually installed.
Suggested packages:
hplip-doc
The following NEW packages will be installed:
hplip hplip-data hplip-gui libsane-hpaio printer-driver-hpcups
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 247 kB/7,072 kB of archives.
After this operation, 15.0 MB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu noble/main amd64 printer-driver-hpcups amd64 3.23.12+dfsg0-0ubuntu5 [247 kB]
Fetched 247 kB in 0s (757 kB/s)
Selecting previously unselected package hplip-data.
(Reading database ... 327141 files and directories currently installed.)
Preparing to unpack .../hplip-data_3.23.12+dfsg0-0ubuntu5_all.deb ...
Unpacking hplip-data (3.23.12+dfsg0-0ubuntu5) ...
Selecting previously unselected package libsane-hpaio:amd64.
Preparing to unpack .../libsane-hpaio_3.23.12+dfsg0-0ubuntu5_amd64.deb ...
Unpacking libsane-hpaio:amd64 (3.23.12+dfsg0-0ubuntu5) ...
Selecting previously unselected package printer-driver-hpcups.
Preparing to unpack .../printer-driver-hpcups_3.23.12+dfsg0-0ubuntu5_amd64.deb .
..
Unpacking printer-driver-hpcups (3.23.12+dfsg0-0ubuntu5) ...
Selecting previously unselected package hplip.
Preparing to unpack .../hplip_3.23.12+dfsg0-0ubuntu5_amd64.deb ...
Unpacking hplip (3.23.12+dfsg0-0ubuntu5) ...
Selecting previously unselected package hplip-gui.
Preparing to unpack .../hplip-gui_3.23.12+dfsg0-0ubuntu5_all.deb ...
Unpacking hplip-gui (3.23.12+dfsg0-0ubuntu5) ...
Setting up hplip-data (3.23.12+dfsg0-0ubuntu5) ...
/usr/share/hplip/base/imagesize.py:186: SyntaxWarning: invalid escape sequence '
\#'
re.compile('\#define\s+\S+\s+\d+') : ('image/x-xbitmap', xbmsize),
/usr/share/hplip/base/imagesize.py:187: SyntaxWarning: invalid escape sequence '
\/'
re.compile('\/\* XPM \*\/') : ('image/x-xpixmap', xpmsize),
/usr/share/hplip/base/imagesize.py:189: SyntaxWarning: invalid escape sequence '
\*'
re.compile('^II\*\x00') : ('image/tiff', tiffsize),
/usr/share/hplip/fax/ledmfax.py:46: SyntaxWarning: invalid escape sequence '\d'
http_result_pat = re.compile(b"""HTTP/\d.\d\s(\d+)""", re.I)
Setting up printer-driver-hpcups (3.23.12+dfsg0-0ubuntu5) ...
Setting up libsane-hpaio:amd64 (3.23.12+dfsg0-0ubuntu5) ...
No diversion 'diversion of /lib/udev/rules.d/56-hpmud.rules to /lib/udev/rules.d
/56-hpmud.rules.usr-is-merged by usr-is-merged', none removed.
Setting up hplip (3.23.12+dfsg0-0ubuntu5) ...
Creating/updating hplip user account...
Setting up hplip-gui (3.23.12+dfsg0-0ubuntu5) ...
Processing triggers for desktop-file-utils (0.27-2build1) ...
Processing triggers for cups (2.4.7-1.2ubuntu7.3) ...
lpinfo: Success
Processing triggers for gnome-menus (3.36.0-1.1ubuntu3) ...
Processing triggers for man-db (2.12.0-4build2) ...
Processing triggers for dbus (1.14.10-4ubuntu4.1) ...
librarian@Ubuntu5:~$ [code]