3

HOWTO: Use Ubuntu Software Center in Mint 9

http://jeffhoogland.blogspot.com

There are a few reasons why I use Linux Mint instead of Ubuntu on my systems. That being said one of the reasons I do not list for using Mint over Ubuntu is their "Software Manager". The software manager in Mint 8 was flat out sad compared to the Ubuntu Software Center that Ubuntu 9.10 included. Now even though the software manager in Mint 9 has many improvements, it still has issues, and I don't think it is quiet on-par with the updated Software Center Ubuntu 10.04 includes.Now I still like Mint and a poor software center is not enough to make me to stop using the distro as a whole. As such, a quick fix to the issue is to remove Mint Install and apt-get the Ubuntu Software Center. Now this works fine in Mint 8, but after installing the Ubuntu Software Center in Mint 9 I was greeted by a lovely terminal out when the application failed to load:jeff@jubuntu ~ $ software-centerTraceback (most recent call last):File "/usr/bin/software-center", line 78, in from softwarecenter.app import SoftwareCenterAppFile "/usr/share/software-center/softwarecenter/app.py", line 42, in from view.viewswitcher import ViewSwitcher, ViewSwitcherListFile "/usr/share/software-center/softwarecenter/view/viewswitcher.py", line 34, in from softwarecenter.backend.channel import SoftwareChannelFile "/usr/share/software-center/softwarecenter/backend/channel.py", line 22, in from softwarecenter.distro import get_distroFile "/usr/share/software-center/softwarecenter/distro/__init__.py", line 88, in distro_instance=_get_distro()File "/usr/share/software-center/softwarecenter/distro/__init__.py", line 77, in _get_distromodule = __import__(distro_id, globals(), locals(), [], -1)ImportError: No module named LinuxMintAfter having a thread go nowhere useful for a day and a half on the Mint forums, I decided to put my python background to use and try to resolve the issue myself. The following steps are what I have done to resolve the issue.Open a terminal and run the following in order:sudo apt-get install software-centerwget http://www.tophattwaffle.com/wp-content/files/jeff/custom__init__sudo rm /usr/share/software-center/softwarecenter/distro/__init__.pysudo mv custom__init__ /usr/share/software-center/softwarecenter/distro/__init__.pyAnd you are all set! Run software-center and it should pop right up for you. Now, if you are like myself and want the Ubuntu Software Center to run instead of the Mint Software Manager when you click "Software Manager" on your Mint Menu run the following in terminal:sudo apt-get purge mintinstallsudo ln -s /usr/bin/software-center /usr/bin/mintinstallNow in case you are curious (or don't trust me) the edit I made to the __init__.py file you are downloading is made on line 72 in the _get_distro function. By default this line reads:distro_id = subprocess.Popen(["lsb_release","-i","-s"], stdout=subprocess.PIPE).communicate()[0].strip()My updated line simply manually sets our distro_id to be Ubuntu.distro_id = "Ubuntu"Hackish, but it works :) Isn't it fantastic when you have the source code for a piece of software so people can create fixes such as this?Have any input on the subject or an issue with the HOWTO drop a comment below.~Jeff Hoogland


Read »
Created by mark1 1 year 48 weeks ago – Made popular 1 year 48 weeks ago
Category:   Tags: