Hi! My problem is that when I try to install some software on my Debian system by Putty (ex. apt-get install mc) i get typical info about that two packages will be installed,none erased etc. and it asks me to confirm that I want to install.When I enter T (in my language this means Yes) i get an error "Stopped." What could be the reason ? I've noticed the same on a Ubuntu system. How can I get around it ? Is it like this because of security reasons (that would make sense)?
Looks like a language setting. Do you have 'locales' active on your server? To accept the default, you could also just hit <enter>
'locales' means do you run your server in your local language or in English. You can also check the environment variable LANG Code: # env
What's the value of the LANG variable. apt-get should report in your language if set correctly and you get English (I think) If I would run my system in Dutch, my LANG variable would be NL_nl. I just tested, but it seems apt-get is not locales aware, so even if I set the LANG variable I still get English.
The value is pl_PL.UTF-8. Apt "speeks" my language. As I described above the problem occurs when I log to my server by Putty. When I try to install something while logging in to it's shell (no SSH) I get no errors. I know that this might look like the problem is in Putty but I though that it might be some kind of a security enhancement or something. I'm not really sure. That's why I'm asking for help.
Yesterday night I tried installing some software on an OpenSuSE system using Putty and it went fine. I used Yast (RPM) because that system doesn't have APT by default.
I don't mind the lack of polish fonts in the system but i'd like to know how could I install any packages on my system.It's a really strange thing about ssh and Putty.
Now why didn't I think of that ? I just told him to answer yes to any questions APT asks durring the installation and it worked !!! So we have the cure but what about the reason of this strange behaviour ? Thanks again Falko!!!
I've also tried changing the default character set translation on received data in Putty's configuration (Window -> Translation) from "ISO-8859-2:1999 (Latin-2, East Europe)" to "UTF-8" instead of entering "apt-get install package_name" and it worked too but without the question for approvement on the installation. Tricky stuff but easy to work out.