← Back to issue list

completion /usr/lib/snapd/etelpmoc.sh error

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1863961
Type
issue
State
open
Author
~casper-dcl
Labels
Created
Updated
Closed

Current evaluation

Snapd's etelpmoc.sh completion wrapper fails inside a snap: /usr/share/bash-completion/bash_completion is missing, so tab completion breaks for the gh CLI on Ubuntu 16.04/snapd 2.43.2. Open ~6.5 years, no maintainer activity; bug is in snapd, not snapcraft.

Suggested action: close stale

Reason: The issue is 2385 days old with zero comments, no labels, and no maintainer interaction, and it targets snapd 2.43.2 on Ubuntu 16.04, both long past end-of-life. The reporter's own test (sourcing /snap/gh/current/completion.sh works) shows the snap's completion script is fine, so the defect is in snapd's etelpmoc.sh wrapper, not in snapcraft, making the issue no longer actionable in this project.

Impact: 15 Quick Win: 9.0 Staleness: 95 Complexity: 40 Confidence: 75 Support Request: 15

Issue body

$ snap version snap 2.43.2 snapd 2.43.2 series 16 ubuntu 16.04 kernel 4.15.0-58-generic $ snap run --command=complete gh 9 9 3 1 " " 'gh ' gh "" /bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_GB.UTF-8) /usr/lib/snapd/etelpmoc.sh: line 71: /usr/share/bash-completion/bash_completion: No such file or directory /snap/gh/x4/completion.sh: line 16: _get_comp_words_by_ref: command not found default According to https://forum.snapcraft.io/t/debugging-tab-completion/4198 this is a bug: > If you see a different error from etelpmoc.sh, most like we broke something! So sorry. Please let us know; we’ll sort it. > Most often though you’ll see an error from your script. You should be able to debug as usual, here. Completion doesn't work at all. However manually running $ . /snap/gh/current/completion.sh works so there's nothing wrong with the completion script itself. $ snap run --shell gh $ cd $SNAP /snap/gh/x5$ /snap/gh/x5$ source /usr/share/bash-completion/bash_completion bash: /usr/share/bash-completion/bash_completion: No such file or directory Source repo with snapcraft.yml: https://github.com/casperdcl/cli/tree/snap

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 15
Quick Win: 9.0
Staleness: 95
Complexity: 40
Confidence: 75
Support Request: 15
close stale Snapd's etelpmoc.sh completion wrapper fails inside a snap: /usr/share/bash-completion/bash_completion is missing, so tab completion breaks for the gh CLI on Ubuntu 16.04/snapd 2.43.2. Open ~6.5 years, no maintainer activity; bug is in snapd, not snapcraft.
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 15
Confidence: 80
Support Request: 70
needs triage Reports snapd etelpmoc.sh completion error on Ubuntu 16.04 due to missing bash-completion file. Unlabeled, zero maintainer comments, inactive for over six years.
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 20
Confidence: 90
Support Request: 10
close stale snapd completion script fails with missing bash_completion path on Ubuntu 16.04. Reported over 6 years ago with zero maintainer interaction. Environment is EOL and outdated.
qwen3.6-35b-a3b-mtp-q6
Staleness: 98
Complexity: 25
Confidence: 90
Support Request: 75
close stale Reports bash-completion errors in snapd's etelpmoc.sh helper script. The issue is over 6 years old, lacks maintainer interaction, and targets an EOL Ubuntu version with a missing system package.
qwen3.6-35b-a3b-mtp-q6
Staleness: 95
Complexity: 15
Confidence: 90
Support Request: 85
close stale Reports bash completion failure in snapd's etelpmoc.sh due to missing bash-completion package on Ubuntu 16.04. Issue is over 6 years old, unlabelled, and relates to obsolete software versions.

Update history

No update history recorded yet.

Related issues

No related issues found above the similarity threshold.