# Debian Bullseye Bug Remedy Script

**URL:** <https://klipper.discourse.group/t/debian-bullseye-bug-remedy-script/10435>\
**Category:** General Discussion\
**Created:** [September 12, 2023, 4:28am UTC](https://klipper.discourse.group/t/debian-bullseye-bug-remedy-script/10435 "2023-09-12T04:28:59Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Sineos](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/sineos/32/18_2.png) [@Sineos](https://klipper.discourse.group/u/Sineos)\
**Post date:** [September 14, 2023, 6:22am UTC](https://klipper.discourse.group/t/debian-bullseye-bug-remedy-script/10435/5 "2023-09-14T06:22:07Z")

</div>

I have turned the instructions [Debian Bullseye Bug causing Klipper to no longer find the printer board - #8](https://klipper.discourse.group/t/debian-bullseye-bug-causing-klipper-to-no-longer-find-the-printer-board/8231/8) into a shell script: [https://raw.githubusercontent.com/Sineos/useful\_bits/main/Linux/fix\_debian\_udev.sh](https://raw.githubusercontent.com/Sineos/useful_bits/main/Linux/fix_debian_udev.sh)

It will:

- Check if it is executed on Debian 11
- Check if the installed udev contains the buggy version string
- Check if run as root or under root rights
- Update the system to the latest versions via `apt update` and `apt upgrade`
- If Debian 11 AND buggy udev AND root is found, it will:
  - Check if the Debian 11 `backports repository` is already present → If not, download the repository signing key and install the repository
  - Install the fixed udev from the backports repository

Run it via

```auto
curl -sf -L https://raw.githubusercontent.com/Sineos/useful_bits/main/Linux/fix_debian_udev.sh | sudo bash

```

Above command will run the script as **root**   
Only do this if you trust me or if you have verified the script beforehand.

Any tests would be appreciated. I did test it on various different OS versions, like MainsailOS, Pi OS lite etc.

---

_[View the full topic](https://klipper.discourse.group/t/debian-bullseye-bug-remedy-script/10435)._
