Brother Printer - Problem with non-existing dir '/lib/udev/rules.d/*.rules'

Hello,

I have been discovering Linux and openSUSE for a few days. Overall, my experience is excellent. But I’m having difficulty setting up my Brother printer (DCP-L2530DW) .

I have exactly the same problem as Chet :
https://forums.opensuse.org/t/problem-with-non-existing-dir-lib-udev-rules-d/165267
image

I checked for the existence of the “/usr/lib/udev/rules.d” directory and tried to create a Symlink but I got an error message :

My command line terminal level is really beginner so I must be doing something wrong.
Can you advise me ?

Thanks
San-A

My Brother is an HL5470DW connected via ethernet. After fresh 15.6 install last week, I used YaST2 to connect it as an IP printer just by following my nose through the various menu options. I had read on the internet that IP printing has evolved to be driverless and simple. That certainly seems to be the case at least for me.

Brother drivers are often 32 bit drivers, so you need to install the 32 bit:

zypper in -f glibc-32bit libusb-0_1-4-32bit libusb-1_0-0-32bit

2 Likes

Thanks Sauerland. I already installed this software then tried to install the printer again and I still got the same error message. Folder not found

Thank you mrmazda. Unfortunately my printer is on wifi and requires installing the drivers which are available on the manufacturer’s website.

I think it is permissions for the install - did you do sudo to install the drivers?
What to you get when you do this:

ls -la /usr/lib/udev/rules.d

> user@VM1:~> ls -la /usr/lib/udev/rules.d
> total 812
> drwxr-xr-x 2 root root 12288 Jan  3 08:44 .
> drwxr-xr-x 4 root root  4096 Jan  3 08:44 ..
> -rw-r--r-- 1 root root   572 May  9  2024 00-dont-del-part-nodes.rules
> -rw-r--r-- 1 root root  1499 May 13  2024 00-scsi-sg3_config.rules
> -rw-r--r-- 1 root root   321 Sep 18 12:06 01-md-raid-creating.rules
> -r--r--r-- 1 root root  7218 Oct 28 10:32 10-dm.rules
> -rw-r--r-- 1 root root  2424 Oct 28 10:32 11-dm-lvm.rules
> -rw-r--r-- 1 root root  6257 May  9  2024 11-dm-mpath.rules
> -rw-r--r-- 1 root root  1443 May  9  2024 11-dm-parts.rules
> lines deleted
> -rw-r--r-- 1 root root  5286 Dec 20 02:13 99-systemd.rules
> -rw-r--r-- 1 root root   459 Oct 24 08:04 99-vmware-scsi-udev.rules
> -rw-r--r-- 1 root root   355 Jun 12  2024 99-wakeup-from-idle.rules
> -rw-r--r-- 1 root root   299 May  9  2024 99-z-dm-mpath-late.rules
> -rw-r--r-- 1 root root   435 Dec 16 02:29 README
> user@VM1:~>

Post:
zypper se -si brother
I have installed the udev rpm from Brother and the udev rule is written to /etc/udev/rules.d/

i have something like that with 133 lines

user@si73:~> ls -la /usr/lib/udev/rules.d
total 704
drwxr-xr-x 1 root root 5392 30 déc. 16:00 .
drwxr-xr-x 1 root root 704 30 déc. 15:59 …
-rw-r–r-- 1 root root 572 9 mai 2024 00-dont-del-part-nodes.rules
-rw-r–r-- 1 root root 1499 13 mai 2024 00-scsi-sg3_config.rules
-rw-r–r-- 1 root root 321 18 sept. 19:06 01-md-raid-creating.rules

I used this procedure (first method)
https://en.opensuse.org/SDB:Brother_How_to_setup_a_Networked_Printer_Scanner

and I guess I did a Sudo :

~/Téléchargements> su
Mot de passe :slight_smile:
si73:/home/Téléchargements # bash linux-brprinter-installer-2.2.4-1 dcp-l2530dw
You are going to install following packages.
dcpl2530dwpdrv-4.0.0-1.i386.rpm
brscan4-0.4.11-1.x86_64.rpm
brscan-skey-0.3.2-0.x86_64.rpm
OK? [y/N] ->y

you need to type

sudo bash linux-brprinter-installer-2.2.4-1 dcp-l2530d

always the same message :roll_eyes:

I also tried to reinstall glibc-32bit libusb-0_1-4-32bit libusb-1_0-0-32bit but it didn’t solve the issue.

I’ve read your opening post, but I’m still not quite clear on the issue you’re having with getting your Brother printer working with openSUSE Leap. Is the printer connecting via USB, LAN, or wireless LAN?

The udev rules are only applicable to printers that connect via USB, so if you are using network connectivity we can disregard that step.

Did you install the requisite Brother packages for printing and scanning?

rpm -qa | egrep -i "lpr|wrapper|brscan"

What is reported by the following command?

lpstat -t

Have you installed this rpm from Brother?
So post the output, but please use LANG=C before the command to get an English output:

LANG=C zypper se -si brother
Loading repository data...
Reading installed packages...

S  | Name                    | Type    | Version | Arch   | Repository
---+-------------------------+---------+---------+--------+------------------
i+ | brother-udev-rule-type1 | package | 1.0.2-0 | noarch | (System Packages)

and now without:

zypper se -si brother
Repository-Daten werden geladen...
Installierte Pakete werden gelesen...

S  | Name                    | Type  | Version | Arch   | Repository
---+-------------------------+-------+---------+--------+---------------
i+ | brother-udev-rule-type1 | Paket | 1.0.2-0 | noarch | (Systempakete)

You see, one in English and one in German.

Also the command posted by deano_ferrari

First of all, thank you for your availability and your patience. I will try to give you more information.

My printer works over wifi.
When I want to print, I find it in the dialog box but I get a “the printer is in use” message without it printing.

image
image

image

image

Regarding the installation, I installed this RPM from the Brother site using the “driver install tool”
https://support.brother.com/g/b/downloadend.aspx?c=fr&lang=fr&prod=dcpl2530dw_eu&os=127&dlid=dlf006893_000&flang=4&type3=625&dlang=true

and I have the following packages installed on my machine


when I run the command zypper se -si brother, I have this result
image

and as I indicate in the initial post, I have an error message at the end of the installation.

the program is looking for a directory that seems to be at another address.
image

That’s why I tried Chet’s solution which seemed appropriate to me. But the SymLink does not work.

do you know why i can’t create this symbolic link?

  1. You can copy/paste from Terminal to the Forum.
  2. When I search on the Brother side for your Printer, I found as last rpm:
    Scanner settings file:

This package is for using the scanner connected via USB without administrator privileges.

Download it and install it, it will copy a file to /etc/udev/rules.d
https://support.brother.com/g/b/downloadlist.aspx?c=gb&lang=en&prod=dcpl2530dw_eu&os=127

PS:
You can not write outside your /home directory as User…
That is your problem when executing the ln command.
But I would prefer the solution with installing the rpm as mentioned before.

I downloaded this file and tried to install it and I have the same directory address problem.

antoine@si73:~/Téléchargements> LANG=C sudo rpm -ihv brother-udev-rule-type1-1.0.2-0.noarch.rpm
[sudo] password for root:
Preparing… ################################# [100%]
Updating / installing…
1:brother-udev-rule-type1-1.0.2-0 ################################# [100%]
ls: cannot access ‘/lib/udev/rules.d/*.rules’: No such file or directory

Post:
ls -al /lib/udev

Please use Code-Tags:
klick me for Code-Tags

The result is :

antoine@si73:~> LANG=C ls -al /lib/udev
ls: cannot access ‘/lib/udev’: No such file or directory

my version of opensuse is leap and not tumbleweed. so I just did a copy/paste from “Bash-Konsole”. I hope it suits

yes but please in a Code-Tag, see instructions in may last post.

Please post

ls -al /lib