Modem Manager Problem

if i make this command i get error

error is:

error: couldnt get bus: Could not connect: Permission denied

i useUbuntu 24.04.1 LTS minmal install and laptop ise ThinkPAd X395

1 Like

I can reproduce this issue.

snap install modem-manager
sudo modem-manager.mmcli -L
error: couldn't get bus: Could not connect: Permission denied

In another terminal I see errors in the system log:

[Tue Dec 24 12:07:28 2024] audit: type=1326 audit(1735042044.237:1590): auid=1000 uid=0 gid=0 ses=2 subj=snap.modem-manager.mmcli pid=28081 comm="mmcli" exe="/snap/modem-manager/541/usr/bin/mmcli" sig=0 arch=c000003e syscall=314 compat=0 ip=0x7e7964d8388d code=0x50000
[Tue Dec 24 12:07:28 2024] audit: type=1400 audit(1735042044.237:1591): apparmor="DENIED" operation="connect" class="file" profile="snap.modem-manager.mmcli" name="/run/dbus/system_bus_socket" pid=28081 comm="mmcli" requested_mask="wr" denied_mask="wr" fsuid=0 ouid=0
$ ls -l /run/dbus/system_bus_socket
srw-rw-rw- 1 root root 0 Dec 11 16:10 /run/dbus/system_bus_socket

Looks like a bug to me.

What is the particular reason that made you install the snap ? There is a modemmanager deb (note that the name dropped the dash) pre-installed in the default install …

That’s better…

$sudo snap remove modem-manager
modem-manager removed
$ sudo apt install modemmanager
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
modemmanager is already the newest version (1.23.4-0ubuntu2).
0 to upgrade, 0 to newly install, 0 to remove and 2 not to upgrade.
$ sudo mmcli -L
No modems were found
1 Like