However, it works fine as root, possibly requiring adb kill-server the regular user adb server.
It is probably due to udev user change, as the error indicates and the person told me having done so before the error it seems.
The person wants me to solve the issue under his supervision, as may need root access it seems.
Maybe updating to Linux Mint 22 Cinnamon would help.
<details>
<summary>On the laptop of:</summary>
```
-----BEGIN PGP MESSAGE-----
hF4DTQa9Wom5MBgSAQdAcoqNBM6efvL7X7K8YJ1qUIXSFp5E1fgtPq/GsPInwhow
Uso77LBdfn19Cn0nhIaxp3Omf7Y/dKTydwWURFi34A2y3hOPntfJh9FQy5zyqIRe
1EsBCQIQMiBq5l4ho+kMPzVpxBTogoQwDLf1Y9sn2QslT+Cpn+lqWBMVd29PGNMY
bcQfQgcIGUgOr2KV6NJKXNCc7GMFDuWfNjV76/8=
=1Y3E
-----END PGP MESSAGE-----
```
</details>
However, it works fine as `root`, possibly requiring `adb kill-server` the regular user adb server.
It is probably due to udev user change, as the error indicates and the person told me having done so before the error it seems.
The person wants me to solve the issue under his supervision, as may need `root` access it seems.
Maybe updating to Linux Mint 22 Cinnamon would help.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
android-libbase android-libboringssl android-libcutils android-liblog
android-sdk-platform-tools-common
The following NEW packages will be installed:
adb android-libbase android-libboringssl android-libcutils android-liblog
android-sdk-platform-tools-common
0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
Need to get 998 kB of archives.
After this operation, 3,189 kB of additional disk space will be used.
Get:1 http://ftp.fr.debian.org/debian bookworm/main amd64 android-liblog amd64 1:29.0.6-28 [40.3 kB]
Get:2 http://ftp.fr.debian.org/debian bookworm/main amd64 android-libbase amd64 1:29.0.6-28 [46.3 kB]
Get:3 http://ftp.fr.debian.org/debian bookworm/main amd64 android-libboringssl amd64 13.0.0+r24-2 [676 kB]
Get:4 http://ftp.fr.debian.org/debian bookworm/main amd64 android-libcutils amd64 1:29.0.6-28 [34.8 kB]
Get:5 http://ftp.fr.debian.org/debian bookworm/main amd64 adb amd64 1:29.0.6-28 [194 kB]
Get:6 http://ftp.fr.debian.org/debian bookworm/main amd64 android-sdk-platform-tools-common all 28.0.2+9 [6,776 B]
Fetched 998 kB in 0s (5,124 kB/s)
Selecting previously unselected package android-liblog:amd64.
(Reading database ... 361374 files and directories currently installed.)
Preparing to unpack .../0-android-liblog_1%3a29.0.6-28_amd64.deb ...
Unpacking android-liblog:amd64 (1:29.0.6-28) ...
Selecting previously unselected package android-libbase:amd64.
Preparing to unpack .../1-android-libbase_1%3a29.0.6-28_amd64.deb ...
Unpacking android-libbase:amd64 (1:29.0.6-28) ...
Selecting previously unselected package android-libboringssl:amd64.
Preparing to unpack .../2-android-libboringssl_13.0.0+r24-2_amd64.deb ...
Unpacking android-libboringssl:amd64 (13.0.0+r24-2) ...
Selecting previously unselected package android-libcutils:amd64.
Preparing to unpack .../3-android-libcutils_1%3a29.0.6-28_amd64.deb ...
Unpacking android-libcutils:amd64 (1:29.0.6-28) ...
Selecting previously unselected package adb.
Preparing to unpack .../4-adb_1%3a29.0.6-28_amd64.deb ...
Unpacking adb (1:29.0.6-28) ...
Selecting previously unselected package android-sdk-platform-tools-common.
Preparing to unpack .../5-android-sdk-platform-tools-common_28.0.2+9_all.deb ...
Unpacking android-sdk-platform-tools-common (28.0.2+9) ...
Setting up android-sdk-platform-tools-common (28.0.2+9) ...
Setting up android-liblog:amd64 (1:29.0.6-28) ...
Setting up android-libboringssl:amd64 (13.0.0+r24-2) ...
Setting up android-libbase:amd64 (1:29.0.6-28) ...
Setting up android-libcutils:amd64 (1:29.0.6-28) ...
Setting up adb (1:29.0.6-28) ...
Processing triggers for man-db (2.11.2-2) ...
adb shell whoami
Output:
* daemon not running; starting now at tcp:5037
* daemon started successfully
error: insufficient permissions for device: user in plugdev group; are your udev rules wrong?
See [http://developer.android.com/tools/device.html] for more information
Same if execute this command again.
On my Debian 12 GNOME work laptop.
```bash
sudo apt install -y adb
```
<details>
<summary>Output:</summary>
```
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
android-libbase android-libboringssl android-libcutils android-liblog
android-sdk-platform-tools-common
The following NEW packages will be installed:
adb android-libbase android-libboringssl android-libcutils android-liblog
android-sdk-platform-tools-common
0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
Need to get 998 kB of archives.
After this operation, 3,189 kB of additional disk space will be used.
Get:1 http://ftp.fr.debian.org/debian bookworm/main amd64 android-liblog amd64 1:29.0.6-28 [40.3 kB]
Get:2 http://ftp.fr.debian.org/debian bookworm/main amd64 android-libbase amd64 1:29.0.6-28 [46.3 kB]
Get:3 http://ftp.fr.debian.org/debian bookworm/main amd64 android-libboringssl amd64 13.0.0+r24-2 [676 kB]
Get:4 http://ftp.fr.debian.org/debian bookworm/main amd64 android-libcutils amd64 1:29.0.6-28 [34.8 kB]
Get:5 http://ftp.fr.debian.org/debian bookworm/main amd64 adb amd64 1:29.0.6-28 [194 kB]
Get:6 http://ftp.fr.debian.org/debian bookworm/main amd64 android-sdk-platform-tools-common all 28.0.2+9 [6,776 B]
Fetched 998 kB in 0s (5,124 kB/s)
Selecting previously unselected package android-liblog:amd64.
(Reading database ... 361374 files and directories currently installed.)
Preparing to unpack .../0-android-liblog_1%3a29.0.6-28_amd64.deb ...
Unpacking android-liblog:amd64 (1:29.0.6-28) ...
Selecting previously unselected package android-libbase:amd64.
Preparing to unpack .../1-android-libbase_1%3a29.0.6-28_amd64.deb ...
Unpacking android-libbase:amd64 (1:29.0.6-28) ...
Selecting previously unselected package android-libboringssl:amd64.
Preparing to unpack .../2-android-libboringssl_13.0.0+r24-2_amd64.deb ...
Unpacking android-libboringssl:amd64 (13.0.0+r24-2) ...
Selecting previously unselected package android-libcutils:amd64.
Preparing to unpack .../3-android-libcutils_1%3a29.0.6-28_amd64.deb ...
Unpacking android-libcutils:amd64 (1:29.0.6-28) ...
Selecting previously unselected package adb.
Preparing to unpack .../4-adb_1%3a29.0.6-28_amd64.deb ...
Unpacking adb (1:29.0.6-28) ...
Selecting previously unselected package android-sdk-platform-tools-common.
Preparing to unpack .../5-android-sdk-platform-tools-common_28.0.2+9_all.deb ...
Unpacking android-sdk-platform-tools-common (28.0.2+9) ...
Setting up android-sdk-platform-tools-common (28.0.2+9) ...
Setting up android-liblog:amd64 (1:29.0.6-28) ...
Setting up android-libboringssl:amd64 (13.0.0+r24-2) ...
Setting up android-libbase:amd64 (1:29.0.6-28) ...
Setting up android-libcutils:amd64 (1:29.0.6-28) ...
Setting up adb (1:29.0.6-28) ...
Processing triggers for man-db (2.11.2-2) ...
```
</details>
```bash
adb shell whoami
```
<details>
<summary>Output:</summary>
```
* daemon not running; starting now at tcp:5037
* daemon started successfully
error: insufficient permissions for device: user in plugdev group; are your udev rules wrong?
See [http://developer.android.com/tools/device.html] for more information
```
</details>
Same if execute this command again.
On my Debian 12 GNOME work laptop.
With *Use USB for* *No data transfer* on Redmi Note 9 stock.
Once choose *File Transfer/Android Auto* it shows *Allow USB debugging?* prompt, it works fine.
Source: [the Stack Overflow answer 49216677](https://stackoverflow.com/a/49216677)
```bash
ls ~/.android/
```
```
adb.5037 adbkey adbkey.pub
```
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
On the laptop of:
However, it works fine as
root, possibly requiringadb kill-serverthe regular user adb server.It is probably due to udev user change, as the error indicates and the person told me having done so before the error it seems.
The person wants me to solve the issue under his supervision, as may need
rootaccess it seems.Maybe updating to Linux Mint 22 Cinnamon would help.
Output:
Output:
Same if execute this command again.
On my Debian 12 GNOME work laptop.
DuckDuckGo and Google search
"error: insufficient permissions for device: user in plugdev group; are your udev rules wrong?".With Use USB for No data transfer on Redmi Note 9 stock.
Once choose File Transfer/Android Auto it shows Allow USB debugging? prompt, it works fine.
Source: the Stack Overflow answer 49216677
ADB could mention to change this phone setting.