can't start snaps from GUI terminal, works in VT/ssh

Bug #1617030 reported by Ben Romer on 2016-08-25
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snap-confine
Wishlist
Jamie Strandboge
snap-confine (Ubuntu)
Wishlist
Jamie Strandboge

Bug Description

I can't run any snaps from the GUI terminal, because ubuntu-core-launcher can't get to libraries that it needs. When run from Gnome terminal:

ben@zelan:~$ snap install hello
0 B / 64.00 KB [_______________________________________________________] 0.00 %

hello (stable) 2.10 from 'canonical' installed
ben@zelan:~$ hello
/usr/bin/ubuntu-core-launcher: error while loading shared libraries: libdl.so.2: cannot open shared object file: No such file or directory

Dmesg says:

[19542.607966] audit: type=1400 audit(1472150284.714:75): apparmor="DENIED" operation="open" profile="/usr/lib/snapd/snap-confine" name="/lib/x86_64-linux-gnu/libdl-2.23.so" pid=3825 comm="ubuntu-core-lau" requested_mask="r" denied_mask="r" fsuid=0 ouid=0

However, if I ssh locally, or I switch to a VT, it works:

ben@zelan:~$ ssh localhost
ben@localhost's password:
Welcome to Ubuntu 16.04.1 LTS (GNU/Linux 4.4.0-36-generic x86_64)

ben@zelan:~$ hello
Hello, world!

I've tried re-installing all of the packages I think are related to snaps (snapd, snap-confine, and ubuntu-core-launcher), but that did not change things.

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: snap-confine 1.0.38-0ubuntu0.16.04.9
ProcVersionSignature: Ubuntu 4.4.0-36.55-generic 4.4.16
Uname: Linux 4.4.0-36-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: amd64
CurrentDesktop: Unity
Date: Thu Aug 25 14:35:50 2016
EcryptfsInUse: Yes
InstallationDate: Installed on 2016-03-18 (159 days ago)
InstallationMedia: Ubuntu 15.10 "Wily Werewolf" - Release amd64 (20151021)
SourcePackage: snap-confine
UpgradeStatus: Upgraded to xenial on 2016-07-27 (29 days ago)

Ben Romer (bromer) wrote :
Zygmunt Krynicki (zyga) wrote :

Hi, can you please check with snap-confine 1.0.43 that is now available in xenial?

Changed in snap-confine (Ubuntu):
status: New → Incomplete
Ben Romer (bromer) wrote :

ben@zelan:~$ snap install hello
hello (stable) 2.10 from 'canonical' installed
ben@zelan:~$ hello
Hello, world!

Looks good! :)

Zygmunt Krynicki (zyga) on 2016-11-24
Changed in snap-confine (Ubuntu):
status: Incomplete → Fix Committed
importance: Undecided → Wishlist
assignee: nobody → Jamie Strandboge (jdstrand)
status: Fix Committed → Triaged
Changed in snap-confine:
status: New → Fix Committed
importance: Undecided → Wishlist
assignee: nobody → Jamie Strandboge (jdstrand)
milestone: none → 1.0.45
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers