How do I fix broken language packages in 10.04?

Asked by marbuntu

Hi everyone:

I am running 10.4 on a Dell Inspiron 1525 laptop. I am trying to install a language but to no avail. I went to "system > administration > language support. A dialog box appears and tells me "The language support is not installed correctly" I have the choice to "Remind me later" or "Install". I chose install and I received an error message that read "Could not apply changes, fix broken packages first". I have done a software, but nothing seems to help. Could someone please help this newbie? Thanks

Mark

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Solved by:
marcobra (Marco Braida)
Solved:
Last query:
Last reply:

This question was reopened

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Can you give the output of:

sudo apt-get update; sudo apt-get -f install; lsb_release -a

Thanks

Revision history for this message
marbuntu (markfpyles) said :
#2

mark@mark-laptop:~$ sudo apt-get update; sudo apt-get -f install; lsb_release -a[sudo] password for mark:
Get:1 http://dl.google.com stable Release.gpg [189B]
Get:2 http://dl.google.com stable Release [2544B]
Get:3 http://dl.google.com stable/main Packages [1089B]
Hit http://security.ubuntu.com lucid-security Release.gpg
Hit http://archive.canonical.com lucid Release.gpg
Hit http://us.archive.ubuntu.com lucid Release.gpg
Hit http://us.archive.ubuntu.com lucid-updates Release.gpg
Hit http://security.ubuntu.com lucid-security Release
Hit http://archive.canonical.com lucid Release
Hit http://us.archive.ubuntu.com lucid Release
Hit http://security.ubuntu.com lucid-security/main Packages
Hit http://archive.canonical.com lucid/partner Packages
Hit http://us.archive.ubuntu.com lucid-updates Release
Hit http://security.ubuntu.com lucid-security/restricted Packages
Hit http://security.ubuntu.com lucid-security/main Sources
Hit http://archive.canonical.com lucid/partner Sources
Hit http://us.archive.ubuntu.com lucid/main Packages
Hit http://us.archive.ubuntu.com lucid/restricted Packages
Hit http://us.archive.ubuntu.com lucid/main Sources
Hit http://security.ubuntu.com lucid-security/restricted Sources
Hit http://security.ubuntu.com lucid-security/universe Packages
Hit http://security.ubuntu.com lucid-security/universe Sources
Hit http://security.ubuntu.com lucid-security/multiverse Packages
Hit http://security.ubuntu.com lucid-security/multiverse Sources
Hit http://us.archive.ubuntu.com lucid/restricted Sources
Hit http://us.archive.ubuntu.com lucid/universe Packages
Hit http://us.archive.ubuntu.com lucid/universe Sources
Hit http://us.archive.ubuntu.com lucid/multiverse Packages
Hit http://us.archive.ubuntu.com lucid/multiverse Sources
Hit http://us.archive.ubuntu.com lucid-updates/main Packages
Hit http://us.archive.ubuntu.com lucid-updates/restricted Packages
Hit http://us.archive.ubuntu.com lucid-updates/main Sources
Hit http://us.archive.ubuntu.com lucid-updates/restricted Sources
Hit http://us.archive.ubuntu.com lucid-updates/universe Packages
Hit http://us.archive.ubuntu.com lucid-updates/universe Sources
Hit http://us.archive.ubuntu.com lucid-updates/multiverse Packages
Hit http://us.archive.ubuntu.com lucid-updates/multiverse Sources
Fetched 3822B in 1s (2466B/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 10.04.1 LTS
Release: 10.04
Codename: lucid

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#3

Please also use the menu System→Administration→Language to manage your language settings and packages

Revision history for this message
marbuntu (markfpyles) said :
#4

Dear marcobra:

Thank you for the information, but I have already done that and it still tells me that the language support has not been completely installed and that I have broken packages. Thank you.

Mark

Revision history for this message
Vu Do Quynh (vu-do-quynh) said :
#5

Hi,

try to open the Synaptic Package manager (System > Administration > Synaptic)

Then select the filter for broken packages (You should see at the bottom of the synaptic windows the number of listed packages, number of installed and of broken packages, if any). Then select the broken packgaes and fix them like indicated here:

https://help.ubuntu.com/community/SynapticHowto

Hope that helps.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#6

is "The language support is not installed correctly" the EXACT error? I just websearched your alert and this posting is al I can find

Revision history for this message
Vu Do Quynh (vu-do-quynh) said :
#7

Hi,

Yes the problem addressed is to install language support, but as it seems that some packages are broken, these need to be fixed before the system "accepts" to download and install further packages, among them the ones necessary for language support and new languages.

That's my interpretation of the problem.

Regards

Revision history for this message
marbuntu (markfpyles) said :
#8

Hi Vu Do Quynh:

Thank you for the information. I have done as you said but I show no packages that are broken. Thank you

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#9

Open a Terminal from the menu Applications->Accessories->Terminal

Tip: right click with mouse on the terminal title caption and select the item "Always on Top" doing this you will force the terminal window to stay on top of the other windows and you will find very easy to copy single row from this web page into the terminal...
Something more about using the terminal https://help.ubuntu.com/community/UsingTheTerminal

Then type or better copy and paste a row a time then press enter:
(Tip: select the single row to copy then right click into the terminal and to quick paste click with middle button of mouse )

sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status
sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
sudo rm -rf /var/lib/dpkg/updates/*
sudo rm -rf /var/lib/apt/lists
sudo mkdir /var/lib/apt/lists
sudo mkdir /var/lib/apt/lists/partial
LANG=C;sudo aptitude clean
LANG=C;sudo aptitude autoclean
LANG=C;sudo apt-get update
sudo dpkg --clear-avail
sudo dpkg --configure -a
LANG=C;sudo aptitude install -f
LANG=C;sudo aptitude update
LANG=C;sudo aptitude dist-upgrade

give your user password when requested, you don't see nothing when you type it, then press enter.

Hope this helps

Revision history for this message
marbuntu (markfpyles) said :
#10

Hi marcobra:

I performed the above commands but now my problem is that when I go to language support, the language I want (Italiano) is greyed out. I verified that it is indeed installed but I can't click on it due to it is greyed out. I have "Italian" selected on the text tab and clicked to make it system wide but nothing seems to work even though it is selected. Any suggestions on what to do? Thanks again for all your help!

Mark

Revision history for this message
marbuntu (markfpyles) said :
#11

Hi marcobra:

I performed the above commands but now my problem is that when I go to language support, the language I want (Italiano) is greyed out. I verified that it is indeed installed but I can't click on it due to it is greyed out. I have "Italian" selected on the text tab and clicked to make it system wide but nothing seems to work even though it is selected. Any suggestions on what to do? Thanks again for all your help!

Mark

Revision history for this message
Best marcobra (Marco Braida) (marcobra) said :
#12

Try to install/reinstall this packages... open a terminal and copy and paste the row

sudo apt-get --reinstall --purge install language-pack-gnome-it-base language-pack-it language-pack-it-base language-support-writing-it myspell-it openoffice.org-help-it openoffice.org-hyphenation-it openoffice.org-l10n-it openoffice.org-thesaurus-it thunderbird-locale-it witalian

Revision history for this message
marbuntu (markfpyles) said :
#13

Hi Marcobra:

I tried re-installing all the individual packages but to no avail, so I went and removed the "English" language and selected Italiano and it worked! I now have Italian as my language. Grazie mille, buona giornata! (Thanks a million and have a good day!).

Mark