Installing Ubuntu Software Center in Linux Mint 14

OK so this isn’t as simple as just typing in “sudo apt-get install software-center“. That’s the first step of this walkthrough…but not all of it.

so here we go

1.) “sudo apt-get install software-center”

2.) “sudo cp -r /usr/share/software-center/softwarecenter/distro/Ubuntu.py /usr/share/software-center/softwarecenter/distro/LinuxMint.py”

Note that if step 2 says “Ubuntu.py” file not found, you must go into “/usr/share/software-center/softwarecenter/distro” and change the file “ubuntu.py” to “Ubuntu.py” with this command

sudo mv ubuntu.py Ubuntu.py

Then try step 2 again.

3.) “gksudo gedit /usr/share/software-center/softwarecenter/distro/LinuxMint.py”

4.) we need to edit line 36 from “class Ubuntu(Debian)” to “class LinuxMint(Debian)” then save it.

5.) then we need to edit another file with “gksu gedit /etc/*release” to look like this

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.10
DISTRIB_CODENAME=quantal
DISTRIB_DESCRIPTION=”Ubuntu 12.10″

Then save the file.

6.) we need to edit this last file like so “gksu gedit /etc/*issue” to look like this “Ubuntu 12.10 \n \l

7.) we now need to create a xapian apt database, with this command “sudo update-apt-xapian-index”

Thats the main steps of it. I had to “sudo apt-get autoremove software-center” and then re-install it, but you may not have to.

I hope it works for yah! If you have any issues let me know.

-Orkultus-

Advertisements

21 comments on “Installing Ubuntu Software Center in Linux Mint 14

  1. orkultus says:

    I only installed this because it’s the only way to get Mini RC Racers 😛

  2. richard says:

    I get this

    ERROR:root:DebFileApplication import
    Traceback (most recent call last):
    File “/usr/share/software-center/softwarecenter/db/__init__.py”, line 4, in
    from debfile import DebFileApplication, DebFileOpenError
    File “/usr/share/software-center/softwarecenter/db/debfile.py”, line 25, in
    from softwarecenter.db.application import Application, AppDetails
    File “/usr/share/software-center/softwarecenter/db/application.py”, line 27, in
    import softwarecenter.distro
    File “/usr/share/software-center/softwarecenter/distro/__init__.py”, line 197, in
    distro_instance = _get_distro()
    File “/usr/share/software-center/softwarecenter/distro/__init__.py”, line 172, in _get_distro
    module = __import__(distro_module_name, globals(), locals(), [], -1)
    ImportError: No module named linuxmint
    Traceback (most recent call last):
    File “/usr/sbin/update-software-center”, line 38, in
    from softwarecenter.db.update import rebuild_database
    File “/usr/share/software-center/softwarecenter/db/update.py”, line 33, in
    from softwarecenter.backend.scagent import SoftwareCenterAgent
    File “/usr/share/software-center/softwarecenter/backend/scagent.py”, line 28, in
    from softwarecenter.distro import get_distro, get_current_arch
    File “/usr/share/software-center/softwarecenter/distro/__init__.py”, line 197, in
    distro_instance = _get_distro()
    File “/usr/share/software-center/softwarecenter/distro/__init__.py”, line 172, in _get_distro
    module = __import__(distro_module_name, globals(), locals(), [], -1)
    ImportError: No module named linuxmin

  3. orkultus says:

    What version of Mint are you on? Cause i just followed these exact same steps on a new install of Mint on my Desktop and it instantly started working for me.

  4. orkultus says:

    i found a slightly different way of doing this than what i have shown here. http://community.linuxmint.com/tutorial/view/1153 <– he mentions renaming LinuxMint.py to lowercase linuxmint.py. Possibly could be the solution.

  5. Mark says:

    Worked for me after I uninstalled then reinstalled software centre.
    (This on 64 bit Linux Mint 14)

  6. Apostolic says:

    Worked for me also – had to uninstall reinstall after applying the code fix! Thanks!

  7. Worked for me as well; I did uninstall and reinstall, and it works just fine! THANKS x 10^6!

  8. Hmmm…if I reboot Linux Mint 14, I have to re-edit the text files all over again. THEN it works,,,grrrr.

    • orkultus says:

      Very odd. I haven’t ran across that problem.

      -Orkultus-

      • Mr Sinister says:

        And I have exactly the same problem in Mint 15 64bit

      • orkultus says:

        I run across the problem where after i have started ubuntu software centre..i can use it to install things, but the second i close it or restart my system, i have to go and re-install it again, and edit the files.

        -Orkultus-

      • Mr Sinister says:

        For some reason I cannot reply to your answer below but I can do so with pretty much every other comment… Anyway, what is the solution to the problem?

  9. pavanlimo says:

    I cannot find Ubuntu.py/ubuntu.py in my installation, I even searched for it in the entire file system.

    • orkultus says:

      So this wasn’t on your computer after you installed softwarecenter? I found mine in
      “/usr/share/software-center/softwarecenter/distro”

      -Chuck-

  10. Khong Co says:

    8.) sudo update-software-center

  11. Scott says:

    Thanks! Worked perfect in Mint 14 64

  12. dakiro says:

    Works well but only until the next boot or update, then the files are changed over, again.

  13. I need to restore this changes, can you explane this?

  14. Leandro says:

    It’s nice. Thank you for your help.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s