The problem is that on WSL, it appears creating a raw socket is failing:

                sockfd = socket(AF_INET, SOCK_RAW, PF_INET);
                if (sockfd < 0) {
                        ebt_print_error("Problem getting a socket, "
                                        "you probably don't have the right "
                                        "permissions");
                        ret = -1;

That failure isn't going to happen on any 'actual' Linux system
(baremetal, vm, or container) - unless you don't have permissions, as
the error says.  When upgrading a package using apt/dpkg on 'actual'
Linux, you will have root access, and so will have permission to create
a raw socket.  So this is strictly a WSL problem.

Also, this is not a regression - the ebtables init script has behaved
this way since trusty (and before).  Since the ebtables project is
essentially dead upstream, the package is very rarely updated and so WSL
users simply haven't noticed this before because they haven't upgraded
ebtables before.

However, as it's a trivial fix to the ebtables init script, and presumably a 
difficult fix to WSL, please test with the package from this ppa:
https://launchpad.net/~ddstreet/+archive/ubuntu/lp1774120

I think that should fix the problem for you - it will still print out a
failure/warning message, but it should not break apt package upgrade.
Note that I can't test this myself since I have no access to WSL.


** Also affects: ebtables (Ubuntu Cosmic)
   Importance: Undecided
       Status: Confirmed

** Also affects: ebtables (Ubuntu Artful)
   Importance: Undecided
       Status: New

** Also affects: ebtables (Ubuntu Trusty)
   Importance: Undecided
       Status: New

** Also affects: ebtables (Ubuntu Xenial)
   Importance: Undecided
       Status: New

** Also affects: ebtables (Ubuntu Bionic)
   Importance: Undecided
       Status: New

** Changed in: ebtables (Ubuntu Trusty)
       Status: New => In Progress

** Changed in: ebtables (Ubuntu Xenial)
       Status: New => In Progress

** Changed in: ebtables (Ubuntu Artful)
       Status: New => In Progress

** Changed in: ebtables (Ubuntu Bionic)
       Status: New => In Progress

** Changed in: ebtables (Ubuntu Cosmic)
       Status: Confirmed => In Progress

** Changed in: ebtables (Ubuntu Cosmic)
     Assignee: (unassigned) => Dan Streetman (ddstreet)

** Changed in: ebtables (Ubuntu Bionic)
     Assignee: (unassigned) => Dan Streetman (ddstreet)

** Changed in: ebtables (Ubuntu Artful)
     Assignee: (unassigned) => Dan Streetman (ddstreet)

** Changed in: ebtables (Ubuntu Xenial)
     Assignee: (unassigned) => Dan Streetman (ddstreet)

** Changed in: ebtables (Ubuntu Trusty)
     Assignee: (unassigned) => Dan Streetman (ddstreet)

** Changed in: ebtables (Ubuntu Cosmic)
   Importance: Undecided => Low

** Changed in: ebtables (Ubuntu Bionic)
   Importance: Undecided => Low

** Changed in: ebtables (Ubuntu Artful)
   Importance: Undecided => Low

** Changed in: ebtables (Ubuntu Xenial)
   Importance: Undecided => Low

** Changed in: ebtables (Ubuntu Trusty)
   Importance: Undecided => Low

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1774120

Title:
  ebtables cannot be upgraded from 2.0.10.4-3.5ubuntu2 to
  2.0.10.4-3.5ubuntu2.18.04.1 on WSL

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ebtables/+bug/1774120/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to