GPG error during "sudo apt update" in "classic" snap

Gustavo Niemeyer gustavo at niemeyer.net
Mon Jan 23 12:44:41 UTC 2017


This smells like an apparmor denial, which shouldn't happen inside the
classic snap itself.

Can you reproduce the issue when using the stock kernel?



On Fri, Jan 20, 2017 at 6:46 PM, Jian LUO <jian.luo.cn at gmail.com> wrote:

> Hi list,
>
> as the topic suggested I got GPG error in classic snap exactly like Bug
> #1577926 [1] described. strace leads me to this syscall error:
> [pid  2650] execve("/usr/bin/apt-key", ["/usr/bin/apt-key", "--quiet",
> "--readonly", "verify", "--status-fd", "3", "/tmp/apt.sig.usElcl",
> "/tmp/apt.data.BATaU7"], [/* 32 vars */]) = -1 EPERM (Operation not
> permitted)
>
> Since I use a custom kernel, I assume some config options and/or patches
> are missing. Can someone please give a hint on the necessary kernel configs
> for classic to work?
>
> Here is some info on my device.
> root at localhost:~# uname -a
> Linux localhost.localdomain 4.4.24-rt33-xm21-i40-debug+ #1 PREEMPT RT Tue
> Nov 22 16:10:15 CET 2016 i686 i686 i686 GNU/Linux
> root at localhost:~# snap --version
> snap    2.20
> snapd   2.20
> series  16
> root at localhost:~# snap info classic
> name:      classic
> summary:   "Classic environment"
> publisher: canonical
> description: |
>   Classic environment
> commands:
>   - classic
>   - classic.create
>   - classic.reset
> tracking:  beta
> installed: 16.04 (17) 4kB devmode
> refreshed: 2016-10-05 10:18:36 +0200 CEST
> channels:
>   beta:    16.04 (17) 0B devmode
>   edge:    16.04 (17) 0B devmode
>
> Thanks a lot.
>
> Jian
>
> [1] https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1577926
>
> --
> Snapcraft mailing list
> Snapcraft at lists.snapcraft.io
> Modify settings or unsubscribe at: https://lists.ubuntu.com/
> mailman/listinfo/snapcraft
>
>


-- 

gustavo @ http://niemeyer.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/snapcraft/attachments/20170123/e85a3644/attachment.html>


More information about the Snapcraft mailing list