NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
OSwimmer
Nov 04, 2011Follower
SSH locale
Hello,
Recently I bought a Readynas Ultra 6 (Radiator 4.2.19). One of the most interesting features is the ability to customize it yourself (it's a debian lenny).
So my first add-on to install was EnableSSH.
Each time I connect with SSH to my Readynas I got the message 'locale: Cannot set LC_CTYPE to default locale: No such file or directory'
It's a very annoying error because the output of most commands on ssh gave also errors about the locale.
When I trigger the locales on the system (locale -a) I've got a list of locales that are also available in the web interface (and C and POSIX as addition)
A 'dpkg-reconfigure locales' doesn't solve the problem because the command 'localedef' cannot be found on the system.
Does somebody know how to solve this issue?
OSwimmer
Recently I bought a Readynas Ultra 6 (Radiator 4.2.19). One of the most interesting features is the ability to customize it yourself (it's a debian lenny).
So my first add-on to install was EnableSSH.
Each time I connect with SSH to my Readynas I got the message 'locale: Cannot set LC_CTYPE to default locale: No such file or directory'
It's a very annoying error because the output of most commands on ssh gave also errors about the locale.
When I trigger the locales on the system (locale -a) I've got a list of locales that are also available in the web interface (and C and POSIX as addition)
A 'dpkg-reconfigure locales' doesn't solve the problem because the command 'localedef' cannot be found on the system.
Does somebody know how to solve this issue?
OSwimmer
13 Replies
Replies have been turned off for this discussion
- fdammekeAspirantCurrent version:
nas:/var/log# cat /etc/raidiator_version
RAIDiator!!version=4.2.22,time=1346830413
I wanted to regenerate the locales, since all of them are missing:nas:/var/log# locale -a
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
Tried to reconfigure locales, but didn't succeed because localedef is indeed not foundnas:/var/log# dpkg-reconfigure locales
Tried to reinstall libc6nas:/var/log# apt-get install --reinstall libc6
<snip>
Preparing to replace libc6 2.7-18lenny7 (using .../libc6_2.7-18lenny7_i386.deb) ...
Matching libraries: /usr/lib/libm.so.6
A copy of glibc was found in an unexpected directory.
It is not safe to upgrade the C library in this situation;
please remove that copy of the C library and try again.
dpkg: error processing /var/cache/apt/archives/libc6_2.7-18lenny7_i386.deb (--unpack):
<snip>
nas:/var/log# find / -name libm.so.6
/usr/lib/libm.so.6
/lib/libm.so.6
What a mess... - chirpaLuminaryYes, libc6 on 4.x FW is a tricky area. That platform is on Debian Etch. NTGR has since abandoned maintaining that, and moved on to ReadyNAS OS 6 only available on new models, which is using Debian Wheezy, and doesn't have these issues.
viewtopic.php?p=388804#p388804
viewtopic.php?f=51&t=69201 - mrmiloTutorSooo another thing i cannot maintain with the "old" ReadyNas Ultra. :evil:
I paid 600 Euro for something a USB drive could do for the same.
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!