Ubuntu software center does not run.

Asked by jamielljoseph@gmail.com

After updating to ubuntu 9.10, I clicked the ubuntu software center but it only exits itself before it runs after being clicked. So, When I click it, the mouse shows that it is loading but it exits after about 7 seconds. what would be the problem and how can I fix this? Thanks Guys!

Question information

Revision history for this message
Vikram Dhillon (dhillon-v10) said :
#1

Its probably a segmentation fault, but in any case, try and run it from the
terminal by typing:

software-center

This will give you lot more detail on why its not running, then you might have
to consider opening a bug

--
Regards,
Vikram Dhillon

On Friday 20 November 2009 10:11:17 pm <email address hidden> wrote:
> New question #91090 on Ubuntu:
> https://answers.launchpad.net/ubuntu/+question/91090
>
> After updating to ubuntu 9.10, I clicked the ubuntu software center but it
> only exits itself before it runs after being clicked. So, When I click it,
> the mouse shows that it is loading but it exits after about 7 seconds.
> what would be the problem and how can I fix this? Thanks Guys!
>

Revision history for this message
jamielljoseph@gmail.com (jamielljoseph) said :
#2

Hi Vikram. Thanks for the advice but it did not work. This is what I got when i tried to run it in the terminal.

Traceback (most recent call last):
  File "/usr/bin/software-center", line 80, in <module>
    app = SoftwareCenterApp(datadir, xapian_base_path)
  File "/usr/share/software-center/softwarecenter/app.py", line 140, in __init__
    self.icons, datadir)
  File "/usr/share/software-center/softwarecenter/view/availablepane.py", line 58, in __init__
    SoftwarePane.__init__(self, cache, db, icons, datadir)
  File "/usr/share/software-center/softwarecenter/view/softwarepane.py", line 92, in __init__
    self.datadir)
  File "/usr/share/software-center/softwarecenter/view/appdetailsview.py", line 102, in __init__
    self.aptd_client = client.AptClient()
  File "/usr/lib/python2.6/dist-packages/aptdaemon/client.py", line 382, in __init__
    self._locale = "%s.%s" % locale.getdefaultlocale()
  File "/usr/lib/python2.6/locale.py", line 478, in getdefaultlocale
    return _parse_localename(localename)
  File "/usr/lib/python2.6/locale.py", line 410, in _parse_localename
    raise ValueError, 'unknown locale: %s' % localename
ValueError: unknown locale: en_AG

Revision history for this message
jamielljoseph@gmail.com (jamielljoseph) said :
#3

It is still not working guys

Revision history for this message
madmed (medbelh) said :
#4

run this form a terminal:
sudo /usr/bin/software-center

Revision history for this message
madmed (medbelh) said :
#5

sorry didn't read the previous comment. try to reinstall the software-center. go to synaptic, search for software-center and the right click and mark for reinstallation.

Revision history for this message
jamielljoseph@gmail.com (jamielljoseph) said :
#6

Hi I got the same thing like before. I tried re-installing but it still doesn't work. I still get this message

jamiell@jamiell-laptop:~$ sudo /usr/bin/software-center
Traceback (most recent call last):
  File "/usr/bin/software-center", line 80, in <module>
    app = SoftwareCenterApp(datadir, xapian_base_path)
  File "/usr/share/software-center/softwarecenter/app.py", line 140, in __init__
    self.icons, datadir)
  File "/usr/share/software-center/softwarecenter/view/availablepane.py", line 58, in __init__
    SoftwarePane.__init__(self, cache, db, icons, datadir)
  File "/usr/share/software-center/softwarecenter/view/softwarepane.py", line 92, in __init__
    self.datadir)
  File "/usr/share/software-center/softwarecenter/view/appdetailsview.py", line 102, in __init__
    self.aptd_client = client.AptClient()
  File "/usr/lib/python2.6/dist-packages/aptdaemon/client.py", line 382, in __init__
    self._locale = "%s.%s" % locale.getdefaultlocale()
  File "/usr/lib/python2.6/locale.py", line 478, in getdefaultlocale
    return _parse_localename(localename)
  File "/usr/lib/python2.6/locale.py", line 410, in _parse_localename
    raise ValueError, 'unknown locale: %s' % localename
ValueError: unknown locale: en_AG

Revision history for this message
madmed (medbelh) said :
#7

It's a bug in python 2.6 https://bugs.launchpad.net/ubuntu/+source/python2.6/+bug/223281.
you should update your python 2.6 from this ppa

Revision history for this message
madmed (medbelh) said :
#8
Revision history for this message
jamielljoseph@gmail.com (jamielljoseph) said :
#9

Mahmed thank you for your patience but I have done what the instructions said about adding the new sources but I do not now how to update the python 2.6 with them.

Revision history for this message
madmed (medbelh) said :
#10

its is mentionned in the ppa:
How do I use software from a PPA?

To start installing and using software from a Personal Package Archive, you first need to tell Ubuntu where to find the PPA and how to verify the authenticity of its software.

Adding the PPA to Ubuntu

Step 1: Copy the first line from the apt sources.list entries section of the PPA overview page. For example:

deb http://ppa.launchpad.net/jmarsden/ppa/ubuntu karmic main

Step 2: On your Ubuntu computer, open System > Administration > Software Sources.

Step 3: Click the Third Party Software tab.

Step 4: Click the Add button.

Step 5: Paste the line you copied in step 1 and click the Add Source button.

Step 6: Now copy the second line from the apt sources.list entries section of the PPA overview page and paste it in just as you did in steps 4 and 5.

When prompted, reload the software sources information. Don't worry if you see a warning about unverified software sources; we're going to fix that next.

Telling Ubuntu how to authenticate the PPA

Now Ubuntu knows about the PPA. It also needs to know how to check the software hasn't been tampered with since Launchpad built it.

Note: This is not an endorsement of any of the software in PPAs. You must make sure you trust the PPA owner before installing their software.

Step 1: On the PPA's overview page you'll see the PPA's OpenPGP key id. It'll look something like this: 1024/12345678. Copy it, or make a note of, the portion after the slash, e.g: 12345678.

Step 2: Open your terminal and enter:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 12345678

Replace 12345678 with the key id you copied in step 1.

Step 3: Finally, tell Ubuntu to re-load the details of each software archive it knows about:

sudo apt-get update

You're now ready to install software from the PPA!

Read more about Personal Package Archives in our help wiki.

Revision history for this message
madmed (medbelh) said :
#11

its is mentionned in the ppa:
How do I use software from a PPA?

To start installing and using software from a Personal Package Archive, you first need to tell Ubuntu where to find the PPA and how to verify the authenticity of its software.

Adding the PPA to Ubuntu

Step 1: Copy the first line from the apt sources.list entries section of the PPA overview page. For example:

deb http://ppa.launchpad.net/jmarsden/ppa/ubuntu karmic main

Step 2: On your Ubuntu computer, open System > Administration > Software Sources.

Step 3: Click the Third Party Software tab.

Step 4: Click the Add button.

Step 5: Paste the line you copied in step 1 and click the Add Source button.

Step 6: Now copy the second line from the apt sources.list entries section of the PPA overview page and paste it in just as you did in steps 4 and 5.

When prompted, reload the software sources information. Don't worry if you see a warning about unverified software sources; we're going to fix that next.

Telling Ubuntu how to authenticate the PPA

Now Ubuntu knows about the PPA. It also needs to know how to check the software hasn't been tampered with since Launchpad built it.

Note: This is not an endorsement of any of the software in PPAs. You must make sure you trust the PPA owner before installing their software.

Step 1: On the PPA's overview page you'll see the PPA's OpenPGP key id. It'll look something like this: 1024/12345678. Copy it, or make a note of, the portion after the slash, e.g: 12345678.

Step 2: Open your terminal and enter:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 12345678

Replace 12345678 with the key id you copied in step 1.

Step 3: Finally, tell Ubuntu to re-load the details of each software archive it knows about:

sudo apt-get update

You're now ready to install software from the PPA!

you open then the update manager and check for updates then update.

Revision history for this message
jamielljoseph@gmail.com (jamielljoseph) said :
#12

No There aren't any new updates.

Revision history for this message
madmed (medbelh) said :
#13

hmm, try reinstalling python2.6. If this doesn't work you can find more help here: https://bugs.launchpad.net/ubuntu/+source/python2.6/+bug/223281

Revision history for this message
Jonathan Marsden (jmarsden) said :
#14

jamielljoseph: Please post the output you see when you run

  apt-cache policy | grep -i ppa

in a Terminal window. If there is no output, it means you have not yet successfully added my PPA to your set of software sources.

Jonathan

Revision history for this message
jamielljoseph@gmail.com (jamielljoseph) said :
#15

This is the ouptput I get from apt-cache | grep -i ppa is:

500 http://ppa.launchpad.net karmic/main Packages
     release v=9.10,o=LP-PPA-jmarsden,a=karmic,n=karmic,l=Ubuntu,c=main
     origin ppa.launchpad.net

On Thu, Nov 26, 2009 at 4:13 AM, Jonathan Marsden <
<email address hidden>> wrote:

> Your question #91090 on software-center in ubuntu changed:
>
> https://answers.edge.launchpad.net/ubuntu/+source/software-center/+question/91090
>
> Jonathan Marsden requested for more information:
> jamielljoseph: Please post the output you see when you run
>
> apt-cache policy | grep -i ppa
>
> in a Terminal window. If there is no output, it means you have not yet
> successfully added my PPA to your set of software sources.
>
> Jonathan
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
>
> https://answers.edge.launchpad.net/ubuntu/+source/software-center/+question/91090
>
> You received this question notification because you are a direct
> subscriber of the question.
>

--
Everything has its beauty but not everyone sees it.
                     Confucius

Revision history for this message
jamielljoseph@gmail.com (jamielljoseph) said :
#16

so what seems to be the problem?

Revision history for this message
Jonathan Marsden (jmarsden) said :
#17

@jamielljoseph:

500 http://ppa.launchpad.net karmic/main Packages
     release v=9.10,o=LP-PPA-jmarsden,a=karmic,n=karmic,l=Ubuntu,c=main
     origin ppa.launchpad.net

looks fine to me. So please try

  dpkg-query -W python2.6 # Which version of python2.6 is installed
  sudo apt-get update # Update apt database
  sudo apt-get install python2.6 # Install python2.6
  sudo apt-get dist-upgrade # Upgrade everything we can upgrade
  dpkg-query -W python2.6 # Now which version of python2.6 is installed

and report your results.

Jonathan

Revision history for this message
jamielljoseph@gmail.com (jamielljoseph) said :
#18

Hi Johnathon, Thanks again for the help so far. These are the results:

python2.6 2.6.4-0ubuntu2

Hit http://security.ubuntu.com karmic-security Release.gpg

Ign http://security.ubuntu.com karmic-security/main Translation-en_AG

Hit http://ag.archive.ubuntu.com karmic Release.gpg

Ign http://ag.archive.ubuntu.com karmic/main Translation-en_AG

Hit http://ppa.launchpad.net karmic Release.gpg

Ign http://ppa.launchpad.net karmic/main Translation-en_AG

Ign http://security.ubuntu.com karmic-security/restricted Translation-en_AG

Ign http://security.ubuntu.com karmic-security/universe Translation-en_AG

Ign http://security.ubuntu.com karmic-security/multiverse Translation-en_AG

Ign http://ag.archive.ubuntu.com karmic/restricted Translation-en_AG

Ign http://ag.archive.ubuntu.com karmic/universe Translation-en_AG

Ign http://ag.archive.ubuntu.com karmic/multiverse Translation-en_AG

Hit http://ag.archive.ubuntu.com karmic-updates Release.gpg

Ign http://ag.archive.ubuntu.com karmic-updates/main Translation-en_AG

Ign http://ag.archive.ubuntu.com karmic-updates/restricted Translation-en_AG

Ign http://ag.archive.ubuntu.com karmic-updates/universe Translation-en_AG

Ign http://ag.archive.ubuntu.com karmic-updates/multiverse Translation-en_AG

Hit http://security.ubuntu.com karmic-security Release

Hit http://ag.archive.ubuntu.com karmic Release

Hit http://ppa.launchpad.net karmic Release

Hit http://ag.archive.ubuntu.com karmic-updates Release

Hit http://security.ubuntu.com karmic-security/main Packages

Hit http://ag.archive.ubuntu.com karmic/main Packages

Hit http://ppa.launchpad.net karmic/main Packages

Hit http://security.ubuntu.com karmic-security/restricted Packages

Hit http://security.ubuntu.com karmic-security/universe Packages

Hit http://security.ubuntu.com karmic-security/multiverse Packages

Hit http://ag.archive.ubuntu.com karmic/restricted Packages

Hit http://ag.archive.ubuntu.com karmic/universe Packages

Hit http://ag.archive.ubuntu.com karmic/multiverse Packages

Hit http://ag.archive.ubuntu.com karmic-updates/main Packages

Hit http://ag.archive.ubuntu.com karmic-updates/restricted Packages

Hit http://ppa.launchpad.net karmic/main Sources

Hit http://ag.archive.ubuntu.com karmic-updates/universe Packages

Hit http://ag.archive.ubuntu.com karmic-updates/multiverse Packages

Reading package lists... Done

 Reading package lists... Done

Building dependency tree

Reading state information... Done

python2.6 is already the newest version.

0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

 Reading package lists... Done

Building dependency tree

Reading state information... Done

Calculating upgrade... Done

The following packages will be upgraded:

tzdata

1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Need to get 688kB of archives.

After this operation, 0B of additional disk space will be used.

Do you want to continue [Y/n]? y

Get:1 http://ag.archive.ubuntu.com karmic-updates/main tzdata
2009s-0ubuntu0.9.10 [688kB]

Fetched 688kB in 11s (59.9kB/s)

Preconfiguring packages ...

(Reading database ... 191270 files and directories currently installed.)

Preparing to replace tzdata 2009r-0ubuntu9.10 (using
.../tzdata_2009s-0ubuntu0.9.10_all.deb) ...

Unpacking replacement tzdata ...

Setting up tzdata (2009s-0ubuntu0.9.10) ...

 Current default time zone: 'America/Antigua'

Local time is now: Sat Nov 28 07:33:51 AST 2009.

Universal Time is now: Sat Nov 28 11:33:51 UTC 2009.

Run 'dpkg-reconfigure tzdata' if you wish to change it.

 python2.6 2.6.4-0ubuntu2

On Sat, Nov 28, 2009 at 12:24 AM, Jonathan Marsden <
<email address hidden>> wrote:

> Your question #91090 on software-center in ubuntu changed:
>
> https://answers.edge.launchpad.net/ubuntu/+source/software-center/+question/91090
>
> Status: Open => Answered
>
> Jonathan Marsden proposed the following answer:
> @jamielljoseph:
>
> 500 http://ppa.launchpad.net karmic/main Packages
> release v=9.10,o=LP-PPA-jmarsden,a=karmic,n=karmic,l=Ubuntu,c=main
> origin ppa.launchpad.net
>
> looks fine to me. So please try
>
> dpkg-query -W python2.6 # Which version of python2.6 is installed
> sudo apt-get update # Update apt database
> sudo apt-get install python2.6 # Install python2.6
> sudo apt-get dist-upgrade # Upgrade everything we can upgrade
> dpkg-query -W python2.6 # Now which version of python2.6 is
> installed
>
> and report your results.
>
> Jonathan
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
>
> https://answers.edge.launchpad.net/ubuntu/+source/software-center/+question/91090/+confirm?answer_id=16
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
>
> https://answers.edge.launchpad.net/ubuntu/+source/software-center/+question/91090
>
> You received this question notification because you are a direct
> subscriber of the question.
>

--
Everything has its beauty but not everyone sees it.
                     Confucius

Revision history for this message
jamielljoseph@gmail.com (jamielljoseph) said :
#19

Hi Johnathon. Thanks for everything so far. These are the results:

1. python2.6 2.6.4-0ubuntu2

2. Hit http://security.ubuntu.com karmic-security Release.gpg

   Ign http://security.ubuntu.com karmic-security/main Translation-en_AG

   Hit http://ag.archive.ubuntu.com karmic Release.gpg

   Ign http://ag.archive.ubuntu.com karmic/main Translation-en_AG

   Hit http://ppa.launchpad.net karmic Release.gpg

   Ign http://ppa.launchpad.net karmic/main Translation-en_AG

   Ign http://security.ubuntu.com karmic-security/restricted Translation-en_AG

   Ign http://security.ubuntu.com karmic-security/universe Translation-en_AG

   Ign http://security.ubuntu.com karmic-security/multiverse Translation-en_AG

   Ign http://ag.archive.ubuntu.com karmic/restricted Translation-en_AG

   Ign http://ag.archive.ubuntu.com karmic/universe Translation-en_AG

   Ign http://ag.archive.ubuntu.com karmic/multiverse Translation-en_AG

   Hit http://ag.archive.ubuntu.com karmic-updates Release.gpg

   Ign http://ag.archive.ubuntu.com karmic-updates/main Translation-en_AG

   Ign http://ag.archive.ubuntu.com karmic-updates/restricted Translation-en_AG

   Ign http://ag.archive.ubuntu.com karmic-updates/universe Translation-en_AG

   Ign http://ag.archive.ubuntu.com karmic-updates/multiverse Translation-en_AG

   Hit http://security.ubuntu.com karmic-security Release

   Hit http://ag.archive.ubuntu.com karmic Release

   Hit http://ppa.launchpad.net karmic Release

   Hit http://ag.archive.ubuntu.com karmic-updates Release

   Hit http://security.ubuntu.com karmic-security/main Packages

   Hit http://ag.archive.ubuntu.com karmic/main Packages

   Hit http://ppa.launchpad.net karmic/main Packages

   Hit http://security.ubuntu.com karmic-security/restricted Packages

   Hit http://security.ubuntu.com karmic-security/universe Packages

   Hit http://security.ubuntu.com karmic-security/multiverse Packages

   Hit http://ag.archive.ubuntu.com karmic/restricted Packages

   Hit http://ag.archive.ubuntu.com karmic/universe Packages

   Hit http://ag.archive.ubuntu.com karmic/multiverse Packages

   Hit http://ag.archive.ubuntu.com karmic-updates/main Packages

   Hit http://ag.archive.ubuntu.com karmic-updates/restricted Packages

   Hit http://ppa.launchpad.net karmic/main Sources

   Hit http://ag.archive.ubuntu.com karmic-updates/universe Packages

   Hit http://ag.archive.ubuntu.com karmic-updates/multiverse Packages

   Reading package lists... Done

3. Reading package lists... Done

   Building dependency tree

   Reading state information... Done

   python2.6 is already the newest version.

   0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

4. Reading package lists... Done

   Building dependency tree

   Reading state information... Done

   Calculating upgrade... Done

   The following packages will be upgraded:

    tzdata

   1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

   Need to get 688kB of archives.

   After this operation, 0B of additional disk space will be used.

   Do you want to continue [Y/n]? y

   Get:1 http://ag.archive.ubuntu.com karmic-updates/main tzdata 2009s-0ubuntu0.9.10 [688kB]

   Fetched 688kB in 11s (59.9kB/s)

   Preconfiguring packages ...

   (Reading database ... 191270 files and directories currently installed.)

   Preparing to replace tzdata 2009r-0ubuntu9.10 (using .../tzdata_2009s-0ubuntu0.9.10_all.deb) ...

   Unpacking replacement tzdata ...

   Setting up tzdata (2009s-0ubuntu0.9.10) ...

   Current default time zone: 'America/Antigua'

   Local time is now: Sat Nov 28 07:33:51 AST 2009.

   Universal Time is now: Sat Nov 28 11:33:51 UTC 2009.

   Run 'dpkg-reconfigure tzdata' if you wish to change it.

5. python2.6 2.6.4-0ubuntu2

Revision history for this message
Best Jonathan Marsden (jmarsden) said :
#20

@jamielljoseph

It looks like you already have my package installed? But I'm not sure.

Let's check that: What does

  grep -n information /usr/lib/python2.6/locale.py

output? If you see something like

410: # locale name value does not have encoding information

then you already installed my package, including its fix to that file.

If not, try downloading it and installing it by hand (this is for a 32bit i386 machine, replace i386 with amd64 for a 64bit system):

  wget -c https://edge.launchpad.net/~jmarsden/+archive/ppa/+files/python2.6_2.6.4-0ubuntu2_i386.deb
  wget -c https://edge.launchpad.net/~jmarsden/+archive/ppa/+files/libpython2.6_2.6.4-0ubuntu2_i386.deb
  sudo dpkg -i *python2.6*2_i386.deb

The patch in my package of python2.6 really "should" solve this issue for you. If the above does not help, rather than continuing support here via Answers, could you use IRC so I can try to assist you "live"? I am often on Freenode (irc.freenode.net) in #ubuntu-server in the late evening Pacific time, my irc nick is jmarsden. If you do not have an IRC client program installed, try http://webchat.freenode.net/?channels=ubuntu-server

Jonathan

Revision history for this message
jamielljoseph@gmail.com (jamielljoseph) said :
#21

Hey Johnathon, The last tip you gave me about downloading it manually worked. Your the best man thanks. Have a great day!