Thanks Jamie. My ubuntu-core was out of date, but updating doesn't
change the symlinks which my snap'd app sees:

michael@dev-xenial2:~/dev/todo.txt⟫ snap list
Name         Version     Developer
hello-world  6.0         canonical
todo         2.1         
ubuntu-core  16.04.0-24  canonical

michael@dev-xenial2:~/dev/todo.txt⟫ sudo snap refresh ubuntu-core
64.64 MB / 64.64 MB 
[============================================================================================]
 100.00 % 26.19 MB/s 

michael@dev-xenial2:~/dev/todo.txt⟫ snap list
Name         Version               Developer
hello-world  6.0                   canonical
todo         2.1                   
ubuntu-core  16.04+20160419.20-55  canonical

michael@dev-xenial2:~/dev/todo.txt⟫ rm -rf parts/testawk && sudo snap remove 
todo && snapcraft && sudo snap install todo_2.1_amd64.
snap
[-] Remove snap "todo" from the system
...
Snapped todo_2.1_amd64.snap
[/] Setup snap "todo" security profiles

michael@dev-xenial2:~/dev/todo.txt⟫ todo.testawk 
ls: cannot access '/usr/bin/gawk': No such file or directory
lrwxrwxrwx 1 root root     21 Apr 19 20:52 /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

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⟫ uname -a
Linux dev-xenial2 4.4.0-18-generic #34-Ubuntu SMP Wed Apr 6 14:01:02 UTC 2016 
x86_64 x86_64 x86_64 GNU/Linux

This is running on a (canonistack) xenial instance .

-- 
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