← Back to issue list

snap-based programs complain about locale, permission

View original Launchpad issue

Metadata

Project
snapcraft
Number
#1982401
Type
issue
State
open
Author
~mardy
Labels
Created
2022-07-20 16:16:15.517367+00:00
Updated
2022-10-03 19:26:55.393150+00:00
Closed

Current evaluation

Snap-based programs incorrectly report locale and .bashrc permission errors. The report has zero comments, no labels, and has been inactive for over a year. It needs triage to determine if snapd environment handling or package configuration is at fault.

Suggested action: close stale

Reason: The issue is nearly four years old with no maintainer interaction or updates. Given the extreme age and lack of activity, the reported behavior is likely resolved in current versions or the environment is no longer relevant, making it safe to close as stale.

Staleness: 95 Complexity: 30 Confidence: 85 Support Request: 10

Issue body

This is a followup to Launchpad Bug#1959845, with more information about the bug. I am running Ubuntu 22.04 LTS on x86-64 with current patches. I have snapd 2.55.5+22.04. When I run the shell command "chromium --version" and attempt to debug the resulting situation a bit, I see the following: $ chromium --version /bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf8) /bin/bash: /home/eggert/.bashrc: Permission denied Chromium 103.0.5060.114 snap $ echo $SHELL /bin/bash $ ls -l $HOME/.bashrc -r--r--r-- 1 eggert eggert 420 Apr 25 2002 /home/eggert/.bashrc $ env | grep en_US LC_ALL=en_US.utf8 $ locale LANG=C LANGUAGE= LC_CTYPE="en_US.utf8" LC_NUMERIC="en_US.utf8" LC_TIME="en_US.utf8" LC_COLLATE="en_US.utf8" LC_MONETARY="en_US.utf8" LC_MESSAGES="en_US.utf8" LC_PAPER="en_US.utf8" LC_NAME="en_US.utf8" LC_ADDRESS="en_US.utf8" LC_TELEPHONE="en_US.utf8" LC_MEASUREMENT="en_US.utf8" LC_IDENTIFICATION="en_US.utf8" LC_ALL=en_US.utf8 $ locale -a | grep en_US en_US.iso885915 en_US.utf8 $ LC_ALL=C chromium --version /bin/bash: /home/eggert/.bashrc: Permission denied Chromium 103.0.5060.114 snap As you can see, I get some bogus diagnostics about the locale and the .bashrc permissions. My locale is fine - though evidently snap packages can't use it. I do have a .bashrc file. This file is not executable and it shouldn't be executable as it's not intended to be a standalone command. It has worked just fine for decades, when I log in via Bash or run Bash in the usual way. I reported a similar problem with Firefox in Launchpad Bug#1959845, and the response was "this is a bug with the snap packaging of Firefox, not with snapd. Please file a bug with Mozilla upstream". Although I did so here: https://bugzilla.mozilla.org/show_bug.cgi?id=1753320 their response was that it wasn't a Firefox bug. And now that I see a similar problem with Chromium it appears that this is a snapd issue, not an issue with individual programs.

Evaluation history

Date Model Scores Action Summary
2026-06-19 04:48:36.073073+00:00 qwen3.6-35b-a3b-mtp-q6
Staleness: 95
Complexity: 30
Confidence: 85
Support Request: 10
close stale Snap-based programs incorrectly report locale and .bashrc permission errors. The report has zero comments, no labels, and has been inactive for over a year. It needs triage to determine if snapd environment handling or package configuration is at fault.
2026-06-19 04:45:15.738854+00:00 pending