Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Ubuntu User (http://www.linux-archive.org/ubuntu-user/)
-   -   perl locale issue (http://www.linux-archive.org/ubuntu-user/598354-perl-locale-issue.html)

Dave Stevens 11-14-2011 04:08 PM

perl locale issue
 
I recently installed U10.4 LTS And wanted to run logwatch. Issuing the
command gave a perl error about not having a locale set. Poking
further revealed that locale isn't installed. So:


# apt-get install locale
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package locale

and the repolist shows:

# cat sources.list
deb http://archive.ubuntu.com/ubuntu lucid main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu lucid-updates main restricted
universe multiverse
deb http://archive.ubuntu.com/ubuntu lucid-security main restricted
universe multiverse


deb http://software.virtualmin.com/gpl/ubuntu/ virtualmin-lucid main
deb http://software.virtualmin.com/gpl/ubuntu/ virtualmin-universal main

so is locale a part of something else or what?

Dave



--
It is told that such are the aerodynamics and wing loading of the
bumblebee that, in principle, it cannot fly...if all this be
true...life among bumblebees must bear a remarkable resemblance to
life in the United States.


-- John Kenneth Galbraith, in American Capitalism: The Concept of
Countervailing Power




--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

Colin Watson 11-14-2011 05:01 PM

perl locale issue
 
On Mon, Nov 14, 2011 at 09:08:29AM -0800, Dave Stevens wrote:
> I recently installed U10.4 LTS And wanted to run logwatch. Issuing
> the command gave a perl error about not having a locale set. Poking
> further revealed that locale isn't installed. So:
>
> # apt-get install locale
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> E: Couldn't find package locale

The package is called 'locales', not 'locale' (however, you almost
certainly already have it installed, since it's part of the base
system). However, installing it does not automatically generate all
locales anyway, since they take a lot of time and disk space to
generate. You should run this instead:

locale-gen en_US.UTF-8

... or whatever locale Perl is complaining about not having available.

--
Colin Watson [cjwatson@ubuntu.com]

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users


All times are GMT. The time now is 04:56 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.