I am trying to remove a snap package, leagueoflegends, but i am getting this error:
error: cannot perform the following tasks:
- Disconnect leagueoflegends:desktop-legacy from core:desktop-legacy (internal error: connection "leagueoflegends:desktop-legacy core:desktop-legacy" not found in state)
- Disconnect leagueoflegends:wine-4-staging from wine-platform-4-staging:wine-4-staging (cannot setup apparmor for snap "leagueoflegends": cannot load apparmor profiles: exit status 10
apparmor_parser output:
)
- Disconnect leagueoflegends:wine-4-staging from wine-platform-4-staging:wine-4-staging (cannot load apparmor profiles: exit status 10
apparmor_parser output:
)
- Disconnect leagueoflegends:home from core:home (cannot setup apparmor for snap "leagueoflegends": cannot load apparmor profiles: exit status 10
apparmor_parser output:
)
- Disconnect leagueoflegends:home from core:home (cannot load apparmor profiles: exit status 10
apparmor_parser output:
)
- Disconnect leagueoflegends:icon-themes from gtk-common-themes:icon-themes (cannot setup apparmor for snap "leagueoflegends": cannot load apparmor profiles: exit status 10
apparmor_parser output:
)
- Disconnect leagueoflegends:icon-themes from gtk-common-themes:icon-themes (cannot load apparmor profiles: exit status 10
apparmor_parser output:
)
I have attempted to remove the snap package from all the folders its stored at except for /snap/leagueoflegends, where I am getting write-protection error: "cannot remove ... "Read-only file system".
You may have created a problem if you have deleted files as indicated.
The "normal" way to handle snap packages is via the snap utility. I have included help text and examples below to get you an impression what to use.
How exactly to get out of the situation you have created is harder to tell.
I suggest you do
snap list
to find out the actual name of the package you wish to remove, and then trysudo snap remove packagename
- for that package.If that displays errors, then you need to deal with those in a sane manner.
Some tips on "snap" usage...
Note that at least "core" needs to be there for snap to function... I'm not as sure about the others here, they might be required too.
... installing e.g. gimp or vlc adds a single line each.