Issue
In recent updates, Debian Bullseye (Debian 11) introduced a bug in udev that causes the command
ls /dev/serial/by-id/*
to fail.
To check if you are affected by the bug run:
apt-cache policy udev
an output like the following, denoting the version 247.3-7+deb11u2
probably means that you are also affected by the bug:
udev:
Installed: 247.3-7+deb11u2
Candidate: 247.3-7+deb11u2
Version table:
*** 247.3-7+deb11u2 500
500 http://deb.debian.org/debian bullseye/main arm64 Packages
100 /var/lib/dpkg/status
Solution
To remedy the situation, you can use following approach:
WARNING: It seems that certain (old?) Raspberry Pis, e.g. the RPi B+, might have an issue with the updated
udev
package and no longer boot correctly
- Execute
sudo apt edit-sources
- In the editor that opens (if asked choose
nano
) add following line at the end:deb http://ftp.debian.org/debian bullseye-backports main non-free contrib
- Save and close
- Run:
sudo apt update
- Closely monitor the output of the above command. On errors see the following post
- Run:
sudo apt install udev -t bullseye-backports
- Reboot