[GH-ISSUE #211] Asciinema refuses to run due to wrong locale when installed with Snap on Ubuntu 16.04. #770

Closed
opened 2026-03-15 10:15:37 +03:00 by kerem · 7 comments
Owner

Originally created by @ivanperez-keera on GitHub (May 31, 2017).
Original GitHub issue: https://github.com/asciinema/asciinema/issues/211

Hi!

First of all, thanks for this software. It's cool!

I just installed the snap package on Ubuntu and I can't run it.

ivan@keera-studios-ubuntu:~$ snap run asciinema --help
asciinema needs a UTF-8 native locale to run. Check the output of `locale` command.

I know this may be a problem with my setup, or with snap but, if an extra step needs to be carried out, it would be great to document it too.

For info:

ivan@keera-studios-ubuntu:~$ locale
LANG=en_US.UTF-8
LANGUAGE=en
LC_CTYPE="en_GB.UTF-8"
LC_NUMERIC="en_GB.UTF-8"
LC_TIME="en_GB.UTF-8"
LC_COLLATE="en_GB.UTF-8"
LC_MONETARY="en_GB.UTF-8"
LC_MESSAGES="en_GB.UTF-8"
LC_PAPER="en_GB.UTF-8"
LC_NAME="en_GB.UTF-8"
LC_ADDRESS="en_GB.UTF-8"
LC_TELEPHONE="en_GB.UTF-8"
LC_MEASUREMENT="en_GB.UTF-8"
LC_IDENTIFICATION="en_GB.UTF-8"
LC_ALL=en_GB.UTF-8
ivan@keera-studios-ubuntu:~$ snap run locale 
error: cannot find current revision for snap locale: readlink /snap/locale/current: no such file or directory

Cheers!

Originally created by @ivanperez-keera on GitHub (May 31, 2017). Original GitHub issue: https://github.com/asciinema/asciinema/issues/211 Hi! First of all, thanks for this software. It's cool! I just installed the snap package on Ubuntu and I can't run it. ``` ivan@keera-studios-ubuntu:~$ snap run asciinema --help asciinema needs a UTF-8 native locale to run. Check the output of `locale` command. ``` I know this may be a problem with my setup, or with snap but, if an extra step needs to be carried out, it would be great to document it too. For info: ``` ivan@keera-studios-ubuntu:~$ locale LANG=en_US.UTF-8 LANGUAGE=en LC_CTYPE="en_GB.UTF-8" LC_NUMERIC="en_GB.UTF-8" LC_TIME="en_GB.UTF-8" LC_COLLATE="en_GB.UTF-8" LC_MONETARY="en_GB.UTF-8" LC_MESSAGES="en_GB.UTF-8" LC_PAPER="en_GB.UTF-8" LC_NAME="en_GB.UTF-8" LC_ADDRESS="en_GB.UTF-8" LC_TELEPHONE="en_GB.UTF-8" LC_MEASUREMENT="en_GB.UTF-8" LC_IDENTIFICATION="en_GB.UTF-8" LC_ALL=en_GB.UTF-8 ivan@keera-studios-ubuntu:~$ snap run locale error: cannot find current revision for snap locale: readlink /snap/locale/current: no such file or directory ``` Cheers!
kerem 2026-03-15 10:15:37 +03:00
Author
Owner

@ku1ik commented on GitHub (May 31, 2017):

Your locale looks good to me, this is probably snap related 🤔

<!-- gh-comment-id:305317407 --> @ku1ik commented on GitHub (May 31, 2017): Your locale looks good to me, this is probably snap related 🤔
Author
Owner

@ku1ik commented on GitHub (Jun 2, 2017):

@flexiondotorg do you have any idea what can be causing this? (I don't know snap at all)

<!-- gh-comment-id:305783210 --> @ku1ik commented on GitHub (Jun 2, 2017): @flexiondotorg do you have any idea what can be causing this? (I don't know snap at all)
Author
Owner

@flexiondotorg commented on GitHub (Jun 16, 2017):

I'll take a look

<!-- gh-comment-id:309051875 --> @flexiondotorg commented on GitHub (Jun 16, 2017): I'll take a look
Author
Owner

@ku1ik commented on GitHub (Apr 6, 2018):

Is this still a problem? Can we close it?

<!-- gh-comment-id:379320090 --> @ku1ik commented on GitHub (Apr 6, 2018): Is this still a problem? Can we close it?
Author
Owner

@ivanperez-keera commented on GitHub (Apr 7, 2018):

It works now, on two computers, with Ubuntu 17.10 and 16.04. I don't know what may have changed.

For reference, the current locale is:

LANG=en_US.UTF-8
LANGUAGE=en
LC_CTYPE="en_GB.UTF-8"
LC_NUMERIC="en_GB.UTF-8"
LC_TIME="en_GB.UTF-8"
LC_COLLATE="en_GB.UTF-8"
LC_MONETARY="en_GB.UTF-8"
LC_MESSAGES="en_GB.UTF-8"
LC_PAPER="en_GB.UTF-8"
LC_NAME="en_GB.UTF-8"
LC_ADDRESS="en_GB.UTF-8"
LC_TELEPHONE="en_GB.UTF-8"
LC_MEASUREMENT="en_GB.UTF-8"
LC_IDENTIFICATION="en_GB.UTF-8"
LC_ALL=en_GB.UTF-8

I'll close it and, if anyone wants to, they can re-open it.

<!-- gh-comment-id:379451399 --> @ivanperez-keera commented on GitHub (Apr 7, 2018): It works now, on two computers, with Ubuntu 17.10 and 16.04. I don't know what may have changed. For reference, the current locale is: ``` LANG=en_US.UTF-8 LANGUAGE=en LC_CTYPE="en_GB.UTF-8" LC_NUMERIC="en_GB.UTF-8" LC_TIME="en_GB.UTF-8" LC_COLLATE="en_GB.UTF-8" LC_MONETARY="en_GB.UTF-8" LC_MESSAGES="en_GB.UTF-8" LC_PAPER="en_GB.UTF-8" LC_NAME="en_GB.UTF-8" LC_ADDRESS="en_GB.UTF-8" LC_TELEPHONE="en_GB.UTF-8" LC_MEASUREMENT="en_GB.UTF-8" LC_IDENTIFICATION="en_GB.UTF-8" LC_ALL=en_GB.UTF-8 ``` I'll close it and, if anyone wants to, they can re-open it.
Author
Owner

@sgivan commented on GitHub (Sep 14, 2018):

This error is happening on a fairly standard CentOS 7 distro.

<!-- gh-comment-id:421307831 --> @sgivan commented on GitHub (Sep 14, 2018): This error is happening on a fairly standard CentOS 7 distro.
Author
Owner

@cmoulliard commented on GitHub (Oct 2, 2018):

I also get on Macos using iterm2 and zsh

asciinema
asciinema needs a UTF-8 native locale to run. Check the output of `locale` command.
locale
LANG="en_BE.UTF-8"
LC_COLLATE="C"
LC_CTYPE="C"
LC_MESSAGES="C"
LC_MONETARY="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_ALL="C"
<!-- gh-comment-id:426280597 --> @cmoulliard commented on GitHub (Oct 2, 2018): I also get on Macos using iterm2 and zsh ``` asciinema asciinema needs a UTF-8 native locale to run. Check the output of `locale` command. locale LANG="en_BE.UTF-8" LC_COLLATE="C" LC_CTYPE="C" LC_MESSAGES="C" LC_MONETARY="C" LC_NUMERIC="C" LC_TIME="C" LC_ALL="C" ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/asciinema#770
No description provided.