snapcraft crashes whenever I try to run it
Metadata
Current evaluation
Closed after the apt-installed Snapcraft package failed; the reporter was directed to remove it and use `snap install snapcraft` instead.
Resolution: closed not a bug
Reason: The maintainer identified the failure as specific to the unsupported apt-installed package and recommended `apt remove snapcraft` followed by `snap install snapcraft`. No source fix was reported because the reporter did not confirm failure with the snap package.
Evaluated by: mr-cal-bot
No scores available.
Issue body
Following the instructions here https://snapcraft.io/docs/installing-snap-on-linux-mint and here https://docs.ubuntu.com/core/en/image/custom-images, I tried to install snapcraft on Linux Mint 19.2 and run "snapcraft login", but I got the following output:
Sorry, an error occurred in Snapcraft:
Traceback (most recent call last):
File "/usr/bin/snapcraft", line 11, in <module>
load_entry_point('snapcraft==2.43.1+18.4', 'console_scripts', 'snapcraft')()
File "/usr/lib/python3/dist-packages/click/core.py", line 764, in __call__
return self.main(*args, **kwargs)
File "/usr/lib/python3/dist-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/usr/lib/python3/dist-packages/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python3/dist-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python3/dist-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/usr/lib/python3/dist-packages/snapcraft/cli/store.py", line 434, in login
store = storeapi.StoreClient()
File "/usr/lib/python3/dist-packages/snapcraft/storeapi/_store_client.py", line 31, in __init__
self.sso = SSOClient(self.conf)
File "/usr/lib/python3/dist-packages/snapcraft/storeapi/_sso_client.py", line 19, in __init__
super().__init__(
File "/usr/lib/python3/dist-packages/snapcraft/storeapi/_client.py", line 42, in __init__
self._snapcraft_headers = {"User-Agent": _agent.get_user_agent()}
File "/usr/lib/python3/dist-packages/snapcraft/storeapi/_agent.py", line 39, in get_user_agent
"/".join(platform.dist()[0:2]), # i.e. Ubuntu/16.04
AttributeError: module 'platform' has no attribute 'dist'
We would appreciate it if you created a bug report at
https://launchpad.net/snapcraft/+filebug with the above text included.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed not a bug | Closed after the apt-installed Snapcraft package failed; the reporter was directed to remove it and use `snap install snapcraft` instead. | |
| stealth/space-bunny-alpha | — | closed not a bug | Closed as an apt installation issue; the maintainer advised removing the apt package and installing Snapcraft as a snap. No failure with the recommended snap installation was confirmed. | |
| stealth/space-bunny-alpha | — | closed resolved | The platform.dist crash was fixed by merged PR #2931 (0c425ae9b), which improved store platform detection; the report itself was later abandoned. | |
| qwen/qwen3.6-35b-a3b | — | — | Abandoned and closed without resolution or comments. The report details a snapcraft crash on Linux Mint caused by a missing platform.dist attribute during login. No fix was provided. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed. Resolved by replacing the deprecated platform.dist() call with a supported platform API to fix the AttributeError crash on newer Python versions. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without comments. The crash results from Python 3.12 removing the deprecated platform.dist() function. No resolution details provided in the thread. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed without resolution. The crash resulted from Python 3.12 removing platform.dist(), a compatibility issue resolved in subsequent snapcraft releases. |
Update history
| Date | Change |
|---|---|
| created |
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1795171 snapcraft fail to find built executable under prime $SNAP | snapcraft (launchpad) | closed | Launchpad #1795171: crash was user error — app command used literal $SNAP/bin/ags. Maintainer @ogra gave the correct YAML (command: bin/ags), reporter confirmed; report later expired for 60 days inactivity. |