LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-30-2009, 10:34 AM   #1
Kovax
LQ Newbie
 
Registered: Jun 2009
Location: Budapest
Posts: 4

Rep: Reputation: 1
Unhappy Debian: locale problems


Hi!
I have a debian server. I tried to install tomcat5.5, but it gives that:

Setting up tomcat5.5 (5.5.26-5) ...
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "hu_HU ISO-8859-2"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Starting Tomcat servlet engine: tomcat5.5Cannot locate Java Home
invoke-rc.d: initscript tomcat5.5, action "start" failed.
dpkg: error processing tomcat5.5 (--configure):
subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of tomcat5.5-admin:
tomcat5.5-admin depends on tomcat5.5 (>= 5.5.26-5); however:
Package tomcat5.5 is not configured yet.
dpkg: error processing tomcat5.5-admin (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of tomcat5.5-webapps:
tomcat5.5-webapps depends on tomcat5.5 (>= 5.5.26-5); however:
Package tomcat5.5 is not configured yet.
dpkg: error processing tomcat5.5-webapps (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
tomcat5.5
tomcat5.5-admin
tomcat5.5-webapps
E: Sub-process /usr/bin/dpkg returned an error code (1)


So, I tried everything with the locales:
-dpkg reconfigure locales
-/etc/locales
-/etc/environment

I read a lot about this problem, but i did not find the right way. Please help, as you know.

thanks
 
Old 06-30-2009, 11:01 AM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
You can try one of the following:
Code:
aptitude -f install locales
dpkg-reconfigure locales
or
Code:
/usr/sbin/locale-gen
The first one will try to reinstall locales and then you can reconfigure them them. The second one should regenerate the locales if you already have locales installed. You probably have to be root (or sudo) for the second one (I'm not in front of my Debian box right now to try it).
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Debian adding locale Lang ? jchambers Linux - Newbie 4 07-22-2009 01:41 PM
Locale problems on Debian 4.0 icmp_request Debian 7 07-09-2007 07:19 AM
new debian user. need help with scim and locale. damienduff Debian 2 04-05-2005 01:16 PM
setting LOCALE variables in Debian LaoNiu Linux - Software 0 11-10-2004 08:56 AM
Debian install breaks on 'Add Locale' jhecht Linux - Software 0 07-22-2004 02:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration