ufw

Comment 3 for bug 1808463

Revision history for this message
Luke Walker (alexdee) wrote : Re: [Bug 1808463] Re: ERROR: problem running ufw-init Could not find /lib/ufw/ufw-init-functions (aborting)

I think it's related to LXC. I installed ufw from snap on my host without
issue.

>lxc exec elegant-eft /bin/bash
root@elegant-eft:~# snap remove ufw
ufw removed
root@elegant-eft:~# snap install ufw --beta
ufw (beta) 0.36rc from Canonical✓ installed
root@elegant-eft:~# ufw enable
ERROR: problem running ufw-init
Could not find /lib/ufw/ufw-init-functions (aborting)

root@elegant-eft:~# snap run --shell ufw
root@elegant-eft:/root# echo $SNAP
/snap/ufw/95
root@elegant-eft:/root# echo $SNAP_DATA
/var/snap/ufw/95

On Fri, Dec 14, 2018 at 7:16 AM Jamie Strandboge <email address hidden> wrote:

> As a datapoint, can you also:
>
> $ sudo snap remove ufw
> $ sudo snap install ufw --beta
>
> (beta has the previous snap revision that was in the store up until this
> week).
>
> ** Changed in: ufw
> Importance: Undecided => High
>
> ** Changed in: ufw
> Status: New => Incomplete
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1808463
>
> Title:
> ERROR: problem running ufw-init Could not find /lib/ufw/ufw-init-
> functions (aborting)
>
> Status in ufw:
> Incomplete
>
> Bug description:
> On fresh 18.04 lxc, I run the following series of commands
> 1. apt purge ufw
> 2. snap install ufw
> 3. /snap/bin/ufw enable
> ERROR: problem running ufw-init
> Could not find /lib/ufw/ufw-init-functions (aborting)
>
> >find / -name ufw-init-functions
> /var/snap/ufw/120/lib/ufw/ufw-init-functions
> /snap/ufw/120/lib/ufw/ufw-init-functions
>
> >ufw --version
> ufw 0.36rc
>
> >snap version
> snap 2.36.2
> snapd 2.36.2
> series 16
> ubuntu 18.04
> kernel 4.15.0-42-generic
>
> >snap info ufw
> name: ufw
> summary: ufw - Uncomplicated Firewall
> publisher: Canonical✓
> contact: https://bugs.launchpad.net/ufw/+filebug
> license: unset
> description: |
> ufw is a program for managing a netfilter firewall and aims to provide
> an easy to use experience
> for the user.
> commands:
> - ufw.conntrack
> - ufw.doc
> - ufw.init
> - ufw.ipset
> - ufw
> services:
> ufw.srv: oneshot, enabled, inactive
> snap-id: Jb8klqgs5djfejP5egB9Za8KYVK686Pe
> tracking: stable
> refresh-date: today at 02:18 UTC
> channels:
> stable: 0.36rc (120) 737kB -
> candidate: 0.36rc (120) 737kB -
> beta: 0.36rc (95) 733kB -
> edge: 0.36rc (200) 737kB -
> installed: 0.36rc (120) 737kB -
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ufw/+bug/1808463/+subscriptions
>