PDA

View Full Version : Getting 'locales' error after 'apt-get upgrade'.



sk545
03-25-2003, 07:50 PM
Got Knoppix 3.2 installed on the HD, but when I run 'apt-get -u upgrade', it downloads the packages and starts to install them. But it ends up with a error:


Errors were encountered while processing:
locales
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@boy:~# dkpkg-reconfigure locales
bash: dkpkg-reconfigure: command not found
root@boy:~# dpkg-reconfigure locales
/usr/sbin/dpkg-reconfigure: locales is broken or not fully installed
root@boy:~#



I tried to do dpkg -P locales and got this:


root@boy:~# dpkg -P locales
dpkg: dependency problems prevent removal of locales:
j2re1.3 depends on locales.
dpkg: error processing locales (--purge):
dependency problems - not removing
Errors were encountered while processing:
locales

Also gave apt-get install locales and apt-get install --reinstall locales:


root@boy:~# apt-get install locales
Reading Package Lists... Done
Building Dependency Tree... Done
Sorry, locales is already the newest version.
0 packages upgraded, 0 newly installed, 0 to remove and 267 not upgraded.
181 packages not fully installed or removed.
Need to get 0B of archives. After unpacking 0B will be used.
Setting up locales (2.3.1-15) ...
Generating locales...
af_ZA.ISO-8859-1... done
ar_IN.UTF-8... done
be_BY.CP1251... done
bg_BG.CP1251... done
br_FR.ISO-8859-1... done
bs_BA.ISO-8859-2... done
ca_ES.ISO-8859-15@euro... done
ca_ES.ISO-8859-1... done
cs_CZ.ISO-8859-2... done
cy_GB.ISO-8859-14... done
da_DK.ISO-8859-1... done
de_AT.ISO-8859-15@euro... done
de_AT.ISO-8859-1... done
de_BE.ISO-8859-15@euro... done
de_BE.ISO-8859-1... done
de_CH.ISO-8859-1... done
de_DE.ISO-8859-15@euro... done
de_DE.ISO-8859-1... done
de_DE.UTF-8... done
de_LU.ISO-8859-15@euro... done
de_LU.ISO-8859-1... done
el_GR.ISO-8859-7... done
el_GR.UTF-8... done
en_AU.ISO-8859-1... done

dpkg: dependency problems prevent configuration of localeconf:
localeconf depends on locales; however:
Package locales is not configured yet.
dpkg: error processing localeconf (--configure):
dependency problems - leaving unconfigured

I even tried dpkg-reconfigure locales, which didn't work either. Any ideas as to why this doesn't work? Is it possible to skip locales all together and continue with the install?

Thanks.

vagabond
04-01-2003, 01:53 PM
I run into a similar Problem when trying to udate with apt-get dist-upgrade after a fresh install via knx-hdinstall:

sr_YU.ISO-8859-5@cyrillic...LC_MONETARY: value of field `int_curr_symbol' does not correspond to a valid name in ISO 4217
dpkg: Fehler beim Bearbeiten von locales (--configure):
Unterprozess post-installation script gab den Fehlerwert 1 zurück
Fehler traten auf beim Bearbeiten von:
locales
E: Sub-process /usr/bin/dpkg returned an error code (1

any hints, suggestions, im using v3.2 release 28-03-2003
thanks
Flo

rickenbacherus
04-02-2003, 06:17 AM
sq_AL.ISO-8859-1... done
sr_YU.ISO-8859-5@cyrillic...LC_MONETARY: value of field `int_curr_symbol' does not correspond to a valid name in ISO 4217


I got the exact same error at exactly the same place. Fortunately for me dpkg -P locales did the trick.

I always do a apt-get update thenI go edit my /etc/apt/sources.list before I do any apt-getting. I have only done apt-get upgrade on security and testing. I got the same errors at exactly the same place. Don't know if any of you are subscribed to the knoppix mailing list but I submitted the error. Will post back with any results.

god
04-02-2003, 07:03 AM
same error, same place, used "apt-get install localespurge" and deselected the offending package. no problem ever after.

NateTheMagi
04-03-2003, 03:17 AM
What are locales anyway, and since I only speak/read english, can I get rid of the ones I don't need? How do I get rid of them? I tried "apt-get install localespurge" but found nothing...

-Nate

rickenbacherus
04-03-2003, 03:22 AM
Ultimately simplified they are necessary for different languages as you surmised. Unless you're really strapped for storage I wouldn't think it advantageous to get rid of them. Not that it isn't possible- I have no idea but why mess with something that isn't broken?

NateTheMagi
04-03-2003, 03:42 AM
Thanks for the reply. It's just that everytime I do an apt-get or use synaptic, it goes through this:

Generating locales...
af_ZA.ISO-8859-1... done
ar_IN.UTF-8... done
be_BY.CP1251... done
bg_BG.CP1251... done
br_FR.ISO-8859-1... done
bs_BA.ISO-8859-2... done
ca_ES.ISO-8859-15@euro... done
ca_ES.ISO-8859-1... done
cs_CZ.ISO-8859-2... done
cy_GB.ISO-8859-14... done
da_DK.ISO-8859-1... done
de_AT.ISO-8859-15@euro... done
de_AT.ISO-8859-1... done
de_BE.ISO-8859-15@euro... done
de_BE.ISO-8859-1... done
de_CH.ISO-8859-1... done
de_CH.UTF-8... done
de_DE.ISO-8859-15@euro... done
de_DE.ISO-8859-1... done
de_DE.UTF-8@euro... done
de_DE.UTF-8... done
de_LU.ISO-8859-15@euro... done
de_LU.ISO-8859-1... done
el_GR.ISO-8859-7... done
el_GR.UTF-8... done
en_AU.ISO-8859-1... done
en_BW.ISO-8859-1... done
en_CA.ISO-8859-1... done
en_DK.ISO-8859-1... done
en_GB.ISO-8859-1... done
en_GB.UTF-8... done
en_HK.ISO-8859-1... done
en_IE.ISO-8859-15@euro... done
en_IE.ISO-8859-1... done
en_IN.UTF-8... done
en_NZ.ISO-8859-1... done
en_PH.ISO-8859-1... done
en_SG.ISO-8859-1... done
en_US.ISO-8859-1... done
en_US.UTF-8... done
en_ZA.ISO-8859-1... done
en_ZW.ISO-8859-1... done
es_ES.ISO-8859-15@euro... done
es_ES.ISO-8859-1... done
es_US.ISO-8859-1... done
et_EE.ISO-8859-1... done
eu_ES.ISO-8859-15@euro... done
eu_ES.ISO-8859-1... done
fa_IR.UTF-8... done
fi_FI.ISO-8859-15@euro... done
fi_FI.ISO-8859-1... done
fo_FO.ISO-8859-1... done
fr_BE.ISO-8859-15@euro... done
fr_BE.ISO-8859-1... done
fr_CA.ISO-8859-1... done
fr_CH.ISO-8859-1... done
fr_FR.ISO-8859-15@euro... done
fr_FR.ISO-8859-1... done
fr_FR.UTF-8... done
fr_LU.ISO-8859-15@euro... done
fr_LU.ISO-8859-1... done
ga_IE.ISO-8859-15@euro... done
ga_IE.ISO-8859-1... done
gl_ES.ISO-8859-15@euro... done
gl_ES.ISO-8859-1... done
gv_GB.ISO-8859-1... done
he_IL.ISO-8859-8... done
hi_IN.UTF-8... done
hr_HR.ISO-8859-2... done
hu_HU.ISO-8859-2... done
id_ID.ISO-8859-1... done
is_IS.ISO-8859-1... done
it_CH.ISO-8859-1... done
it_IT.ISO-8859-15@euro... done
it_IT.ISO-8859-1... done
iw_IL.ISO-8859-8... done
ja_JP.EUC-JP... done
ja_JP.UTF-8... done
ka_GE.GEORGIAN-PS... done
kl_GL.ISO-8859-1... done
ko_KR.EUC-KR... done
ko_KR.UTF-8... done
kw_GB.ISO-8859-1... done
lt_LT.ISO-8859-13... done
lv_LV.ISO-8859-13... done
mi_NZ.ISO-8859-13... done
mk_MK.ISO-8859-5... done
mr_IN.UTF-8... done
ms_MY.ISO-8859-1... done
mt_MT.ISO-8859-3... done
nl_BE.ISO-8859-15@euro... done
nl_BE.ISO-8859-1... done
nl_NL.ISO-8859-15@euro... done
nl_NL.ISO-8859-1... done
nn_NO.ISO-8859-1... done
no_NO.ISO-8859-1... done
oc_FR.ISO-8859-1... done
pl_PL.ISO-8859-2... done
pt_BR.ISO-8859-1... done
pt_PT.ISO-8859-15@euro... done
pt_PT.ISO-8859-1... done
ro_RO.ISO-8859-2... done
ru_RU.ISO-8859-5... done
ru_RU.KOI8-R... done
ru_RU.UTF-8... done
ru_UA.KOI8-U... done
sk_SK.ISO-8859-2... done
sl_SI.ISO-8859-2... done
sq_AL.ISO-8859-1... done
sr_YU.ISO-8859-5@cyrillic...LC_MONETARY: value of field `int_curr_symbol' does not correspond to a valid name in ISO 4217
dpkg: error processing locales (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:


And it takes so darn long to have to wait through this everytime, I'd rather just get rid of the ones I don't need.

-Nate

Stephen
04-03-2003, 03:44 AM
If you want to get rid of the locales you do not need then edit /etc/locale.gen and comment out the ones you do not want then next time you update only the locales selected in the file will be generated at least it worked for me YMMV.

NateTheMagi
04-03-2003, 03:53 AM
Kewl, thanks.

But I'm assuming that I only need the "en-us" ones? Or all the "en" ones?

-Nate

rickenbacherus
04-03-2003, 03:54 AM
Thanks for the reply. It's just that everytime I do an apt-get or use synaptic, it goes through this:



And it takes so darn long to have to wait through this everytime, I'd rather just get rid of the ones I don't need.

-Nate

I was unaware that none of the above suggestions had worked for you - my bad.

NateTheMagi
04-03-2003, 04:00 AM
Oh, no...you're absolutly correct, I didn't try any of the solutions yet :-) I was just wondering about the other locales that were showing up and if I needed those or could get rid of them. I'll try this tomorrow and get back to you :-) Bedtime for me.

-Nate

Stephen
04-03-2003, 04:08 AM
I kept all the en_ just to be sure.

rickenbacherus
04-03-2003, 04:19 AM
I kept all the en_ just to be sure.

Same here- cool tip Stephen -gracias.

aay
04-03-2003, 04:30 AM
If you want to get rid of the locales you do not need then edit /etc/locale.gen and comment out the ones you do not want then next time you update only the locales selected in the file will be generated at least it worked for me YMMV.

Stephen,

I have often wanted to know how to do this but have been too lazy to really put any effort to look into it. Thanks very much for the tip.

Stephen
04-03-2003, 04:39 AM
Your welcome found it via my very good friend google after trying the localespurge mentioned above and thought I would share wealth so to speak. ;)

rickenbacherus
04-03-2003, 04:58 AM
[quote=Stephen]
I have often wanted to know how to do this but have been too lazy to really put any effort to look into it.

lol- could one person ever learn it all?