language-support-XX needs to be able to generate locales

Bug #113145 reported by Hans Deragon
18
Affects Status Importance Assigned to Milestone
langpack-o-matic
Invalid
Medium
Martin Pitt
belocs-locales-bin (Ubuntu)
Fix Released
Medium
Martin Pitt

Bug Description

Binary package hint: language-support-fr

language-support-fr does not install on Feisty Fawn (7.04).

Installing language-support-fr results in an error:

  "Error: 'fr' is not a supported language or locale"

Following, the output of the installation command:

------------------------------------------------------------
# apt-get install language-support-fr
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  aspell-fr gimp-help-common gimp-help-fr mozilla-firefox-locale-fr-fr
  myspell-fr-gut openoffice.org-help-fr openoffice.org-l10n-fr
  thunderbird-locale-fr wfrench
Suggested packages:
  hunspell-dictionary-fr myspell-dictionary-fr openoffice.org2-thesaurus-fr
Recommended packages:
  gimp-help-en language-pack-fr
The following NEW packages will be installed:
  aspell-fr gimp-help-common gimp-help-fr language-support-fr
  mozilla-firefox-locale-fr-fr myspell-fr-gut openoffice.org-help-fr
  openoffice.org-l10n-fr thunderbird-locale-fr wfrench
0 upgraded, 10 newly installed, 0 to remove and 0 not upgraded.
Need to get 36.9MB of archives.
After unpacking, 72.1MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://ca.archive.ubuntu.com feisty/main mozilla-firefox-locale-fr-fr 2.0.0.1ubuntu-1 [192kB]
Get:2 http://ca.archive.ubuntu.com feisty/main myspell-fr-gut 1:1.0-18 [311kB]
Get:3 http://ca.archive.ubuntu.com feisty/main aspell-fr 0.50-3-6 [376kB]
Get:4 http://ca.archive.ubuntu.com feisty/main wfrench 1.2.3-1 [347kB]
Get:5 http://ca.archive.ubuntu.com feisty/main thunderbird-locale-fr 1:1.5.0.10ubuntu0-1 [202kB]
Get:6 http://ca.archive.ubuntu.com feisty/main gimp-help-common 2+0.10-2 [14.8MB]
Get:7 http://ca.archive.ubuntu.com feisty/main gimp-help-fr 2+0.10-2 [8444kB]
Get:8 http://ca.archive.ubuntu.com feisty/main language-support-fr 1:7.04+20070209 [2408B]
Get:9 http://ca.archive.ubuntu.com feisty/main openoffice.org-l10n-fr 2.2.0-0ubuntu2 [1574kB]
Get:10 http://ca.archive.ubuntu.com feisty/main openoffice.org-help-fr 2.2.0-0ubuntu2 [10.6MB]
Fetched 36.9MB in 31s (1171kB/s)
Preconfiguring packages ...
Selecting previously deselected package mozilla-firefox-locale-fr-fr.
(Reading database ... 104224 files and directories currently installed.)
Unpacking mozilla-firefox-locale-fr-fr (from .../mozilla-firefox-locale-fr-fr_2.0.0.1ubuntu-1_all.deb) ...
Selecting previously deselected package myspell-fr-gut.
Unpacking myspell-fr-gut (from .../myspell-fr-gut_1%3a1.0-18_all.deb) ...
Selecting previously deselected package aspell-fr.
Unpacking aspell-fr (from .../aspell-fr_0.50-3-6_all.deb) ...
Selecting previously deselected package wfrench.
Unpacking wfrench (from .../wfrench_1.2.3-1_all.deb) ...
Selecting previously deselected package thunderbird-locale-fr.
Unpacking thunderbird-locale-fr (from .../thunderbird-locale-fr_1%3a1.5.0.10ubuntu0-1_all.deb) ...
Selecting previously deselected package gimp-help-common.
Unpacking gimp-help-common (from .../gimp-help-common_2+0.10-2_all.deb) ...
Selecting previously deselected package gimp-help-fr.
Unpacking gimp-help-fr (from .../gimp-help-fr_2+0.10-2_all.deb) ...
Selecting previously deselected package language-support-fr.
Unpacking language-support-fr (from .../language-support-fr_1%3a7.04+20070209_all.deb) ...
Selecting previously deselected package openoffice.org-l10n-fr.
Unpacking openoffice.org-l10n-fr (from .../openoffice.org-l10n-fr_2.2.0-0ubuntu2_all.deb) ...
Selecting previously deselected package openoffice.org-help-fr.
Unpacking openoffice.org-help-fr (from .../openoffice.org-help-fr_2.2.0-0ubuntu2_all.deb) ...
Setting up myspell-fr-gut (1.0-18) ...
Updating OpenOffice.org's dictionary list... done.

Setting up aspell-fr (0.50-3-6) ...
aspell-autobuildhash: processing: fr [fr-40-only]
aspell-autobuildhash: processing: fr [fr-60-only]
aspell-autobuildhash: processing: fr [fr-80-only]
Warning: The word "Gram--Schmidt" is invalid. The character '-' (U+2D) must be followed by an alphabetic character. Skipping word.
Warning: The word "Runge--Kutta" is invalid. The character '-' (U+2D) must be followed by an alphabetic character. Skipping word.
aspell-autobuildhash: processing: fr [fr_CH-only]

Setting up wfrench (1.2.3-1) ...

Setting up openoffice.org-l10n-fr (2.2.0-0ubuntu2) ...

Setting up openoffice.org-help-fr (2.2.0-0ubuntu2) ...

Setting up gimp-help-common (2+0.10-2) ...
Setting up gimp-help-fr (2+0.10-2) ...

Setting up mozilla-firefox-locale-fr-fr (2.0.0.1ubuntu-1) ...
Setting up thunderbird-locale-fr (1.5.0.10ubuntu0-1) ...
Setting up language-support-fr (7.04+20070209) ...
Error: 'fr' is not a supported language or locale

# locale -a
C
en_AU.utf8
en_BW.utf8
en_CA.utf8
en_DK.utf8
en_GB.utf8
en_HK.utf8
en_IE.utf8
en_IN
en_NZ.utf8
en_PH.utf8
en_SG.utf8
en_US.utf8
en_ZA.utf8
en_ZW.utf8
POSIX

Revision history for this message
Richard Birnie (rbirnie-deactivatedaccount) wrote :
Download full text (4.7 KiB)

I can confirm this on Kubuntu 7.04. Identical results to those reported by Hans. Terminal output below.

apt-get install language-support-fr
Password:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libpthread-stubs0-dev libpthread-stubs0 linux-headers-2.6.20-14 linux-headers-2.6.20-14-generic
  libxcb-xlib0-dev libxcb1-dev
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  aspell-fr gimp-help-common gimp-help-fr mozilla-firefox-locale-fr-fr myspell-fr-gut
  openoffice.org-help-fr openoffice.org-l10n-fr thunderbird-locale-fr wfrench
Suggested packages:
  hunspell-dictionary-fr myspell-dictionary-fr openoffice.org2-thesaurus-fr
Recommended packages:
  gimp-help-en language-pack-fr
The following NEW packages will be installed
  aspell-fr gimp-help-common gimp-help-fr language-support-fr mozilla-firefox-locale-fr-fr
  myspell-fr-gut openoffice.org-help-fr openoffice.org-l10n-fr thunderbird-locale-fr wfrench
0 upgraded, 10 newly installed, 0 to remove and 0 not upgraded.
Need to get 36.9MB of archives.
After unpacking 72.1MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get: 1 http://gb.archive.ubuntu.com feisty/main mozilla-firefox-locale-fr-fr 2.0.0.1ubuntu-1 [192kB]
Get: 2 http://gb.archive.ubuntu.com feisty/main myspell-fr-gut 1:1.0-18 [311kB]
Get: 3 http://gb.archive.ubuntu.com feisty/main aspell-fr 0.50-3-6 [376kB]
Get: 4 http://gb.archive.ubuntu.com feisty/main wfrench 1.2.3-1 [347kB]
Get: 5 http://gb.archive.ubuntu.com feisty/main thunderbird-locale-fr 1:1.5.0.10ubuntu0-1 [202kB]
Get: 6 http://gb.archive.ubuntu.com feisty/main gimp-help-common 2+0.10-2 [14.8MB]
Get: 7 http://gb.archive.ubuntu.com feisty/main gimp-help-fr 2+0.10-2 [8444kB]
Get: 8 http://gb.archive.ubuntu.com feisty/main language-support-fr 1:7.04+20070209 [2408B]
Get: 9 http://gb.archive.ubuntu.com feisty/main openoffice.org-l10n-fr 2.2.0-0ubuntu2 [1574kB]
Get: 10 http://gb.archive.ubuntu.com feisty/main openoffice.org-help-fr 2.2.0-0ubuntu2 [10.6MB]
Fetched 36.9MB in 6m44s (91.2kB/s)
Preconfiguring packages ...
Selecting previously deselected package mozilla-firefox-locale-fr-fr.
(Reading database ... 141246 files and directories currently installed.)
Unpacking mozilla-firefox-locale-fr-fr (from .../mozilla-firefox-locale-fr-fr_2.0.0.1ubuntu-1_all.deb) ...
Selecting previously deselected package myspell-fr-gut.
Unpacking myspell-fr-gut (from .../myspell-fr-gut_1%3a1.0-18_all.deb) ...
Selecting previously deselected package aspell-fr.
Unpacking aspell-fr (from .../aspell-fr_0.50-3-6_all.deb) ...
Selecting previously deselected package wfrench.
Unpacking wfrench (from .../wfrench_1.2.3-1_all.deb) ...
Selecting previously deselected package thunderbird-locale-fr.
Unpacking thunderbird-locale-fr (from .../thunderbird-locale-fr_1%3a1.5.0.10ubuntu0-1_all.deb) ...
Selecting previously deselected package gimp-help-common.
Unpacking gimp-help-common (from .../gimp-help-common_2+0.10-2_all.deb) ...
Selecting previously deselected package gimp-help...

Read more...

Changed in language-support-fr:
status: Unconfirmed → Confirmed
Revision history for this message
Hans Deragon (deragon) wrote :

Mmm... am I the only French speaking person in the whole world using Ubuntu 7.04? This bug is still in "Undecided" state in "Importance", weeks after 7.04 has been released, and millions should suffer from this...

Then again, only two people are subscribed to this bug report... I am puzzled.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Do you have language-pack-fr installed? Did you try using the language-selector?

Revision history for this message
Martin Pitt (pitti) wrote :

Indeed this is a long-standing TODO list item of mine. Problem is that /var/lib/locales/supported.d/<lang> is shipped by language-pack-<lang>, but -support should not depend on -pack. I have to duplicate the supported list somehow.

Changed in language-support-fr:
assignee: nobody → pitti
importance: Undecided → Medium
Revision history for this message
Martin Pitt (pitti) wrote :

Needs to be fixed in the generator scripts first, then we need to upload all support packages again.

Changed in langpack-o-matic:
assignee: nobody → pitti
importance: Undecided → Medium
status: New → In Progress
Revision history for this message
Hans Deragon (deragon) wrote :

On a new fresh install of Ubuntu 7.04, I notice that I do not have the problem anymore. Has this problem been fixed?

Here is the output:

# apt-get install language-pack-fr
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  language-pack-fr-base
The following NEW packages will be installed:
  language-pack-fr language-pack-fr-base
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 3466kB of archives.
After unpacking, 13.1MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://ca.archive.ubuntu.com feisty/main language-pack-fr-base 1:7.04+20070412 [2728kB]
Get:2 http://ca.archive.ubuntu.com feisty-updates/main language-pack-fr 1:7.04+20070601 [738kB]
Fetched 3466kB in 9s (362kB/s)
Selecting previously deselected package language-pack-fr-base.
(Reading database ... 135899 files and directories currently installed.)
Unpacking language-pack-fr-base (from .../language-pack-fr-base_1%3a7.04+20070412_all.deb) ...
Selecting previously deselected package language-pack-fr.
Unpacking language-pack-fr (from .../language-pack-fr_1%3a7.04+20070601_all.deb) ...
Replacing files in old package language-pack-fr-base ...
Setting up language-pack-fr (7.04+20070601) ...
Setting up language-pack-fr-base (7.04+20070412) ...
Generating locales...
  fr_BE.UTF-8... done
  fr_CA.UTF-8... done
  fr_CH.UTF-8... done
  fr_FR.UTF-8... done
  fr_LU.UTF-8... done
Generation complete.
 * Reloading GNOME Display Manager configuration... * Changes will take effect when all current X sessions have ended.
                                                                         [ OK ]

# locale -a
C
en_AU.utf8
en_BW.utf8
en_CA.utf8
en_DK.utf8
en_GB.utf8
en_HK.utf8
en_IE.utf8
en_IN
en_NZ.utf8
en_PH.utf8
en_SG.utf8
en_US.utf8
en_ZA.utf8
en_ZW.utf8
fr_BE.utf8
fr_CA.utf8
fr_CH.utf8
fr_FR.utf8
fr_LU.utf8
POSIX

Revision history for this message
Martin Pitt (pitti) wrote :

Hans,

it works fine if you install both -pack and -support; installing only -support is what is broken.

Revision history for this message
Martin Pitt (pitti) wrote :

Let's fix this at a central place.

Changed in language-support-fr:
status: Confirmed → In Progress
Revision history for this message
Martin Pitt (pitti) wrote :

belocs-locales-bin (2.4-2.2ubuntu3) gutsy; urgency=low

  * sbin/locale-gen: If /var/lib/locales/supported.d/$LANG is not available,
    fall back to all UTF-8 locales in /usr/share/i18n/SUPPORTED. This is a
    sensible default, and allows language-support-XX to install with locales
    without the accompanying language-pack-XX. (LP: #113145)

 -- Martin Pitt <email address hidden> Tue, 11 Sep 2007 15:09:42 +0200

Changed in langpack-o-matic:
status: In Progress → Invalid
Changed in belocs-locales-bin:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.