Cannot run any program: trace/breakpoint triggered, errors

I’m running deepin 15.8 and installed snapd via

Every program that I’ve installed through “sudo snap install [app-name]” can’t be opened.
When I try to run the programs, nothing happens.

I’ve installed multiple programs and get different errors when typing “snap run [app-name]”:

  1. Brave Browser:
    Trace / Breakpoint triggered

  2. Thunderbird:
    Unable to init server: Socket cannot be created: Permission denied
    Error: cannot open display: :0

  3. Bitwarden:
    ln: failed to create symbolic link ‘/home/user/snap/bitwarden/14/snap/bitwarden/14/Dokumente’: No such file or directory
    (Here, the folder Dokumente is in ‘/home/user/snap/bitwarden/14/’)

I’ve googled several hours but can’t find a solution for this problem. Does anybody know a solution?

What’s the output of snap version?

snap 2.30-5+b1
snapd 2.30-5+b1
series 16
deepin 15.8
kernel 4.15.0-29deepin-generic


$ cat /etc/os-release 
PRETTY_NAME="Deepin 15"

I can confirm something’s breaking. I don’t know exactly what. Here’s what I did, starting from a default install of deepin 15.8:

  1. Add ID_LIKE=debian to /etc/os-release, as it was missing that (so snapd didn’t know it’s a debian derivative)

  2. sudo apt install snapd pulls in apparmor, so I rebooted just in case

  3. sudo snap install core as debian had some weirdness wrt installing core together with other snaps (might be fixed though, haven’t checked).

  4. installed our good old testing snap, and it worked:

    john@test:~$ sudo snap install test-snapd-tools
    test-snapd-tools 1.0 from Canonical✓ installed
    john@test:~$ test-snapd-tools.echo hello
  5. installed the simplest x11 snap I know of, and it didn’t work:

    john@test:~$ sudo snap install xbill-xaw 
    xbill-xaw 2.1-xaw.1 from John Lenton (chipaca) installed
    john@test:~$ xbill-xaw 
    Error: Can't open display: :0

dmesg is full of apparmor DENIEDs but doesn’t seem relevant: they’re all

[  897.699934] audit: type=1400 audit(1543322376.741:2973): apparmor="DENIED" operation="create" profile="/usr/lib/ipsec/charon" pid=7646 comm="charon" family="unix" sock_type="dgram" protocol=0 requested_mask="create" denied_mask="create" addr=none

on repeat.


$ sudo SNAPD_DEBUG=1 /usr/lib/snapd/snapd
AppArmor status: apparmor is enabled and all features are available
2018/11/27 12:41:58.680257 cmd.go:203: DEBUG: restarting into "/snap/core/current/usr/lib/snapd/snapd"
AppArmor status: apparmor is enabled and all features are available
2018/11/27 12:41:58.701449 daemon.go:333: DEBUG: socket "/run/snapd.socket" was not activated; listening
2018/11/27 12:41:58.701542 daemon.go:333: DEBUG: socket "/run/snapd-snap.socket" was not activated; listening
2018/11/27 12:41:58.702039 daemon.go:369: started snapd/2.36.1 (series 16; classic) deepin/15.8 (amd64) linux/4.15.0-29deepin-generic.
2018/11/27 12:41:58.766655 main.go:141: DEBUG: activation done in 75ms

I’m having this exact issue, was anyone able to solve this?