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... DoneBuilding dependency tree Reading state information... DoneThe following packages will be REMOVED: operaThe following NEW packages will be installed: soundconverter0 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 LinuxMintdpkg: error processing opera (--remove): subprocess installed post-removal script returned error exit status 1Processing triggers for menu ...Errors were encountered while processing: operaE: Sub-process /usr/bin/dpkg returned an error code (1)======================================================

Thanks for the link. I tried substituting Opera for Firefox in the process, but I'm not sure that it did anything for my particular problem. Synaptic still shows Opera with a big red stripe, and asks me to confirm that I want to discard marked changes when I quit. How much of the following Terminal conversation is useful, I don't know, so I'll just go ahead and post the whole thing:

jpl@jpl-B701 ~ $ sudo aptitude keep-allNo packages will be installed, upgraded, or removed.0 packages upgraded, 0 newly installed, 0 to remove and 30 not upgraded.Need to get 0B/9,949kB of archives. After unpacking 0B will be used.Preconfiguring packages ... Selecting previously deselected package opera.(Reading database ... 289293 files and directories currently installed.)Preparing to replace opera 11.00.1176 (using .../opera_11.00.1176_i386.deb) ...Unpacking replacement opera ...Processing triggers for mintsystem ...Processing triggers for menu ...Processing triggers for shared-mime-info ...Processing triggers for desktop-file-utils ...Processing triggers for python-gmenu ...Rebuilding /usr/share/applications/desktop.en_US.utf8.cache...Processing triggers for hicolor-icon-theme ...Processing triggers for man-db ...Processing triggers for software-center ...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 LinuxMintProcessing triggers for python-support ...Processing triggers for python-central ...Setting up opera (11.00.1176) ...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 LinuxMintdpkg: error processing opera (--configure): subprocess installed post-installation script returned error exit status 1No apport report written because MaxReports is reached already Processing triggers for menu ...Errors were encountered while processing: operaE: Sub-process /usr/bin/dpkg returned an error code (1)A package failed to install. Trying to recover:Setting up opera (11.00.1176) ...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 LinuxMintdpkg: error processing opera (--configure): subprocess installed post-installation script returned error exit status 1Processing triggers for menu ...Errors were encountered while processing: opera

jpl@jpl-B701 ~ $ sudo aptitude purge operaThe following packages will be REMOVED: opera{p} 0 packages upgraded, 0 newly installed, 1 to remove and 30 not upgraded.Need to get 0B of archives. After unpacking 31.0MB will be freed.Do you want to continue? [Y/n/?] y(Reading database ... 289663 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 LinuxMintdpkg: error processing opera (--purge): subprocess installed post-removal script returned error exit status 1No apport report written because MaxReports is reached already Processing triggers for software-center ...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 LinuxMintProcessing triggers for man-db ...Processing triggers for hicolor-icon-theme ...Processing triggers for desktop-file-utils ...Processing triggers for python-gmenu ...Rebuilding /usr/share/applications/desktop.en_US.utf8.cache...Processing triggers for shared-mime-info ...Processing triggers for menu ...Processing triggers for mintsystem ...Processing triggers for python-central ...Processing triggers for python-support ...Errors were encountered while processing: operaE: Sub-process /usr/bin/dpkg returned an error code (1)A package failed to install. Trying to recover:

I'm having precisely the same issue and the aptitude fix isn't working for me either. I'm currently unable to upgrade any of the 3 mint machines I'm running nor am I able to delete Opera. Hoping this might get someone's attention...

===================================================jpl@jpl-B701 ~ $ sudo apt-get remove opera[sudo] password for jpl: Reading package lists... DoneBuilding dependency tree Reading state information... DoneThe following package was automatically installed and is no longer required: libreoffice-filter-binfilterUse 'apt-get autoremove' to remove them.The following packages will be REMOVED: opera0 upgraded, 0 newly installed, 1 to remove and 31 not upgraded.1 not fully installed or removed.After this operation, 30.8MB disk space will be freed.Do you want to continue [Y/n]? y(Reading database ... 328091 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)Warning in file "/usr/share/applications/kde4/kmailservice.desktop": usage of MIME type "x-scheme-handler/mailto" 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/kde4/ktelnetservice.desktop": usage of MIME type "x-scheme-handler/telnet" 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/kde4/ktelnetservice.desktop": usage of MIME type "x-scheme-handler/rlogin" 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/kde4/ktelnetservice.desktop": usage of MIME type "x-scheme-handler/ssh" is discouraged (the use of "x-scheme-handler" as media type is strongly discouraged in favor of a subtype of the "application" media type)No protocol specified/usr/lib/pymodules/python2.6/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display warnings.warn(str(e), _gtk.Warning)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 LinuxMintdpkg: error processing opera (--remove): subprocess installed post-removal script returned error exit status 1Processing triggers for software-center ...No protocol specified/usr/lib/pymodules/python2.6/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display warnings.warn(str(e), _gtk.Warning)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 LinuxMintProcessing triggers for man-db ...Processing triggers for hicolor-icon-theme ...Processing triggers for desktop-file-utils ...Processing triggers for python-gmenu ...Rebuilding /usr/share/applications/desktop.en_US.utf8.cache...Processing triggers for shared-mime-info ...Unknown media type in type 'all/all'

Then delete all the folders and files that Opera has installed - there are quite a lot of them, but once you have finished opera should be gone, then try suggestion 1 again.

As for the 'no linux mint module' warning, this seems to have something to do with software centre, so for the time being do not use the software centre, use the package manager or the apt-get command instead, when you have fixed the problems with those you may then be able to fix the problem with software centre, but for the moment just forget about trying to use it.

I did everything up until your last suggestion, and Synaptic still shows Opera marked as before - green box with red x, and red bar across. The terminal conversation for all of that is pretty long; if you think it will be useful then I can paste the whole thing here. "Locate opera" then spews out a phone book's worth of lines, and at this point I become a little nervous, out of fear that I will break something vital by deleting things manually without being absolutely sure of what I'm doing. So I stopped there.

When Julia KDE is released, I plan to do a clean install into another partition, and after I get that set up and everything transferred over, I might go ahead with this and see what happens. I guess I can hold out until then.

Here's what I did to fix this issue (While logged in as root, I know it's bad practice but I'm a RHEL sysadmin and I get tired of typing sudo when fixing a problem on my home desktop). Sorry for posting to a dead thread but I was searching for a solution today and while this thread didn't hold the solution it triggered my brain to realize what the solution was.

wakeupgod wrote:Here's what I did to fix this issue (While logged in as root, I know it's bad practice but I'm a RHEL sysadmin and I get tired of typing sudo when fixing a problem on my home desktop). Sorry for posting to a dead thread but I was searching for a solution today and while this thread didn't hold the solution it triggered my brain to realize what the solution was.