How to set proper locale on Ubuntu LXC?

carpler

New Member
Jul 19, 2023
9
1
3
Hi!
After installing a mediaserver (Serviio) in an Ubuntu LXC Container, I noticed that the software did not show files whose names contained non-standard characters.
Upon investigating the matter, I discovered that the locale is not set correctly. In fact, typing in the locale command, I get this:
Code:
LANG=
LANGUAGE=
LC_CTYPE="POSIX"
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=
The problem is quite similar to the one reported in this thread, but the solution proposed in the last post does not work in my case.
How do I solve this?
Is there a reason why an Ubuntu LXC Container doesn't have the locale set in a "normal" way?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!