You are not logged in.
Pages: 1
Topic closed
Hi!
I have run arch for a couple of months now an it works great. There is however a little cosmetic flaw I can't get around and I have been looking in forums for a way to fix this. The problem is that for some reason I get errors when I run some commands or do different things in the command line. For example if i run the following command
sudo ddclient
i get the following output
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_US.utf8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
The command still works but it does not look very well. I could live with this but there are certain situations where it is more problematic. For example if I run
sudo pacman -S wesn
and press tab once I get the following
sudo pacman -S wesn-bash: warning: setlocale: LC_CTYPE: cannot change locale (en_US.utf8)
oth
and can still complete the package name for installation but its harder to read. I got bash-completion installed. But in the end there seems to be a problem with my locale settings. I've tried running locale-gen with various results. Sometimes the computer stops responding or the ssh connection is closed.
I tried to reinstall glibc with the result of the computer stopped responding and I was unable to boot it again. I fixed it again from a live cd reinstalling the whole base group. There was an error when installing glibc about not being able to create locales.
If I run 'locale -a' I get the following
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_COLLATE to default locale: No such file or directory
C
POSIX
Anybody know how to fix this problem?
/etc/locale.gen
en_US.UTF-8 UTF-8
en_US ISO-8859-1
/etc/rc.conf
# -----------------------------------------------------------------------
# LOCALIZATION
# -----------------------------------------------------------------------
#
# LOCALE: available languages can be listed with the 'locale -a' command
# HARDWARECLOCK: set to "UTC" or "localtime"
# USEDIRECTISA: use direct I/O requests instead of /dev/rtc for hwclock
# TIMEZONE: timezones are found in /usr/share/zoneinfo
# KEYMAP: keymaps are found in /usr/share/kbd/keymaps
# CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
# CONSOLEMAP: found in /usr/share/kbd/consoletrans
# USECOLOR: use ANSI color sequences in startup messages
#
LOCALE="en_US.utf8"
HARDWARECLOCK="UTC"
USEDIRECTISA="no"
TIMEZONE="Europe/Stockholm"
KEYMAP="dvorak"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"
# -----------------------------------------------------------------------
# HARDWARE
# -----------------------------------------------------------------------
#
# MOD_AUTOLOAD: Allow autoloading of modules at boot and when needed
# MOD_BLACKLIST: Prevent udev from loading these modules
# MODULES: Modules to load at boot-up. Prefix with a ! to blacklist.
#
# NOTE: Use of 'MOD_BLACKLIST' is deprecated. Please use ! in the MODULES array.
#
MOD_AUTOLOAD="yes"
#MOD_BLACKLIST=() #deprecated
MODULES=()
# Scan for LVM volume groups at startup, required if you use LVM
USELVM="no"
# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
# HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
#
HOSTNAME="arch"
# Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available interfaces.
#
# Interfaces to start at boot-up (in this order)
# Declare each interface then list in INTERFACES
# - prefix an entry in INTERFACES with a ! to disable it
# - no hyphens in your interface names - Bash doesn't like it
#
# DHCP: Set your interface to "dhcp" (eth0="dhcp")
# Wireless: See network profiles below
#
#Static IP example
#eth1="eth0 10.0.1.4 netmask 255.255.255.0 broadcast 10.0.1.255"
eth0="dhcp"
INTERFACES=(eth0)
# Routes to start at boot-up (in this order)
# Declare each route then list in ROUTES
# - prefix an entry in ROUTES with a ! to disable it
#
gateway="default gw 10.0.1.1"
ROUTES=(!gateway)
# Enable these network profiles at boot-up. These are only useful
# if you happen to need multiple network configurations (ie, laptop users)
# - set to 'menu' to present a menu during boot-up (dialog package required)
# - prefix an entry with a ! to disable it
#
# Network profiles are found in /etc/network.d
#
# This now requires the netcfg package
#
#NETWORKS=(main)
# -----------------------------------------------------------------------
# DAEMONS
# -----------------------------------------------------------------------
#
# Daemons to start at boot-up (in this order)
# - prefix a daemon with a ! to disable it
# - prefix a daemon with a @ to start it up in the background
#
DAEMONS=(syslog-ng dbus hal network cnid afpd netfs sshd @ushare @avahi-daemon @ddclient crond @openntpd alsa)
Offline
maybe changing LOCALE="en_US.utf8" to LOCALE="en_US.UTF-8" will fix it
Offline
Something happened but it is not working correctly yet. I get the following error when running locale-gen
locale-gen
Generating locales...
en_US.UTF-8.../usr/sbin/locale-gen: line 41: 2193 Killed localedef -i $input -c -f $charset -A /usr/share/locale/locale.alias $locale
Then I tried a reboot. When I ran locale-gen again the ssh connection I use timed out. I still got the problems above.
Offline
which lines are uncommented in /etc/locale.gen ?
Offline
which lines are uncommented in /etc/locale.gen ?
The following lines are uncommented in /etc/locale.gen. All other lines are commented.
en_US.UTF-8 UTF-8
en_US ISO-8859-1
Offline
I've experienced a similar issue. I upgraded recently, and there was an error in pacman.log:
[2013-09-26 20:38] [ALPM-SCRIPTLET] en_US.UTF-8.../usr/bin/locale-gen: line 41: 2994 Killed localedef -i $input -c -f $charset -A /usr/share/locale/locale.alias $locale
[2013-09-26 20:38] [PACMAN] upgraded glibc (2.17-6 -> 2.18-5)
I tried to reinstall glibc, to no effect. But it works after restart.
Offline
Offline
Pages: 1
Topic closed