perl: warning: Setting locale failed. (I have a 'mixed' locale)

Bug #1455733 reported by corrado venturini on 2015-05-16
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Unity8 Desktop Preview in LXC
Undecided
Unassigned

Bug Description

When I installed my ubuntu vivid I specified language english and keybord italian so I have a 'mixed' locale.
Running unity8-lxc-setup I have error messages from perl and when I try Unity8 LXC I have a black screen with jost a mouse arrow.

corrado@corrado-HP-620-U8:~$ sudo unity8-lxc-setup --rebuild-all --redownload
#################### 100.0% 465.8 kBps DONE

open: No such file or directory
not using seed file /var/lib/lxc/unity8-lxc/ubuntu-next.iso
Read /var/lib/lxc/unity8-lxc/ubuntu-next.iso. Target 0.0% complete.
No relevent local data found - I will be downloading the whole file. If that's not what you want, CTRL-C out. You should specify the local file is the old version of the file to download with -i (you might have to decompress it with gzip -d first). Or perhaps you just have no data that helps download the file
downloading from http://cdimage.ubuntu.com/ubuntu-desktop-next/daily-live/current/wily-desktop-amd64.iso:
#################### 100.0% 822.6 kBps DONE

verifying download...checksum matches OK
used 0 local, fetched 1089454425
Unpacking the ISO image...
Configuring the Unity8 LXC...
dget: retrieving http://archive.ubuntu.com/ubuntu/pool/main/u/upstart/upstart-sysv_1.13.2-0ubuntu13_amd64.deb
--2015-05-16 08:37:07-- http://archive.ubuntu.com/ubuntu/pool/main/u/upstart/upstart-sysv_1.13.2-0ubuntu13_amd64.deb
Resolving archive.ubuntu.com (archive.ubuntu.com)... 91.189.91.13, 91.189.91.23, 91.189.92.201, ...
Connecting to archive.ubuntu.com (archive.ubuntu.com)|91.189.91.13|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 40284 (39K) [application/x-debian-package]
Saving to: ‘upstart-sysv_1.13.2-0ubuntu13_amd64.deb’

upstart-sysv_1.13.2-0ubuntu 100%[===========================================>] 39,34K 135KB/s in 0,3s

2015-05-16 08:37:08 (135 KB/s) - ‘upstart-sysv_1.13.2-0ubuntu13_amd64.deb’ saved [40284/40284]

Starting the container
Switching to upstart...
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  systemd-sysv ubuntu-standard
The following NEW packages will be installed:
  upstart-sysv
0 upgraded, 1 newly installed, 2 to remove and 0 not upgraded.
Need to get 0 B/40.3 kB of archives.
After this operation, 57.3 kB of additional disk space will be used.
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
 LANGUAGE = "en_US",
 LC_ALL = (unset),
 LC_TIME = "it_IT.UTF-8",
 LC_MONETARY = "it_IT.UTF-8",
 LC_ADDRESS = "it_IT.UTF-8",
 LC_TELEPHONE = "it_IT.UTF-8",
 LC_NAME = "it_IT.UTF-8",
 LC_MEASUREMENT = "it_IT.UTF-8",
 LC_IDENTIFICATION = "it_IT.UTF-8",
 LC_NUMERIC = "it_IT.UTF-8",
 LC_PAPER = "it_IT.UTF-8",
 LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
locale: Cannot set LC_ALL to default locale: No such file or directory
(Reading database ... 124954 files and directories currently installed.)
Removing ubuntu-standard (1.334) ...
Removing systemd-sysv (219-9ubuntu1) ...
Processing triggers for man-db (2.7.0.2-5) ...
Selecting previously unselected package upstart-sysv.
(Reading database ... 124934 files and directories currently installed.)
Preparing to unpack .../upstart-sysv_1.13.2-0ubuntu13_amd64.deb ...
Unpacking upstart-sysv (1.13.2-0ubuntu13) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up upstart-sysv (1.13.2-0ubuntu13) ...
corrado@corrado-HP-620-U8:~$

I created a new intallation of vivid all in italian
corrado@corrado-unity8:~$ locale
LANG=it_IT.UTF-8
LANGUAGE=it
LC_CTYPE="it_IT.UTF-8"
LC_NUMERIC="it_IT.UTF-8"
LC_TIME="it_IT.UTF-8"
LC_COLLATE="it_IT.UTF-8"
LC_MONETARY="it_IT.UTF-8"
LC_MESSAGES="it_IT.UTF-8"
LC_PAPER="it_IT.UTF-8"
LC_NAME="it_IT.UTF-8"
LC_ADDRESS="it_IT.UTF-8"
LC_TELEPHONE="it_IT.UTF-8"
LC_MEASUREMENT="it_IT.UTF-8"
LC_IDENTIFICATION="it_IT.UTF-8"
LC_ALL=
corrado@corrado-unity8:~$

reinstalled unity8-lxc and rerun sudo unity8-lxc-setup ... no problem with locale, installation ended successfully
reboot, select unity8-lxc ... long time ... no error messages ... system started ... BLUE screen without cursor.
power off to exit.
For doc I attach:
/var/log/lightdm
and
~/.cache/upstart/unity8.log

For doc I attach:
/var/log/lightdm
and
~/.cache/upstart/unity8.log

Christopher Townsend (townsend) wrote :

It seems your locale is still off. I think you need to set "LC_ALL=C" in order for this to work. Give that a try and see if it helps.

I'm unable to set "LC_ALL=C" may You help me?
thanks

corrado@corrado-unity8:~$ locale
LANG=it_IT.UTF-8
LANGUAGE=it
LC_CTYPE="it_IT.UTF-8"
LC_NUMERIC="it_IT.UTF-8"
LC_TIME="it_IT.UTF-8"
LC_COLLATE="it_IT.UTF-8"
LC_MONETARY="it_IT.UTF-8"
LC_MESSAGES="it_IT.UTF-8"
LC_PAPER="it_IT.UTF-8"
LC_NAME="it_IT.UTF-8"
LC_ADDRESS="it_IT.UTF-8"
LC_TELEPHONE="it_IT.UTF-8"
LC_MEASUREMENT="it_IT.UTF-8"
LC_IDENTIFICATION="it_IT.UTF-8"
LC_ALL=
corrado@corrado-unity8:~$ sudo update-locale LC_ALL=C
[sudo] password for corrado:
corrado@corrado-unity8:~$ locale
LANG=it_IT.UTF-8
LANGUAGE=it
LC_CTYPE="it_IT.UTF-8"
LC_NUMERIC="it_IT.UTF-8"
LC_TIME="it_IT.UTF-8"
LC_COLLATE="it_IT.UTF-8"
LC_MONETARY="it_IT.UTF-8"
LC_MESSAGES="it_IT.UTF-8"
LC_PAPER="it_IT.UTF-8"
LC_NAME="it_IT.UTF-8"
LC_ADDRESS="it_IT.UTF-8"
LC_TELEPHONE="it_IT.UTF-8"
LC_MEASUREMENT="it_IT.UTF-8"
LC_IDENTIFICATION="it_IT.UTF-8"
LC_ALL=
corrado@corrado-unity8:~$ sudo update-locale LC_ALL="C"
corrado@corrado-unity8:~$ locale
LANG=it_IT.UTF-8
LANGUAGE=it
LC_CTYPE="it_IT.UTF-8"
LC_NUMERIC="it_IT.UTF-8"
LC_TIME="it_IT.UTF-8"
LC_COLLATE="it_IT.UTF-8"
LC_MONETARY="it_IT.UTF-8"
LC_MESSAGES="it_IT.UTF-8"
LC_PAPER="it_IT.UTF-8"
LC_NAME="it_IT.UTF-8"
LC_ADDRESS="it_IT.UTF-8"
LC_TELEPHONE="it_IT.UTF-8"
LC_MEASUREMENT="it_IT.UTF-8"
LC_IDENTIFICATION="it_IT.UTF-8"
LC_ALL=
corrado@corrado-unity8:~$ sudo locale-gen LC_ALL=C
corrado@corrado-unity8:~$ locale
LANG=it_IT.UTF-8
LANGUAGE=it
LC_CTYPE="it_IT.UTF-8"
LC_NUMERIC="it_IT.UTF-8"
LC_TIME="it_IT.UTF-8"
LC_COLLATE="it_IT.UTF-8"
LC_MONETARY="it_IT.UTF-8"
LC_MESSAGES="it_IT.UTF-8"
LC_PAPER="it_IT.UTF-8"
LC_NAME="it_IT.UTF-8"
LC_ADDRESS="it_IT.UTF-8"
LC_TELEPHONE="it_IT.UTF-8"
LC_MEASUREMENT="it_IT.UTF-8"
LC_IDENTIFICATION="it_IT.UTF-8"
LC_ALL=
corrado@corrado-unity8:~$

Sebastien Bacher (seb128) wrote :

can you check if the "language-pack-it-base" package is installed? you might be able to change the locale by editing /etc/environment or ~/.pam_environment, also for testing you can do "export LC_ALL=C" and run a command then

after changing to LC_ALL=C (editing /etc/default/locale) the terminal does not start. so i changed to LC_ALL="en_US.UTF-8".

LANG="en_US.UTF-8"
LC_NUMERIC="it_IT.UTF-8"
LC_TIME="it_IT.UTF-8"
LC_MONETARY="it_IT.UTF-8"
LC_PAPER="it_IT.UTF-8"
LC_NAME="it_IT.UTF-8"
LC_ADDRESS="it_IT.UTF-8"
LC_TELEPHONE="it_IT.UTF-8"
LC_MEASUREMENT="it_IT.UTF-8"
LC_IDENTIFICATION="it_IT.UTF-8"
LC_ALL="en_US.UTF-8"

I also added deb http://ppa.launchpad.net/unity8-desktop-session-team/unity8-preview-lxc/ubuntu vivid main
to /etc/apt/sources.list
done apt-get update, apt-get upgrade and install unity8
but unity8-lxc-setup terminates with an error:
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
rerun apt-get update and unity8-lxc-setup ... same error

I attach the listing from:
apt-get update, apt-get upgrade and install unity8
unity8-lxc-setup

after apt-get update --fix-missing now unity8-lxc-setup --rebuild-all --redownload completed successfully. after reboot the unity8-lxc session started and seems working. I think this bug can be closed.
thanks for your help.

Christopher Townsend (townsend) wrote :

Great! Thanks for letting us know and thanks for keeping on trying to fix this. I was running out of ideas.

I'm closing Invalid meaning it's not a bug in unity8-lxc itself.

Changed in unity8-preview-lxc:
status: New → Invalid
MV (mvidal) wrote :

Same problem with a french 15.04 unity desktop ... but I'm not sure if the problem has been solved with "sudo apt-get update --fix-missing"

or

comment #5 "export LC_ALL=C"

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers