Author Topic: Ubuntu Software Center crashing for you? Here's the solution.  (Read 13184 times)

0 Members and 1 Guest are viewing this topic.

Offline BkS

  • BkS Media Founder
  • Hero Member
  • *****
  • Posts: 1662
  • Karma: 49
  • Gender: Male
  • sudo service reality-check start
    • View Profile
    • BkS Media
    • Awards
Recently people have been complaining that the USC crashes for a couple of seconds on launching the application. The problem lies within one of the views in which you view USC in.

Luckily there is a solution.

Open terminal, and enter:

Code: [Select]
sudo gedit /usr/share/software-center/softwarecenter/ui/gtk3/views/appdetailsview.py

Find the line, that reads:

Quote
self.progress.set_data("transparent-bg-hint", True)

and change it, so it reads:

Quote
#self.progress.set_data("transparent-bg-hint", True)

Save the file, and then close it. The bug will go away and you can happily open USC without it crashing. :)
If you try to look through Windows, you can see what the person is doing.
If you try to look through a Penguin, it WILL bite you.

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 14015
  • Karma: 348
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Ubuntu Software Center crashing for you? Here's the solution.
« Reply #1 on: June 09, 2012, 04:11:48 pm »
I don't use the USC (at all, ever, I hate it), so is there any particular Ubuntu version this bug is related to ?

I don't even use it to install Synaptic and gdebi .. I do that from the command line ;)
« Last Edit: June 09, 2012, 04:14:21 pm by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline BkS

  • BkS Media Founder
  • Hero Member
  • *****
  • Posts: 1662
  • Karma: 49
  • Gender: Male
  • sudo service reality-check start
    • View Profile
    • BkS Media
    • Awards
Re: Ubuntu Software Center crashing for you? Here's the solution.
« Reply #2 on: June 09, 2012, 04:21:25 pm »
I'm the same! Synaptoc & GDebi all the way!

The bug seems to main affect people on Ubuntu 12.04, but the solution works for <=12.04 as well.
If you try to look through Windows, you can see what the person is doing.
If you try to look through a Penguin, it WILL bite you.

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 14015
  • Karma: 348
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Ubuntu Software Center crashing for you? Here's the solution.
« Reply #3 on: June 09, 2012, 04:52:49 pm »
The USC is just too slow, and for some reason max's out my CPU cores.
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline BkS

  • BkS Media Founder
  • Hero Member
  • *****
  • Posts: 1662
  • Karma: 49
  • Gender: Male
  • sudo service reality-check start
    • View Profile
    • BkS Media
    • Awards
Re: Ubuntu Software Center crashing for you? Here's the solution.
« Reply #4 on: June 09, 2012, 05:44:49 pm »
I haven't seen it maxing out my cores, but it definitely is slow. The only time I'll probably EVER use it, is when installing the Humble Bundle games.
If you try to look through Windows, you can see what the person is doing.
If you try to look through a Penguin, it WILL bite you.

Offline lazycat

  • Jr. Member
  • **
  • Posts: 1
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: Ubuntu Software Center crashing for you? Here's the solution.
« Reply #5 on: October 02, 2012, 10:07:07 am »
Hi,

USC is crashing seconds after I launch it (Ubuntu 12.04)
After a quick search, I found the fix in this thread (thanks for this).
 
My problem is: I do not have the line to fix in the file. (line "self.progress.set_data("transparent-bg-hint", True)" in file "/usr/share/software-center/softwarecenter/ui/gtk3/views/appdetailsview.py").

BTW, i would enjoy learning how to do the updates on the console.

Thanks, Olivier

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 14015
  • Karma: 348
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Ubuntu Software Center crashing for you? Here's the solution.
« Reply #6 on: October 02, 2012, 12:07:18 pm »
Hi lazycat, and welcome to the forum :)

Open a terminal (Ctrl+Alt+T) and run:
Code: [Select]
software-center
what is returned in the terminal ?

Can you explain what you mean by

Quote
BTW, i would enjoy learning how to do the updates on the console.

if you mean install available software updates:
Code: [Select]
sudo apt-get update
then
Code: [Select]
sudo apt-get upgrade
will do the trick.
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline Benny

  • Jr. Member
  • **
  • Posts: 6
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: Ubuntu Software Center crashing for you? Here's the solution.
« Reply #7 on: December 23, 2012, 01:50:00 pm »
Just installed ubuntu and im having the same problem with software center. Also as with lazycat i couln't find that line in the file. This is what terminal returned to me:

2012-12-23 14:41:05,433 - softwarecenter.ui.gtk3.app - INFO - setting up proxy 'None'
2012-12-23 14:41:05,583 - softwarecenter.db.database - INFO - open() database: path=None use_axi=True use_agent=True
2012-12-23 14:41:20,912 - softwarecenter.backend.reviews - WARNING - Could not get usefulness from server, no username in config file
2012-12-23 14:41:21,478 - softwarecenter.fixme - WARNING - logs to the root logger: '('/usr/lib/python2.7/dist-packages/gi/importer.py', 51, 'find_module')'
2012-12-23 14:41:21,478 - root - ERROR - Could not find any typelib for LaunchpadIntegration
2012-12-23 14:41:24,765 - softwarecenter.ui.gtk3.app - INFO - show_available_packages: search_text is '', app is None.
2012-12-23 14:41:24,840 - softwarecenter.db.pkginfo_impl.aptcache - INFO - aptcache.open()
2012-12-23 14:41:48,755 - softwarecenter.ui.gtk3.app - INFO - closing before the regular main loop was run

I used Ubuntu  some time ago, but never that much so would really love some help on this :)

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 14015
  • Karma: 348
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Ubuntu Software Center crashing for you? Here's the solution.
« Reply #8 on: December 23, 2012, 02:32:29 pm »
See if installing

python-gi-cairo

and

gir1.2-launchpad-integration-3.0

sorts the problem ..

Open a terminal (Ctrl+Alt+T), and run these 3 commands:
Code: [Select]
sudo apt-get update
then
Code: [Select]
sudo apt-get upgrade
then:
Code: [Select]
sudo apt-get install --reinstall python-gi-cairo gir1.2-launchpad-integration-3.0
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline Benny

  • Jr. Member
  • **
  • Posts: 6
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: Ubuntu Software Center crashing for you? Here's the solution.
« Reply #9 on: December 23, 2012, 03:02:56 pm »
Sadly it did not help.

I tried going back to the file mentioned in the original post, still didn't see the line talked about :(

The computer in general runs fine with Linux, it's just software center being buggy.

Any other suggestions would be really appreciated!

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 14015
  • Karma: 348
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Ubuntu Software Center crashing for you? Here's the solution.
« Reply #10 on: December 23, 2012, 03:19:19 pm »
With the software centre closed, try running:
Code: [Select]
mv ~/.cache/software-center ~/.cache/software-center-old
Now try the software centre.
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline Benny

  • Jr. Member
  • **
  • Posts: 6
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: Ubuntu Software Center crashing for you? Here's the solution.
« Reply #11 on: December 23, 2012, 03:25:44 pm »
This did nothing. Didn't even get a responce in terminal when running it.

If i understand correct this should make it switch to the old software center? This would really be nice, since  i liked the old design just fine :)

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 14015
  • Karma: 348
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Ubuntu Software Center crashing for you? Here's the solution.
« Reply #12 on: December 23, 2012, 04:23:10 pm »
If you mean Synaptic (which in my opinion is better anyway), run:
Code: [Select]
sudo apt-get install synaptic

Then search for "Synaptic Package Manager" in your menus :)
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 14015
  • Karma: 348
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Ubuntu Software Center crashing for you? Here's the solution.
« Reply #13 on: December 23, 2012, 04:34:02 pm »
If Synaptic works for you .. you might also want to install GDebi:
Code: [Select]
sudo apt-get install gdebi
to deal with .deb files.
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline Benny

  • Jr. Member
  • **
  • Posts: 6
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: Ubuntu Software Center crashing for you? Here's the solution.
« Reply #14 on: December 23, 2012, 04:54:06 pm »
Yeah that was what i remembered. Installed it and it "functions" just like the software center. Maxes my CPU, lags the entire system, wont actually perform any kind of installation and chrash when i try to close it :(

I searched alot for this problem, and i found alot of threads on different fora about this problem, and many different solutions that didn't seem to work for poster or me.

And once again, thx for helping me out here!

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal