Skip to content

[Bug]: installing the snap for sublime text on an x86-64 desktop installs the aarch64 (ARM) binary #86

@biblicabeebli

Description

@biblicabeebli

What happened?

  • turned on computer
    • it was turned off ~10pm yesterday
    • almost definitely had sublime text open at the time, certainly used within the last 30 minutes before shutdown
    • turned on ~2pm the next day
  • opened my programs
  • sublime text wouldn't open

On the command line (as subl) it prints

cannot snap-exec: cannot exec "/snap/sublime-text/215/opt/sublime_text/sublime_text": exec format error

running file /snap/sublime-text/215/opt/sublime_text/sublime_text yields:

/snap/sublime-text/215/opt/sublime_text/sublime_text: ELF 64-bit LSB pie executable, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, for GNU/Linux 3.7.0, stripped

I found a post online with directions where I could specify the target architecture beforehand via

UBUNTU_STORE_ARCH=xxxxx snap download sublime-text

I have tried amd64 and x86-64, and x86_64 - it downloaded fine for amd64, but now because that is downloaded I don't seem able to test the x86-64s? I tried the various arm aarch options and it downloaded and installed the aarch version 215 (uh, 4200?) as the aarch binary.

What should have happened?

It should install the correct architecture.

Output of snap info $snap_name

name:      sublime-text
summary:   A sophisticated text editor for code, markup and prose.
publisher: Snapcrafters*
store-url: https://snapcraft.io/sublime-text
contact:   https://github.com/snapcrafters/sublime-text/issues
license:   Proprietary
description: |
  Sublime Text is a powerful multi-platform text editor with a clean, modern
  user interface.
  Bringing wide support for programming languages, extensions, syntax-based
  features and many other useful features alongside low resource usage,
  Sublime Text proves itself to be a very competent solution for a vast set
  of environments and applications.
  The software may be downloaded and evaluated for free, however a license
  must be purchased for continued use.
  
    **Authors**
  
  This snap is maintained by the Snapcrafters community, and is not
  necessarily endorsed or officially maintained by the upstream developers.
commands:
  - sublime-text.subl
snap-id:      2kOIsSRmQ7zjpIxzZDpoXaZOVejqaGOT
tracking:     latest/stable
refresh-date: today at 14:35 EDT
channels:
  latest/stable:    4200 2025-09-19 (215) 67MB classic
  latest/candidate: 4200 2025-09-19 (215) 67MB classic
  latest/beta:      ^                          
  latest/edge:      4200 2025-05-22 (212) 67MB classic
  dev/stable:       4199 2025-05-21 (208) 67MB classic
  dev/candidate:    4199 2025-05-21 (208) 67MB classic
  dev/beta:         ^                          
  dev/edge:         ^                          
installed:          4200            (215) 67MB classic

Output of snap connections $snap_name

(it's empty)

Output of snap version

(I'm on ubuntu 24.04

snap    2.71
snapd   2.71
series  16
ubuntu  24.04
kernel  6.14.0-29-generic

Relevant log output

N/A

Teminal output of app

cannot snap-exec: cannot exec "/snap/sublime-text/215/opt/sublime_text/sublime_text": exec format error

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions