Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic: [EN] [SOLVED] Lost Printer  (Read 11526 times)

Offline finotti

  • User
  • Posts: 337
[EN] [SOLVED] Lost Printer
« on: 2026/03/03, 18:56:13 »
Sometime in the last week or so (since I last used it), my printer, a Brother HL-L2300D, stopped working.  It had worked flawlessly for years.

I then tried reinstalling.  I've installed the official drivers from Brother: https://support.brother.com/g/b/downloadhowto.aspx?c=us&lang=en&prod=hll2300d_us_eu_as&os=128&dlid=dlf006893_000&flang=4&type3=625

I removed the printer from CUPS and installed the drivers:

Code: [Select]
$ sudo bash linux-brprinter-installer-2.2.6-0
Input model name ->HL-L2300D

You are going to install following packages.
   hll2300dlpr-3.2.0-1.i386.deb
   hll2300dcupswrapper-3.2.0-1.i386.deb
OK? [y/N] ->y

Get:1 http://apt.insync.io/debian forky InRelease [5,547 B]
Hit:2 http://www.deb-multimedia.org sid InRelease
Hit:3 https://packages.microsoft.com/repos/code stable InRelease
Hit:4 https://mirror.math.princeton.edu/pub/siduction/extra unstable InRelease
Hit:5 https://deb.debian.org/debian unstable InRelease
Hit:6 https://mirror.math.princeton.edu/pub/siduction/fixes unstable InRelease
Get:7 https://pkgs.tailscale.com/stable/debian forky InRelease
Hit:8 https://dl.google.com/linux/chrome/deb stable InRelease
Fetched 12.1 kB in 0s (32.4 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package ia32-libs is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  lib32z1

E: Package 'ia32-libs' has no installation candidate
dpkg -x hll2300dlpr-3.2.0-1.i386.deb /
dpkg -x hll2300dcupswrapper-3.2.0-1.i386.deb /
dpkg-deb: building package 'hll2300dlpr' in 'hll2300dlpr-3.2.0-1a.i386.deb'.
dpkg -b ./brother_driver_packdir hll2300dlpr-3.2.0-1a.i386.deb
dpkg-deb: building package 'hll2300dcupswrapper' in 'hll2300dcupswrapper-3.2.0-1a.i386.deb'.
dpkg -b ./brother_driver_packdir hll2300dcupswrapper-3.2.0-1a.i386.deb
dpkg -i --force-all hll2300dlpr-3.2.0-1a.i386.deb
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: package architecture (i386) does not match system (amd64)
Selecting previously unselected package hll2300dlpr:i386.
(Reading database… 1217006 files and directories currently installed.)
Preparing to unpack hll2300dlpr-3.2.0-1a.i386.deb…
Unpacking hll2300dlpr:i386 (3.2.0-1)…
Setting up hll2300dlpr:i386 (3.2.0-1)…
dpkg -i --force-all hll2300dcupswrapper-3.2.0-1a.i386.deb
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: package architecture (i386) does not match system (amd64)
Selecting previously unselected package hll2300dcupswrapper:i386.
(Reading database… 1217025 files and directories currently installed.)
Preparing to unpack hll2300dcupswrapper-3.2.0-1a.i386.deb…
Unpacking hll2300dcupswrapper:i386 (3.2.0-1)…
Setting up hll2300dcupswrapper:i386 (3.2.0-1)…
lpadmin -p HLL2300D -E -v usb://dev/usb/lp0 -P /usr/share/ppd/brother/brother-HLL2300D-cups-en.ppd
lpadmin: Printer drivers are deprecated and will stop working in a future version of CUPS.
ValueError: SELinux policy is not managed or store cannot be accessed.
ValueError: SELinux policy is not managed or store cannot be accessed.
ValueError: SELinux policy is not managed or store cannot be accessed.
ValueError: SELinux policy is not managed or store cannot be accessed.
#
hll2300dlpr
semanage fcontext -a -t bin_t /opt/brother
ValueError: SELinux policy is not managed or store cannot be accessed.
restorecon -R /opt/brother
semanage fcontext -a -t cupsd_rw_etc_t /etc/opt/brother
ValueError: SELinux policy is not managed or store cannot be accessed.
restorecon -R /etc/opt/brother
semanage fcontext -a -t cupsd_rw_etc_t /opt/brother/Printers/(.*/)?inf(/.*)?
ValueError: SELinux policy is not managed or store cannot be accessed.
restorecon -R /opt/brother/Printers
semanage fcontext -a -t cupsd_rw_etc_t /etc/opt/brother/Printers/(.*/)?inf(/.*)?
ValueError: SELinux policy is not managed or store cannot be accessed.
restorecon -R /etc/opt/brother/Printers
semanage fcontext -a -t bin_t /opt/brother/Printers/(.*/)?lpd(/.*)?
ValueError: SELinux policy is not managed or store cannot be accessed.
restorecon -R /opt/brother/Printers
semanage fcontext -a -t bin_t /opt/brother/Printers/(.*/)?cupswrapper(/.*)?
ValueError: SELinux policy is not managed or store cannot be accessed.
restorecon -R /opt/brother/Printers
restorecon -RFv /usr/lib/cups/filter
setsebool -P cups_execmem 1
Cannot set persistent booleans without managed policy.
Will you specify the Device URI? [Y/n] ->n

Test Print? [y/N] ->y

wait 5s.
lpr -P HLL2300D /usr/share/cups/data/testprint
Hit Enter/Return key.

Nothing is printed.  I see the printer in CUPS, but when trying to print a test page, I see "Waiting for printer to become available." and nothing prints.  With dmesg I see many instances similar to:

Code: [Select]
[ 2461.427239] kauditd_printk_skb: 31 callbacks suppressed
[ 2461.427241] audit: type=1400 audit(1772560341.526:20569): apparmor="DENIED" operation="open" class="file" profile="/usr/sbin/cupsd" name="/" pid=34256 comm="usb" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[ 2461.427244] audit: type=1400 audit(1772560341.526:20570): apparmor="DENIED" operation="open" class="file" profile="/usr/sbin/cupsd" name="/" pid=34256 comm="usb" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[ 2461.427245] audit: type=1400 audit(1772560341.526:20571): apparmor="DENIED" operation="open" class="file" profile="/usr/sbin/cupsd" name="/" pid=34256 comm="usb" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[ 2461.427246] audit: type=1400 audit(1772560341.526:20572): apparmor="DENIED" operation="open" class="file" profile="/usr/sbin/cupsd" name="/" pid=34256 comm="usb" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[ 2461.427247] audit: type=1400 audit(1772560341.526:20573): apparmor="DENIED" operation="open" class="file" profile="/usr/sbin/cupsd" name="/" pid=34256 comm="usb" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[ 2461.427248] audit: type=1400 audit(1772560341.526:20574): apparmor="DENIED" operation="open" class="file" profile="/usr/sbin/cupsd" name="/" pid=34256 comm="usb" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[ 2461.427248] audit: type=1400 audit(1772560341.526:20575): apparmor="DENIED" operation="open" class="file" profile="/usr/sbin/cupsd" name="/" pid=34256 comm="usb" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[ 2461.427249] audit: type=1400 audit(1772560341.526:20576): apparmor="DENIED" operation="open" class="file" profile="/usr/sbin/cupsd" name="/" pid=34256 comm="usb" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[ 2461.427253] audit: type=1400 audit(1772560341.526:20577): apparmor="DENIED" operation="open" class="file" profile="/usr/sbin/cupsd" name="/" pid=34256 comm="usb" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[ 2461.427254] audit: type=1400 audit(1772560341.526:20578): apparmor="DENIED" operation="open" class="file" profile="/usr/sbin/cupsd" name="/" pid=34256 comm="usb" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[ 2471.428075] kauditd_printk_skb: 69 callbacks suppressed
[ 2471.428077] audit: type=1400 audit(1772560351.527:20648): apparmor="DENIED" operation="capable" class="cap" profile="/usr/sbin/cupsd" pid=34256 comm="usb" capability=12  capname="net_admin"
[ 2471.428204] audit: type=1400 audit(1772560351.527:20649): apparmor="DENIED" operation="open" class="file" profile="/usr/sbin/cupsd" name="/" pid=34256 comm="usb" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[ 2471.428207] audit: type=1400 audit(1772560351.527:20650): apparmor="DENIED" operation="open" class="file" profile="/usr/sbin/cupsd" name="/" pid=34256 comm="usb" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[ 2471.428208] audit: type=1400 audit(1772560351.527:20651): apparmor="DENIED" operation="open" class="file" profile="/usr/sbin/cupsd" name="/" pid=34256 comm="usb" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[ 2471.428209] audit: type=1400 audit(1772560351.527:20652): apparmor="DENIED" operation="open" class="file" profile="/usr/sbin/cupsd" name="/" pid=34256 comm="usb" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[ 2471.428210] audit: type=1400 audit(1772560351.527:20653): apparmor="DENIED" operation="open" class="file" profile="/usr/sbin/cupsd" name="/" pid=34256 comm="usb" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[ 2471.428210] audit: type=1400 audit(1772560351.527:20654): apparmor="DENIED" operation="open" class="file" profile="/usr/sbin/cupsd" name="/" pid=34256 comm="usb" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[ 2471.428211] audit: type=1400 audit(1772560351.527:20655): apparmor="DENIED" operation="open" class="file" profile="/usr/sbin/cupsd" name="/" pid=34256 comm="usb" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[ 2471.428212] audit: type=1400 audit(1772560351.527:20656): apparmor="DENIED" operation="open" class="file" profile="/usr/sbin/cupsd" name="/" pid=34256 comm="usb" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[ 2471.428213] audit: type=1400 audit(1772560351.527:20657): apparmor="DENIED" operation="open" class="file" profile="/usr/sbin/cupsd" name="/" pid=34256 comm="usb" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[ 2476.428898] kauditd_printk_skb: 41 callbacks suppressed
[ 2476.428901] audit: type=1400 audit(1772560356.528:20699): apparmor="DENIED" operation="open" class="file" profile="/usr/sbin/cupsd" name="/" pid=34256 comm="usb" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[ 2476.428904] audit: type=1400 audit(1772560356.528:20700): apparmor="DENIED" operation="open" class="file" profile="/usr/sbin/cupsd" name="/" pid=34256 comm="usb" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[ 2476.428905] audit: type=1400 audit(1772560356.528:20701): apparmor="DENIED" operation="open" class="file" profile="/usr/sbin/cupsd" name="/" pid=34256 comm="usb" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[ 2476.428906] audit: type=1400 audit(1772560356.528:20702): apparmor="DENIED" operation="open" class="file" profile="/usr/sbin/cupsd" name="/" pid=34256 comm="usb" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[ 2476.428907] audit: type=1400 audit(1772560356.528:20703): apparmor="DENIED" operation="open" class="file" profile="/usr/sbin/cupsd" name="/" pid=34256 comm="usb" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[ 2476.428908] audit: type=1400 audit(1772560356.528:20704): apparmor="DENIED" operation="open" class="file" profile="/usr/sbin/cupsd" name="/" pid=34256 comm="usb" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[ 2476.428909] audit: type=1400 audit(1772560356.528:20705): apparmor="DENIED" operation="open" class="file" profile="/usr/sbin/cupsd" name="/" pid=34256 comm="usb" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[ 2476.428909] audit: type=1400 audit(1772560356.528:20706): apparmor="DENIED" operation="open" class="file" profile="/usr/sbin/cupsd" name="/" pid=34256 comm="usb" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[ 2476.428910] audit: type=1400 audit(1772560356.528:20707): apparmor="DENIED" operation="open" class="file" profile="/usr/sbin/cupsd" name="/" pid=34256 comm="usb" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[ 2476.428913] audit: type=1400 audit(1772560356.528:20708): apparmor="DENIED" operation="open" class="file" profile="/usr/sbin/cupsd" name="/" pid=34256 comm="usb" requested_mask="r" denied_mask="r" fsuid=0 ouid=0

Also, I see:

Code: [Select]
# journalctl -p err -b

[snip]

Mar 03 12:45:02 dell7010 systemd-udevd[537]: /etc/udev/rules.d/60-brother-libsane-type1-inst.rules:14 Invalid key 'SYSFS'.
Mar 03 12:46:01 dell7010 udev-configure-printer[34108]: no corresponding CUPS device found

Any help would be greatly appreciated.
« Last Edit: 2026/03/04, 00:34:54 by finotti »

Offline finotti

  • User
  • Posts: 337
Re: Lost Printer
« Reply #1 on: 2026/03/03, 19:40:47 »
Some more information.  In CUPS I see:

Code: [Select]
Description: HLL2300D
Location:
Driver:         Brother HL-L2300D for CUPS (grayscale, 2-sided printing)
Connection: usb://dev/usb/lp0
Defaults:       job-sheets=none, none media=iso_a4_210x297mm sides=one-sided

But /dev/usb/lp0 does not seem to exist, only lp1:

Code: [Select]
# ll /dev/usb/
Permissions  Size User Group Date Modified Name
crw-------  180,0 root root   3 Mar 12:11  hiddev0
crw-------  180,2 root root   3 Mar 12:11  hiddev2
crw-------  180,3 root root   3 Mar 12:11  hiddev3
crw-------  180,4 root root   3 Mar 12:11  hiddev4
crw-rw----  180,1 root lp     3 Mar 12:45  lp1


Offline towo

  • Administrator
  • User
  • *****
  • Posts: 3.144
Re: Lost Printer
« Reply #2 on: 2026/03/04, 00:01:58 »
apt purge apparmor => done
Ich gehe nicht zum Karneval, ich verleihe nur manchmal mein Gesicht.

Offline finotti

  • User
  • Posts: 337
Re: Lost Printer
« Reply #3 on: 2026/03/04, 00:34:23 »
apt purge apparmor => done

Done, indeed!  Thank you so much!