blueman looking for /sbin/iptables

Bug #1898362 reported by Dominador A. Nobleza Jr.
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
blueman (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

FAILED TO APPLY NETWORK SETTINGS
You might not be able to connect to the Bluetooth network via this machine

\/ Exception
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 56, 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 854, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.8/subprocess.py", line 1702, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: '/sbin/iptables'
 (0)

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: ubuntu-release-upgrader-core 1:20.04.25
ProcVersionSignature: Ubuntu 5.4.0-48.52-generic 5.4.60
Uname: Linux 5.4.0-48-generic x86_64
ApportVersion: 2.20.11-0ubuntu27.9
Architecture: amd64
CasperMD5CheckResult: skip
CrashDB: ubuntu
CurrentDesktop: MATE
Date: Sat Oct 3 21:05:42 2020
InstallationDate: Installed on 2020-09-17 (16 days ago)
InstallationMedia: Ubuntu-MATE 18.04.5 LTS "Bionic Beaver" - Release amd64 (20200806.1)
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=en_PH:en
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_PH.UTF-8
 SHELL=/bin/bash
SourcePackage: ubuntu-release-upgrader
Symptom: ubuntu-release-upgrader
UpgradeStatus: Upgraded to focal on 2020-10-01 (2 days ago)
VarLogDistupgradeTermlog:

Revision history for this message
Dominador A. Nobleza Jr. (domzki06) wrote :
affects: ubuntu → ubuntu-release-upgrader (Ubuntu)
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ubuntu-release-upgrader (Ubuntu):
status: New → Confirmed
Revision history for this message
Ken Sharp (kennybobs) wrote (last edit ):

On upgrade from Bionic to Focal, this now pops up at every desktop log in.

/sbin/iptables indeed does not exist. iptables has been moved to /usr/sbin/iptables for some reason. This has obviously been hardcoded into Blueman and really should have been spotted during testing.

$ sudo ln -s /usr/sbin/iptables /sbin/iptables
should be a workaround.

A lot of people have suggested
$ sudo apt-get install --reinstall iptables
but this makes no difference for me.

affects: ubuntu-release-upgrader (Ubuntu) → blueman (Ubuntu)
Ken Sharp (kennybobs)
summary: - bluetooth not connecting to bluetooth headset
+ blueman looking for /sbin/iptables
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.