NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

OSwimmer's avatar
OSwimmer
Follower
Nov 04, 2011

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

13 Replies

Replies have been turned off for this discussion
  • Current 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 found
    nas:/var/log# dpkg-reconfigure locales

    Tried to reinstall libc6
    nas:/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...
  • Sooo 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.

NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology! 

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More