ubuntu-core image missing awk
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snap-confine |
Fix Released
|
Medium
|
Zygmunt Krynicki | ||
snapd (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
I'm trying to snap a tool which uses awk. Now I can try including awk in my snap directly, but 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/alternativ
michael@
#! /bin/bash
ls -l /usr/bin/{,g,m}awk
ls -l /etc/alternativ
/usr/bin/awk -h
/etc/alternativ
michael@
ls: cannot access '/usr/bin/gawk': No such file or directory
lrwxrwxrwx 1 root root 21 Mar 8 11:29 /usr/bin/awk -> /etc/alternativ
-rwxr-xr-x 1 root root 117768 Mar 24 2014 /usr/bin/mawk
lrwxrwxrwx 1 root root 13 Apr 12 14:18 /etc/alternativ
/snap/todo/
/snap/todo/
description: | updated |
Changed in snapd (Ubuntu): | |
status: | Incomplete → Confirmed |
importance: | Undecided → Medium |
Changed in snap-confine: | |
status: | New → In Progress |
assignee: | nobody → Zygmunt Krynicki (zyga) |
Changed in snap-confine: | |
milestone: | none → 1.0.34 |
status: | In Progress → Fix Committed |
Changed in snap-confine: | |
importance: | Undecided → Medium |
Changed in snap-confine: | |
status: | Fix Committed → Fix Released |
In 16.04+20160420. 05-01: es/awk
$ ls -l /usr/bin/awk
lrwxrwxrwx 1 root root 21 Apr 20 04:58 /usr/bin/awk -> /etc/alternativ
$ ls -l /etc/alternativ es/awk es/awk -> /usr/bin/mawk
lrwxrwxrwx 1 root root 13 Apr 20 04:58 /etc/alternativ
After running 'snap refresh ubuntu-core' and getting 16.04+20160419. 20-55: es/awk es/awk es/awk -> /usr/bin/mawk
$ ls -l /usr/bin/awk
lrwxrwxrwx 1 root root 21 Apr 19 20:52 /usr/bin/awk -> /etc/alternativ
$ ls -l /etc/alternativ
lrwxrwxrwx 1 root root 13 Apr 19 20:52 /etc/alternativ
It seems your image is out of date. What is the output of 'snap list'? What architecture/device is this for?