Cannot locate the base snap: ubuntu-core on OpenSUSE

cannot locate the base snap: ubuntu-core: No such file or directory

I’m experiencing the above error whenever I try to run any snap on OpenSUSE. It’s similar to this other issue which was resolved by running sudo snap refresh core, but with a few differences: My /snap/core directory contains a broken symlink current that points to a nonexistent 2844, and running sudo snap refresh core returns snap "core" has no updates available.

snap version:

snap      2.27.6-1.1
snapd     2.27.6-1.1
series    16
opensuse  42.3
kernel    4.4.85-22-default

snap list:

snap      2.27.6-1.1
snapd     2.27.6-1.1
series    16
opensuse  42.3
kernel    4.4.85-22-default

/snap/*/*/meta/snap.yaml:

click to show
apps:
  chromium:
    command: command-chromium.wrapper
    plugs:
    - browser-sandbox
    - camera
    - cups-control
    - gsettings
    - home
    - mount-observe
    - network
    - network-manager
    - opengl
    - pulseaudio
    - screen-inhibit-control
    - unity7
    - upower-observe
    - x11
architectures:
- amd64
confinement: strict
description: |
  An open-source browser project that aims to build a safer, faster, and more
  stable way for all Internet users to experience the web.
grade: stable
name: chromium
plugs:
  browser-sandbox:
    allow-sandbox: true
    interface: browser-support
summary: Chromium web browser, open-source version of Chrome
version: 60.0.3112.101
apps:
  chromium:
    command: command-chromium.wrapper
    plugs:
    - browser-sandbox
    - camera
    - cups-control
    - gsettings
    - home
    - mount-observe
    - network
    - network-manager
    - opengl
    - pulseaudio
    - screen-inhibit-control
    - unity7
    - upower-observe
    - x11
architectures:
- amd64
confinement: strict
description: |
  An open-source browser project that aims to build a safer, faster, and more
  stable way for all Internet users to experience the web.
grade: stable
name: chromium
plugs:
  browser-sandbox:
    allow-sandbox: true
    interface: browser-support
summary: Chromium web browser, open-source version of Chrome
version: 60.0.3112.101
apps:
  claws-mail:
    command: command-claws-mail.wrapper
    plugs:
    - network
    - network-bind
    - unity7
    - home
    - gsettings
architectures:
- amd64
confinement: strict
description: Claws Mail (previously known as Sylpheed-Claws) is a lightweight and
  highly configurable email client and news reader based on the GTK+ GUI toolkit,
  it runs on the X Window System.
grade: stable
name: claws-mail-moon127
summary: Claws Mail
version: 3.14.0
apps:
  claws-mail:
    command: command-claws-mail.wrapper
    plugs:
    - network
    - network-bind
    - unity7
    - home
    - gsettings
architectures:
- amd64
confinement: strict
description: Claws Mail (previously known as Sylpheed-Claws) is a lightweight and
  highly configurable email client and news reader based on the GTK+ GUI toolkit,
  it runs on the X Window System.
grade: stable
name: claws-mail-moon127
summary: Claws Mail
version: 3.14.0
apps:
  gitter-desktop:
    command: command-gitter-desktop.wrapper
    plugs:
    - browser-support
    - gsettings
    - home
    - mount-observe
    - network
    - network-bind
    - opengl
    - pulseaudio
    - unity7
    - x11
architectures:
- amd64
confinement: strict
description: |
  Gitter is a chat and networking platform that helps to manage, grow
  and connect communities through messaging, content and discovery.
grade: stable
name: gitter-desktop
summary: Where developers come to talk
version: 3.1.0
apps:
  gitter-desktop:
    command: command-gitter-desktop.wrapper
    plugs:
    - browser-support
    - gsettings
    - home
    - mount-observe
    - network
    - network-bind
    - opengl
    - pulseaudio
    - unity7
    - x11
architectures:
- amd64
confinement: strict
description: |
  Gitter is a chat and networking platform that helps to manage, grow
  and connect communities through messaging, content and discovery.
grade: stable
name: gitter-desktop
summary: Where developers come to talk
version: 3.1.0
apps:
  keepassxc:
    command: command-keepassxc.wrapper
    plugs:
    - unity7
    - opengl
    - gsettings
    - home
    - network
    - network-bind
architectures:
- amd64
confinement: strict
description: |
  KeePassXC is an application for people with extremly high demands on secure
  personal data management. It has a light interface, is cross platform and
  published under the terms of the GNU General Public License.
grade: stable
name: keepassxc
summary: "community driven port of the windows application \u201CKeepass Password\
  \ Safe\u201D"
version: 2.1.3
apps:
  keepassxc:
    command: command-keepassxc.wrapper
    plugs:
    - unity7
    - x11
    - opengl
    - gsettings
    - home
    - network
    - network-bind
    - removable-media
architectures:
- amd64
confinement: strict
description: |
  KeePassXC is an application for people with extremely high demands on secure
  personal data management. It has a light interface, is cross platform and
  is published under the terms of the GNU General Public License.
grade: stable
name: keepassxc
summary: "community driven port of the windows application \u201CKeepass Password\
  \ Safe\u201D"
version: 2.2.0
apps:
  keepassxc:
    command: command-keepassxc.wrapper
    plugs:
    - unity7
    - opengl
    - gsettings
    - home
    - network
    - network-bind
architectures:
- amd64
confinement: strict
description: |
  KeePassXC is an application for people with extremly high demands on secure
  personal data management. It has a light interface, is cross platform and
  published under the terms of the GNU General Public License.
grade: stable
name: keepassxc
summary: "community driven port of the windows application \u201CKeepass Password\
  \ Safe\u201D"

I was able to resolve the problem by doing the following:

sudo snap uninstall core
sudo snap install core

Thanks for your report about this issue! It looks indeed similar to the issue you linked and the missing/broken “current” symlink in /snap/core/ seems to be the reason for the error message. It would be good to figure out why this link is broken. Could you please attach the output of: snap changes ? Maybe that gives us a clue.

Fwiw, https://github.com/snapcore/snapd/pull/3920 will improve the error message and avoid the misleading “ubuntu-core” reference.

Sorry, snap changes only shows one operation, uninstalling Chromium. I couldn’t find a way to make it display older history - is there one? I’ve rebooted my computer since running into and fixing this problem, and have only used snap for an installation or uninstallation once since.