My apologies if there is an existing thread for this somewhere; I couldn't come up with a search entry that didn't generate thousands of results that I'm not able to read through. If there is a solution already posted, point me at it and I will link it here as well.
I recently somehow managed to break package management on my Julia system. It's hard to remember the exact steps that led to this, but as it stands, I have Opera marked for removal and apparently frozen in that state, as Synaptic shows its package with a red X and a red selection bar across all columns; I am not able to unmark, reinstall or remove it. I was managing Opera with the http://deb.opera.com/opera/ repository; it doesn't seem to matter whether or not I have it enabled in Sources. Synaptic puts out an error box saying "E: opera: subprocess installed post-removal script returned error exit status 1" whenever I try to install anything. Here is what happens when I try to install via the Terminal; I don't have the tech knowledge to interpret all of this:
===============================================
jpl@jpl-B701 ~ $ sudo apt-get install soundconverter
[sudo] password for jpl:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
opera
The following NEW packages will be installed:
soundconverter
0 upgraded, 1 newly installed, 1 to remove and 30 not upgraded.
1 not fully installed or removed.
Need to get 0B/110kB of archives.
After this operation, 30.1MB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 289292 files and directories currently installed.)
Removing opera ...
Warning in file "/usr/share/applications/firefox-4.0.desktop": usage of MIME type "x-scheme-handler/http" is discouraged (the use of "x-scheme-handler" as media type is strongly discouraged in favor of a subtype of the "application" media type)
Warning in file "/usr/share/applications/firefox-4.0.desktop": usage of MIME type "x-scheme-handler/https" is discouraged (the use of "x-scheme-handler" as media type is strongly discouraged in favor of a subtype of the "application" media type)
Warning in file "/usr/share/applications/firefox-4.0.desktop": usage of MIME type "x-scheme-handler/ftp" is discouraged (the use of "x-scheme-handler" as media type is strongly discouraged in favor of a subtype of the "application" media type)
Warning in file "/usr/share/applications/firefox-4.0.desktop": usage of MIME type "x-scheme-handler/chrome" is discouraged (the use of "x-scheme-handler" as media type is strongly discouraged in favor of a subtype of the "application" media type)
Traceback (most recent call last):
File "/usr/sbin/update-software-center", line 34, in <module>
from softwarecenter.db.update import rebuild_database
File "/usr/share/software-center/softwarecenter/db/update.py", line 41, in <module>
from softwarecenter.db.database import parse_axi_values_file
File "/usr/share/software-center/softwarecenter/db/database.py", line 26, in <module>
from softwarecenter.db.application import Application
File "/usr/share/software-center/softwarecenter/db/application.py", line 31, in <module>
from softwarecenter.distro import get_distro
File "/usr/share/software-center/softwarecenter/distro/__init__.py", line 127, in <module>
distro_instance=_get_distro()
File "/usr/share/software-center/softwarecenter/distro/__init__.py", line 116, in _get_distro
module = __import__(distro_id, globals(), locals(), [], -1)
ImportError: No module named LinuxMint
dpkg: error processing opera (--remove):
subprocess installed post-removal script returned error exit status 1
Processing triggers for menu ...
Errors were encountered while processing:
opera
E: Sub-process /usr/bin/dpkg returned an error code (1)
======================================================
Here is an attempt to start Software Center:
=====================================================
jpl@jpl-B701 ~ $ gksudo software-center
from softwarecenter.app import SoftwareCenterApp
File "/usr/share/software-center/softwarecenter/app.py", line 37, in <module>
from softwarecenter.db.application import Application, DebFileApplication
File "/usr/share/software-center/softwarecenter/db/application.py", line 31, in <module>
from softwarecenter.distro import get_distro
File "/usr/share/software-center/softwarecenter/distro/__init__.py", line 127, in <module>
distro_instance=_get_distro()
File "/usr/share/software-center/softwarecenter/distro/__init__.py", line 116, in _get_distro
module = __import__(distro_id, globals(), locals(), [], -1)
ImportError: No module named LinuxMint
======================================================
Whatever is causing the Opera problem and the missing LinuxMint module, it seems to be preventing me from installing or removing packages at all, and I need to fix it as soon as possible.
Thanks!







