Error generating UTF-8 locale

Ask questions about Arch Linux ARM. Please search before making a new topic.

Error generating UTF-8 locale

Postby rashomon » Thu May 19, 2011 6:45 am

I've a Pogoplug Pro P01 on which I've installed Arch Linux ARM install using oxnas-install.sh script.
After I ran pacman -Syyfu, I got the following warning $this->bbcode_second_pass_code('', 'man: can't set the locale; make sure $LC_* and $LANG are correct')

After reading about locale, I commented en_US.UTF-8 in /etc/locale-gen and ran locale-gen. The above warning generated by man disappeared.

Later when I tried to install another package I got the following error:
$this->bbcode_second_pass_code('', 'error: error while reading package /var/cache/pacman/pkg/ca-certificates-20110421-3-any.pkg.tar.xz: Pathname in pax header can't be converted to current locale.
error: failed to commit transaction (invalid or corrupted package)
ca-certificates-20110421-3-any.pkg.tar.xz is invalid or corrupted
Errors occurred, no packages were upgraded.')

I googled and found that in order to fix this I've to set locale to UTF-8. However if I uncomment the line en_US.UTF-8 UTF-8 in /etc/locale.gen and then run locale-gen, I get the following error
$this->bbcode_second_pass_code('', '# locale-gen
Generating locales...
en_US.UTF-8...cannot map archive header: Invalid argument')

I googled the above error and the only relevant link was to a debian bug report which said that the problem had been fixed in a subsequent version of the same package. I also searched on this fourm but did not find other people facing such problem. Suggestions?
rashomon
 
Posts: 7
Joined: Wed May 11, 2011 10:19 pm

Re: Error generating UTF-8 locale

Postby tom2006 » Thu May 19, 2011 6:27 pm

I just made an account just for this error also!

I started with a fresh start from archlinux on a pogoplug pro.

After a full system upgrade i had these errors also!

After alot of searching around i cant seem to fix this...

Please help!
tom2006
 
Posts: 3
Joined: Thu May 19, 2011 6:25 pm

Re: Error generating UTF-8 locale

Postby tom2006 » Thu May 19, 2011 7:32 pm

$this->bbcode_second_pass_code('', 'locale.gen
en_US.UTF-8 UTF-8
en_US ISO-8859-1
de_DE ISO-8859-1
de_DE@euro ISO-8859-15
')
$this->bbcode_second_pass_code('', '#
# /etc/rc.conf - Arch Linux ARM install Linux Main Configuration
#

# -----------------------------------------------------------------------
# LOCALIZATION
# -----------------------------------------------------------------------
#
LOCALE="en_US.UTF-8"
HARDWARECLOCK="localtime"
TIMEZONE="America/Chicago"
KEYMAP="us"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"

# -----------------------------------------------------------------------
# HARDWARE
# -----------------------------------------------------------------------
#
# MOD_AUTOLOAD: Allow autoloading of modules at boot and when needed
# MOD_BLACKLIST: Prevent udev from loading these modules
# MODULES: Modules to load at boot-up. Prefix with a ! to blacklist.
')
tom2006
 
Posts: 3
Joined: Thu May 19, 2011 6:25 pm

Re: Error generating UTF-8 locale

Postby slycat » Thu May 19, 2011 10:29 pm

Just ran an update myself on my Pro. Got the same error during the update, but no problems running anything after that. Ran locale-gen and get the same error rashomon got. I'll start trouble shooting once out of class. But all my apps are running :shock:

Though because of this issue glibc and gcc-libs won't update properly. Apps still running.

EDIT:
I got it. This is the way I was able to get it going. Super easy

We have to re-arrange the list of which locale-gen builds formats from.
$this->bbcode_second_pass_code('', 'nano /etc/locale.gen')

You may have "en_US.UTF-8 UTF-8" at the top of the list. Change it to the bottom. Mines looks like this.
$this->bbcode_second_pass_code('', 'en_US ISO-8859-1
de_DE ISO-8859-1
de_DE@euro ISO-8859-15
en_US.UTF-8 UTF-8
')

Then run
$this->bbcode_second_pass_code('', 'locale-gen')

I get everything to generate properly. Originally i thought it was due to a command in the /usr/sbin/locale-gen
$this->bbcode_second_pass_code('', '[ -f $LOCALEGEN -a -s $LOCALEGEN ] || exit 0;

# Remove all old locale dir and locale-archive before generating new
# locale data.
rm -rf /usr/lib/locale/* || true')

Because of this, making the UTF-8 file at the end will fix it. Now I can run glibc update (required utf-8 to generate)
Still can't run gcc-libs update thought :?
Pogoplug Pro w/ Wireless User -> decomm.
Cubox-i4pro User
4TB eSATA HDD (8g/3700+ Sw/Storage)
Kodi / Transmission / Minidlna / Samba / Batch-audio-conversions / Lighttpd
------------------------------
Rollback Machine - Thanks to impatt
slycat
 
Posts: 169
Joined: Wed Feb 09, 2011 3:07 am
Location: Miami, FL

Re: Error generating UTF-8 locale

Postby rashomon » Fri May 20, 2011 1:40 am

$this->bbcode_second_pass_quote('slycat', '
')You may have "en_US.UTF-8 UTF-8" at the top of the list. Change it to the bottom. Mines looks like this.
$this->bbcode_second_pass_code('', '
en_US ISO-8859-1
de_DE ISO-8859-1
de_DE@euro ISO-8859-15
en_US.UTF-8 UTF-8
')


This works! I initially tried having just two entries for en_US in /etc/locale.gen with the en_US.UTF-8 UTF-8 being at the bottom, but that didn't resolve the issue with locale-gen. Then I copied all the above four entries to locale.gen and ran locale-gen. Though it works, I still fail to understand why do I need to have locale for Deutsch and why does generation of en_US.UTF-8 locale requires de_DE?

After running locale-gen as above I ran
$this->bbcode_second_pass_code('', 'export LANG=en_US.UTF-8')
and then was able to install the packages which were failing earlier.

Has anybody noticed this issue(unrelated to this thread) that if a package upgrade/install fails midway and you reboot the Pro, then its light keeps blinking and it doesn't boot up. The only way to fix this is follow the Step 0 of the Pro Installation i.e. rootfs. Happened twice to me and I think package install failing midway was to blame(although I don't have a way to confirm this).
rashomon
 
Posts: 7
Joined: Wed May 11, 2011 10:19 pm

Re: Error generating UTF-8 locale

Postby tom2006 » Fri May 20, 2011 7:38 am

Omg.. thank you so much. I still cant believe it was this easy to fix.

I spend almost the whole day trying to fix this!

Now everything works well. :)
tom2006
 
Posts: 3
Joined: Thu May 19, 2011 6:25 pm

Re: Error generating UTF-8 locale

Postby slycat » Fri May 20, 2011 4:29 pm

$this->bbcode_second_pass_quote('rashomon', 'H')as anybody noticed this issue(unrelated to this thread) that if a package upgrade/install fails midway and you reboot the Pro, then its light keeps blinking and it doesn't boot up. The only way to fix this is follow the Step 0 of the Pro Installation i.e. rootfs. Happened twice to me and I think package install failing midway was to blame(although I don't have a way to confirm this).


I had to do this once, since then my LED never stops blinking but I am still able to connect and run fine. I had an issue updating Samba and kept getting dbwrap_storage errors, or something along the lines of that. Did Step 0 from my ubuntu box, everything loaded perfectly just now the LED blinks.
Seems all cosmetic to me, especially since my plug hides behind my monitor. Outta sight outta mind I guess.
Pogoplug Pro w/ Wireless User -> decomm.
Cubox-i4pro User
4TB eSATA HDD (8g/3700+ Sw/Storage)
Kodi / Transmission / Minidlna / Samba / Batch-audio-conversions / Lighttpd
------------------------------
Rollback Machine - Thanks to impatt
slycat
 
Posts: 169
Joined: Wed Feb 09, 2011 3:07 am
Location: Miami, FL

Re: Error generating UTF-8 locale

Postby WarheadsSE » Fri May 20, 2011 5:32 pm

The LEDs are blinking because XCE needs to be ins/rmmod'd to shut the kernel timer off.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Error generating UTF-8 locale

Postby rashomon » Sun May 22, 2011 1:15 pm

$this->bbcode_second_pass_quote('WarheadsSE', 'T')he LEDs are blinking because XCE needs to be ins/rmmod'd to shut the kernel timer off.


What does this mean? I googled but couldn't understand what WarheadsSE means. How do I do this?
rashomon
 
Posts: 7
Joined: Wed May 11, 2011 10:19 pm
Top

Re: Error generating UTF-8 locale

Postby slycat » Sun May 22, 2011 4:55 pm

$this->bbcode_second_pass_quote('rashomon', '')$this->bbcode_second_pass_quote('WarheadsSE', 'T')he LEDs are blinking because XCE needs to be ins/rmmod'd to shut the kernel timer off.


What does this mean? I googled but couldn't understand what WarheadsSE means. How do I do this?


Didn't think it would be that simple. Thanks again WHSE.

rashomon
from another pogo forum (WarheadSE's direct post), heres the process:
$this->bbcode_second_pass_code('', '##xce.ko is found in /lib/modules/2.6.31.6_SMP_820/kernel/
insmod xce.ko
rmmod xce.ko')

Check out http://Arch Linux ARM.com/index.php5/Talk:Hardware:_Pogoplug_Pro for info on LED control. Once the previous commands are run, this should work too.
Pogoplug Pro w/ Wireless User -> decomm.
Cubox-i4pro User
4TB eSATA HDD (8g/3700+ Sw/Storage)
Kodi / Transmission / Minidlna / Samba / Batch-audio-conversions / Lighttpd
------------------------------
Rollback Machine - Thanks to impatt
slycat
 
Posts: 169
Joined: Wed Feb 09, 2011 3:07 am
Location: Miami, FL
Top

Next

Return to User Questions

Who is online

Users browsing this forum: Google [Bot] and 30 guests