Public bug reported:

I'm trying to snap a tool which uses awk. I checked the default apparmor
profile for any snap, and it seems to indicate that awk is installed and
enabled by the profile, but when checking (via a test snap),
/usr/bin/awk symlinks to /etc/alternatives/awk symlinks to /usr/bin/gawk
which doesn't exist (in ubuntu-core 16.04.0-24):

michael@dev-xenial2:~/dev/todo.txt⟫ cat /snap/todo/100001/testawk.sh 
#! /bin/bash

ls -l /usr/bin/{,g,m}awk
ls -l /etc/alternatives/awk
/usr/bin/awk -h
/etc/alternatives/awk -h

michael@dev-xenial2:~/dev/todo.txt⟫ todo.testawk 
ls: cannot access '/usr/bin/gawk': No such file or directory
lrwxrwxrwx 1 root root     21 Mar  8 11:29 /usr/bin/awk -> /etc/alternatives/awk
-rwxr-xr-x 1 root root 117768 Mar 24  2014 /usr/bin/mawk
lrwxrwxrwx 1 root root 13 Apr 12 14:18 /etc/alternatives/awk -> /usr/bin/gawk
/snap/todo/100001/testawk.sh: line 5: /usr/bin/awk: No such file or directory
/snap/todo/100001/testawk.sh: line 6: /etc/alternatives/awk: No such file or 
directory

** Affects: snapd (Ubuntu)
     Importance: Undecided
         Status: New

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

Title:
  ubuntu-core image missing awk

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to