Warning dialog about non-working Bluetooth after upgrading to 20.04.2

Hi there,

I finally upgraded form 18.04 LTS to 20.04.2 LTS, and although it appears to have been mostly successful, I am always greeted with an error dialog about Bluetooth network being unavailable:

Failed to apply network settings:

g-dbus-error-quark: GDBus.Error:org.freedesktop.DBus.Error.Failed: Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/blueman/main/DbusService.py", line 124, in _handle_method_call
    ok(method(*args))
  File "/usr/lib/python3/dist-packages/blueman/plugins/mechanism/Network.py", line 57, in _reload_network
    nc.apply_settings()
  File "/usr/lib/python3/dist-packages/blueman/main/NetConf.py", line 384, in apply_settings
    self.del_ipt_rules()
  File "/usr/lib/python3/dist-packages/blueman/main/NetConf.py", line 329, in del_ipt_rules
    call(["/sbin/iptables", "-t", table, "-D", chain] + rule.split(" "))
  File "/usr/lib/python3.8/subprocess.py", line 340, in call
    with Popen(*popenargs, **kwargs) as p:
  File "/usr/lib/python3.8/subprocess.py", line 858, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.8/subprocess.py", line 1704, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No existe el archivo o el directorio: '/sbin/iptables'
 (0)

I am not sure where to start digging, since this error never appeared before.

any insight?

It is known problem. You can use my solution from AskUbuntu:

You miss the /sbin/iptables executable. On fresh installation of 20.04 LTS it is a symlink which is provided or created by iptables package installer. The full link chain is /sbin/iptables/etc/alternatives/iptables/usr/sbin/iptables-legacy.

So you need to reinstall the iptables package by

sudo apt-get install --reinstall iptables

and then restart BlueMan or reboot.

1 Like

Hi Norbert_X,

unfortunately it doesn't work. Reinstalling appears successful, however there's no

iptables

within /sbin/.

However, in /etc/alternatives, there's

iptables -> /usr/sbin/iptables-legacy

Still, the warning dialog does reoccur on boot.
Any insight?

What is the output of

ls -al /sbin/iptables /etc/alternatives/iptables /usr/sbin/iptables-legacy

on your machine?

Hello Norbert_X, sorry for the delay, I missed the email alert.

The output:
ls: no se puede acceder a '/sbin/iptables': No existe el archivo o el directorio
lrwxrwxrwx 1 root root 25 jun 28 21:20 /etc/alternatives/iptables -> /usr/sbin/iptables-legacy
lrwxrwxrwx 1 root root 20 feb 28 2020 /usr/sbin/iptables-legacy -> xtables-legacy-multi

You have to try manual symlink creation with

sudo ln -sf /etc/alternatives/iptables /sbin/iptables