Ubuntu Software Center Doesn't work in Mint 9

Questions about applications and software
Forum rules
Before you post please read how to get help
User avatar
Jeff91
Level 3
Level 3
Posts: 156
Joined: Sun Jul 19, 2009 6:37 pm
Location: Blue Island, IL
Contact:

Ubuntu Software Center Doesn't work in Mint 9

Postby Jeff91 » Mon Jun 21, 2010 11:36 am

The Ubuntu Software Center no longer loads on Mint 9 - it fails to load with the following message

Code: Select all

jeff@jubuntu ~ $ software-center
Traceback (most recent call last):
  File "/usr/bin/software-center", line 78, in <module>
    from softwarecenter.app import SoftwareCenterApp
  File "/usr/share/software-center/softwarecenter/app.py", line 42, in <module>
    from view.viewswitcher import ViewSwitcher, ViewSwitcherList
  File "/usr/share/software-center/softwarecenter/view/viewswitcher.py", line 34, in <module>
    from softwarecenter.backend.channel import SoftwareChannel
  File "/usr/share/software-center/softwarecenter/backend/channel.py", line 22, in <module>
    from softwarecenter.distro import get_distro
  File "/usr/share/software-center/softwarecenter/distro/__init__.py", line 88, in <module>
    distro_instance=_get_distro()
  File "/usr/share/software-center/softwarecenter/distro/__init__.py", line 77, in _get_distro
    module =  __import__(distro_id, globals(), locals(), [], -1)
ImportError: No module named LinuxMint


Any suggestions? The Mint software manager is BUGGY. And I want to be able to install Mint for people, but really I am embarrassed to give it out with the default software manager. Really want to get this working...

~Jeff Hoogland

User avatar
bob5
Level 4
Level 4
Posts: 379
Joined: Sun Oct 11, 2009 8:01 am

Re: Ubuntu Software Center Doesn't work in Mint 9

Postby bob5 » Mon Jun 21, 2010 4:43 pm

hi

you will need to run as sudo :

try
gksudo software-center

if that does not work it will

Code: Select all

sudo software-center
Hope it helps!
Guides by me :
how to use wicd as an network manger:
http://ubuntugeek.com/forum/index.php/topic,269.0.html

User avatar
Jeff91
Level 3
Level 3
Posts: 156
Joined: Sun Jul 19, 2009 6:37 pm
Location: Blue Island, IL
Contact:

Re: Ubuntu Software Center Doesn't work in Mint 9

Postby Jeff91 » Tue Jun 22, 2010 1:26 pm

Same results

Code: Select all

jeff@jubuntu ~ $ sudo software-center
[sudo] password for jeff:
Traceback (most recent call last):
  File "/usr/bin/software-center", line 78, in <module>
    from softwarecenter.app import SoftwareCenterApp
  File "/usr/share/software-center/softwarecenter/app.py", line 42, in <module>
    from view.viewswitcher import ViewSwitcher, ViewSwitcherList
  File "/usr/share/software-center/softwarecenter/view/viewswitcher.py", line 34, in <module>
    from softwarecenter.backend.channel import SoftwareChannel
  File "/usr/share/software-center/softwarecenter/backend/channel.py", line 22, in <module>
    from softwarecenter.distro import get_distro
  File "/usr/share/software-center/softwarecenter/distro/__init__.py", line 88, in <module>
    distro_instance=_get_distro()
  File "/usr/share/software-center/softwarecenter/distro/__init__.py", line 77, in _get_distro
    module =  __import__(distro_id, globals(), locals(), [], -1)
ImportError: No module named LinuxMint


Any other suggestions?
~Jeff

User avatar
bob5
Level 4
Level 4
Posts: 379
Joined: Sun Oct 11, 2009 8:01 am

Re: Ubuntu Software Center Doesn't work in Mint 9

Postby bob5 » Tue Jun 22, 2010 3:53 pm

hi

did you try : gksudo software-center ???
Hope it helps!
Guides by me :
how to use wicd as an network manger:
http://ubuntugeek.com/forum/index.php/topic,269.0.html

User avatar
Jeff91
Level 3
Level 3
Posts: 156
Joined: Sun Jul 19, 2009 6:37 pm
Location: Blue Island, IL
Contact:

Re: Ubuntu Software Center Doesn't work in Mint 9

Postby Jeff91 » Tue Jun 22, 2010 5:44 pm

bob5 wrote:hi

did you try : gksudo software-center ???


That is the same command only it asks for the password in a popup instead of in terminal. As such it gives the same output

Code: Select all

jeff@jubuntu ~ $ gksudo software-center
    from softwarecenter.app import SoftwareCenterApp
  File "/usr/share/software-center/softwarecenter/app.py", line 42, in <module>
    from view.viewswitcher import ViewSwitcher, ViewSwitcherList
  File "/usr/share/software-center/softwarecenter/view/viewswitcher.py", line 34, in <module>
    from softwarecenter.backend.channel import SoftwareChannel
  File "/usr/share/software-center/softwarecenter/backend/channel.py", line 22, in <module>
    from softwarecenter.distro import get_distro
  File "/usr/share/software-center/softwarecenter/distro/__init__.py", line 88, in <module>
    distro_instance=_get_distro()
  File "/usr/share/software-center/softwarecenter/distro/__init__.py", line 77, in _get_distro
    module =  __import__(distro_id, globals(), locals(), [], -1)
ImportError: No module named LinuxMint


Other (new) suggestions?

~Jeff

User avatar
bob5
Level 4
Level 4
Posts: 379
Joined: Sun Oct 11, 2009 8:01 am

Re: Ubuntu Software Center Doesn't work in Mint 9

Postby bob5 » Tue Jun 22, 2010 5:57 pm

hi

-it looks like it does not like mint !

Code: Select all

ImportError: No module named LinuxMint
Hope it helps!
Guides by me :
how to use wicd as an network manger:
http://ubuntugeek.com/forum/index.php/topic,269.0.html

User avatar
Jeff91
Level 3
Level 3
Posts: 156
Joined: Sun Jul 19, 2009 6:37 pm
Location: Blue Island, IL
Contact:

Re: Ubuntu Software Center Doesn't work in Mint 9

Postby Jeff91 » Tue Jun 22, 2010 7:44 pm

bob5 wrote:hi

-it looks like it does not like mint !

Code: Select all

ImportError: No module named LinuxMint


/sigh

Really? Thanks for pointing that out - I couldn't read it for myself! I got it working, details to come.

~Jeff


vincent
Level 8
Level 8
Posts: 2218
Joined: Tue Feb 09, 2010 4:10 am

Re: Ubuntu Software Center Doesn't work in Mint 9

Postby vincent » Wed Jun 23, 2010 1:25 am

Glad you managed to solve it by yourself. Having a bit of Python experience sure is helpful, isn't it? ;)
Debian Testing x64/LM9 Main x64/Windows 7 x64 - LG R580 laptop w/ Intel Core 2 Duo T6500 2.1 GHz, 4 GB DDR2 RAM, Nvidia Geforce G 105M, Ralink rt2860 802.11n, 300 GB WD HD 5400 rpm

User avatar
Jeff91
Level 3
Level 3
Posts: 156
Joined: Sun Jul 19, 2009 6:37 pm
Location: Blue Island, IL
Contact:

Re: Ubuntu Software Center Doesn't work in Mint 9

Postby Jeff91 » Wed Jun 23, 2010 12:24 pm

Haha yep! Plus having the source code helps as well :)

~Jeff

User avatar
bob5
Level 4
Level 4
Posts: 379
Joined: Sun Oct 11, 2009 8:01 am

Re: Ubuntu Software Center Doesn't work in Mint 9

Postby bob5 » Thu Jun 24, 2010 7:27 am

hi


-nice fix !
Hope it helps!
Guides by me :
how to use wicd as an network manger:
http://ubuntugeek.com/forum/index.php/topic,269.0.html

travlemon
Level 2
Level 2
Posts: 54
Joined: Fri Mar 05, 2010 2:18 pm

Re: Ubuntu Software Center Doesn't work in Mint 9

Postby travlemon » Thu Mar 03, 2011 5:50 pm

Jeff91 wrote:http://jeffhoogland.blogspot.com/2010/06/howto-use-ubuntu-software-center-in.html

Cheers,
~Jeff



Hello,

When I try to use this fix, I am still not able to open the software center. After applying the fix, I receive a different error in the terminal, after trying to run the software center. This is the output:

Code: Select all

2011-03-03 16:45:45,654 - softwarecenter.fixme - WARNING - logs to the root logger: '('/usr/share/software-center/softwarecenter/view/widgets/mkit_themes.py', 675, 'retrieve')'
2011-03-03 16:45:45,653 - root - WARNING - No styling hints for Mint-X-Metal were found... using Human hints.
Traceback (most recent call last):
  File "/usr/bin/software-center", line 90, in <module>
    app = SoftwareCenterApp(datadir, xapian_base_path, options, args)
  File "/usr/share/software-center/softwarecenter/app.py", line 220, in __init__
    self.navhistory_forward_action)
  File "/usr/share/software-center/softwarecenter/view/availablepane.py", line 101, in __init__
    self._build_ui()
  File "/usr/share/software-center/softwarecenter/view/availablepane.py", line 112, in _build_ui
    self.apps_filter)
  File "/usr/share/software-center/softwarecenter/view/catview_gtk.py", line 251, in __init__
    self.build(desktopdir)
  File "/usr/share/software-center/softwarecenter/view/catview_gtk.py", line 434, in build
    self.categories = self.parse_applications_menu(desktopdir)
  File "/usr/share/software-center/softwarecenter/view/catview.py", line 109, in parse_applications_menu
    category = self._parse_menu_tag(child)
  File "/usr/share/software-center/softwarecenter/view/catview.py", line 265, in _parse_menu_tag
    query = self._parse_include_tag(element)
  File "/usr/share/software-center/softwarecenter/view/catview.py", line 226, in _parse_include_tag
    return self._parse_and_or_not_tag(include, query, xapian.Query.OP_AND)
  File "/usr/share/software-center/softwarecenter/view/catview.py", line 173, in _parse_and_or_not_tag
    or_elem = self._parse_and_or_not_tag(and_elem, xapian.Query(), xapian.Query.OP_OR)
  File "/usr/share/software-center/softwarecenter/view/catview.py", line 213, in _parse_and_or_not_tag
    q = self.db.xapian_parser.parse_query(s, xapian.QueryParser.FLAG_WILDCARD)
AttributeError: 'StoreDatabase' object has no attribute 'xapian_parser'


This result has been consistent for me on 2 machines running Linux Mint 10. I believe your fix was for Mint 9. Any help is appreciated, thanks!
For my video tutorials, check out:
http://www.youtube.com/webhunterification

User avatar
Jeff91
Level 3
Level 3
Posts: 156
Joined: Sun Jul 19, 2009 6:37 pm
Location: Blue Island, IL
Contact:

Re: Ubuntu Software Center Doesn't work in Mint 9

Postby Jeff91 » Thu Mar 10, 2011 6:59 pm

From the comments on my blog post - not written by me -

I found out how to get it installed on Mint 10.....Before running any of the commands do the following as noted above:

Try this:
* sudo gedit /etc/lsb-release
* change the line "DISTRIB_ID=LinuxMint" for "DISTRIB_ID=Ubuntu"
* Save the changes.

Then do the the mod as listed above:
sudo apt-get install software-center
wget http://www.tophattwaffle.com/wp-content ... om__init__
sudo rm /usr/share/software-center/softwarecenter/distro/__init__.py
sudo mv custom__init__ /usr/share/software-center/softwarecenter/distro/__init__.py

Then run software center to make sure it works.
After it works, fix the release you changed at first by:

* sudo gedit /etc/lsb-release
* change the line "DISTRIB_ID=Ubuntu" for "DISTRIB_ID=LinuxMint"
* Save the changes.

Found that the install of software center was crashing because of the Distrib ID


Cheers,
~Jeff

travlemon
Level 2
Level 2
Posts: 54
Joined: Fri Mar 05, 2010 2:18 pm

Re: Ubuntu Software Center Doesn't work in Mint 9

Postby travlemon » Thu Mar 10, 2011 8:02 pm

Jeff91 wrote:From the comments on my blog post - not written by me -

I found out how to get it installed on Mint 10.....Before running any of the commands do the following as noted above:

Try this:
* sudo gedit /etc/lsb-release
* change the line "DISTRIB_ID=LinuxMint" for "DISTRIB_ID=Ubuntu"
* Save the changes.

Then do the the mod as listed above:
sudo apt-get install software-center
wget http://www.tophattwaffle.com/wp-content ... om__init__
sudo rm /usr/share/software-center/softwarecenter/distro/__init__.py
sudo mv custom__init__ /usr/share/software-center/softwarecenter/distro/__init__.py

Then run software center to make sure it works.
After it works, fix the release you changed at first by:

* sudo gedit /etc/lsb-release
* change the line "DISTRIB_ID=Ubuntu" for "DISTRIB_ID=LinuxMint"
* Save the changes.

Found that the install of software center was crashing because of the Distrib ID


Cheers,
~Jeff


Awesome!! That worked for me, thanks so much! The Ubuntu Software Center is wayyyyy better than the Mint Software Manager. Thanks again!

EDIT: Just wanted to add one last thing for anyone else who might have trouble. In a nutshell, I replaced the __init__.py file with your modified version. I also had to modify /etc/lsb-release to say Ubuntu for the DISTRIB_ID. I tried it on another machine and it didn't work until I reinstalled the software-center package in Synaptic. Just wanted to throw that out there for anyone else who has any trouble. Trying to destroy the road blocks!
For my video tutorials, check out:
http://www.youtube.com/webhunterification

panderohit
Level 1
Level 1
Posts: 7
Joined: Fri May 06, 2011 9:12 pm

Re: Ubuntu Software Center Doesn't work in Mint 9

Postby panderohit » Fri Jun 17, 2011 8:52 am

Hi jeff. nice fix. however the 'for purchase' is empty. any solutions for that? am i required to add a repository in the software sources to get the purchaseable apps?


Return to “Software & Applications”

Who is online

Users browsing this forum: No registered users and 4 guests