1

Software Center is not opening since I installed "Ice" software (used in Peppermint OS) from ppa:kendalltweaver/peppermint and i keep getting this error -

  $ software-center
    ERROR:root:DebFileApplication import
    Traceback (most recent call last):
      File "/usr/share/software-center/softwarecenter/db/__init__.py", line 3, in <module>
        from debfile import DebFileApplication
      File "/usr/share/software-center/softwarecenter/db/debfile.py", line 25, in <module>
        from softwarecenter.db.application import Application, AppDetails
      File "/usr/share/software-center/softwarecenter/db/application.py", line 28, in <module>
        from softwarecenter.backend.channel import is_channel_available
      File "/usr/share/software-center/softwarecenter/backend/channel.py", line 25, in <module>
        from softwarecenter.distro import get_distro
      File "/usr/share/software-center/softwarecenter/distro/__init__.py", line 194, in <module>
        distro_instance = _get_distro()
      File "/usr/share/software-center/softwarecenter/distro/__init__.py", line 169, in _get_distro
        module = __import__(distro_id, globals(), locals(), [], -1)
    ImportError: No module named Peppermint
Braiam
  • 69,112

1 Answers1

1

diagnosis

Your error output looks remarkably similar to the linked question below.

In summary - by installing a non-ubuntu repository package you have overwritten the information that software center depends upon to inform it that it is running on ubuntu.

To correct this

Open a terminal window and change the peppermint release information with the defaults for ubuntu

N.B. copy and paste the following:

gksu gedit /etc/*release

and change everything in the file gedit brings up to:

for 11.10

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=11.10
DISTRIB_CODENAME=Oneric
DISTRIB_DESCRIPTION="Ubuntu 11.10"

for 12.04

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.04
DISTRIB_CODENAME=precise
DISTRIB_DESCRIPTION="Ubuntu 12.04 LTS"

Save and close the file. Then copy and paste in a terminal:

gksu gedit /etc/*issue

and change to:

11.10

Ubuntu 11.10 \n \l

12.04

Ubuntu 12.04 LTS \n \l

Save and close.


Linked Question:

fossfreedom
  • 174,526