Public bug reported:
I seem to have managed to create a snap that contains a circular
symlink, and it totally breaks snapd, it cannot be removed, or upgraded.
Here's an example of what happens:
$ snap install nikola*snap
Name Version Rev Developer Notes
nikola 7.7.9 x1 -
ralsina@clakker:~/canonical/nikola-snap$ snap remove nikola*snap
error: cannot remove "nikola_7.7.9_amd64.snap": cannot find snap
"nikola_7.7.9_amd64.snap"
ralsina@clakker:~/canonical/nikola-snap$ snap remove nikola
error: cannot perform the following tasks:
- Remove data for snap "nikola" (lstat
/home/ralsina/snap/nikola/x1/snap/nikola/x1/snap/[...]/nikola/x1/snap/nikola/x1/snap/nikola/x1/snap/nikola/x1/snap:
file name too long)
I have no idea how I caused that, here's the snapcraft.yaml
name: nikola
version: 7.7.9
summary: A static website generator
description: A static website generator
confinement: devmode
apps:
nikola:
command: usr/bin/nikola
parts:
nikola:
plugin: python3
source: git://github.com/getnikola/nikola.git
requirements: requirements-extras.txt
build-packages: [libxml2-dev, libxslt1-dev, zlib1g-dev, cython3,
libfontconfig1-dev, libfreetype6-dev, libice-dev, libjbig-dev, liblcms2-dev,
liblzma-dev, libpng12-dev, libjpeg8-dev, gcc]
I can attach the snap if needed but it's rather large (65MB)
** Affects: snapd (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1592936
Title:
Circular symlinks break snapd
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1592936/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs