← Back to issue list

snap pack returned non-zero exit status 20

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#2075311
Type
issue
State
open
Author
~nteodosio
Labels
Created
Updated
Closed

Current evaluation

User reports snap pack returning exit status 20 while trying to programmatically set snap version strings. Issue is 765 days old with no maintainer response or comments.

Suggested action: close not a bug

Reason: This is primarily a support request about configuring snap version strings, not a bug report. The user encountered opaque exit code 20 from `snap pack` without providing the actual error output needed for diagnosis. The issue has been inactive for over 2 years with no maintainer response or labels.

Impact: 20 Quick Win: 14.0 Staleness: 95 Complexity: 30 Confidence: 70 Support Request: 80

Issue body

Problem ------- See [3][4]. Command '['snap', 'pack', '--filename', 'llvm-chromium_llvmorg-19-init-14561-gecea8371+_amd64.snap', '--compression', 'xz', PosixPath('/build/llvm-chromium/prime'), PosixPath('/build/llvm-chromium')]' returned non-zero exit status 20. or Command '['snap', 'pack', '--filename', 'llvm-chromium_llvmorg-19-init-14561-gecea8371e_amd64.snap', '--compression', 'xz', PosixPath('/build/llvm-chromium/prime'), PosixPath('/build/llvm-chromium')]' returned non-zero exit status 20. Background ---------- I've been trying to do one simple thing, namely programatically setting the version of this snap[0]. But Snapcraft really wants me to surrender. :P Block [1]: Version string is "llvmorg-19-init-14561-gecea8371-3000" but must be <= 32 bytes. Fix 1: Filter it through 'head -c32'. Block [2]: Version string is "llvmorg-19-init-14561-gecea8371-" but must end with an ASCII alphanumeric or one of '+' or '~' (and not '-'). Fix 2: Filter it through 'head -c31' and add a + to it. Block [3]: Command '['snap', 'pack', '--filename', 'llvm-chromium_llvmorg-19-init-14561-gecea8371+_amd64.snap', '--compression', 'xz', PosixPath('/build/llvm-chromium/prime'), PosixPath('/build/llvm-chromium')]' returned non-zero exit status 20. Fix 3: So for some reason I thought this might be the + and substituted it with an e. Block [4]: Command '['snap', 'pack', '--filename', 'llvm-chromium_llvmorg-19-init-14561-gecea8371e_amd64.snap', '--compression', 'xz', PosixPath('/build/llvm-chromium/prime'), PosixPath('/build/llvm-chromium')]' returned non-zero exit status 20. [0] https://launchpad.net/~chromium-team/+snap/llvm-chromium [1] https://launchpadlibrarian.net/741481652/buildlog_snap_ubuntu_noble_amd64_llvm-chromium_BUILDING.txt.gz [2] https://launchpadlibrarian.net/741581930/buildlog_snap_ubuntu_noble_amd64_llvm-chromium_BUILDING.txt.gz [3] https://launchpadlibrarian.net/741697371/buildlog_snap_ubuntu_noble_amd64_llvm-chromium_BUILDING.txt.gz [4] https://launchpadlibrarian.net/741729763/buildlog_snap_ubuntu_noble_amd64_llvm-chromium_BUILDING.txt.gz

Evaluation history

Date Model Scores Action Summary
qwen3.6-35b-a3b-mtp-q6
Impact: 20
Quick Win: 14.0
Staleness: 95
Complexity: 30
Confidence: 70
Support Request: 80
close not a bug User reports snap pack returning exit status 20 while trying to programmatically set snap version strings. Issue is 765 days old with no maintainer response or comments.
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 40
Confidence: 85
Support Request: 75
needs triage External contributor reports snap pack failing with exit status 20 while programmatically setting a version string. No maintainer response, no labels, inactive for over 660 days.
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 20
Confidence: 90
Support Request: 90
close not a bug User reports snap pack failing with exit status 20 while programmatically setting version strings. The post details troubleshooting steps for version constraints. No maintainer response, no labels, inactive for over a year.
qwen3.6-35b-a3b-mtp-q6
Staleness: 95
Complexity: 40
Confidence: 85
Support Request: 60
close stale Reports snap pack failing with exit code 20 due to version string constraints during a build. No maintainer interaction or labels in over two years.
qwen3.6-35b-a3b-mtp-q6
Staleness: 95
Complexity: 40
Confidence: 55
Support Request: 65
close stale snap pack fails with exit code 20 during build due to version string constraints. Unlabelled, no maintainer response, inactive for over a year.

Update history

No update history recorded yet.

Related issues

No related issues found above the similarity threshold.