Opera vs. mintinstall... causing errors when trying to install packages [Solved]

Questions about applications and software
Forum rules
Before you post please read how to get help
Post Reply
jastombaugh
Level 1
Level 1
Posts: 8
Joined: Tue Jul 21, 2015 11:39 am

Opera vs. mintinstall... causing errors when trying to install packages [Solved]

Post by jastombaugh »

I installed Opera and everything seemed to work fine the first time I used it. However, when I attempted to remove it using mintinstall, the un-installation ran into errors. Now, when I attempt to remove or install packages, I get an error like the following:


jastombaugh@jastombaugh-Laptop ~ $ gksu mintinstall
Vector smash protection is enabled.
add_categories took 0.865 ms
build_matched_packages took 0.150 ms
add_packages took 1591.674 ms
add_reviews took 916.255 ms
__init__ took 2984.856 ms
show_category took 11.355 ms
show_search_results took 715.016 ms
show_package took 123.005 ms
_on_package_load_finished took 1.445 ms
Selecting previously unselected package nemo-fileroller.
(Reading database ... 419997 files and directories currently installed.)
Preparing to unpack .../nemo-fileroller_2.8.0+rosa_i386.deb ...
Unpacking nemo-fileroller (2.8.0+rosa) ...
Setting up opera (12.16.1860-1linuxmint) ...
ERROR:root:DebFileApplication import
Traceback (most recent call last):
File "/usr/share/software-center/softwarecenter/db/__init__.py", line 4, in <module>
from debfile import DebFileApplication, DebFileOpenError
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>
import softwarecenter.distro
File "/usr/share/software-center/softwarecenter/distro/__init__.py", line 199, in <module>
distro_instance = _get_distro()
File "/usr/share/software-center/softwarecenter/distro/__init__.py", line 174, 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 <module>
from softwarecenter.db.update import rebuild_database
File "/usr/share/software-center/softwarecenter/db/update.py", line 33, in <module>
from softwarecenter.backend.scagent import SoftwareCenterAgent
File "/usr/share/software-center/softwarecenter/backend/scagent.py", line 28, in <module>
from softwarecenter.distro import get_distro, get_current_arch
File "/usr/share/software-center/softwarecenter/distro/__init__.py", line 199, in <module>
distro_instance = _get_distro()
File "/usr/share/software-center/softwarecenter/distro/__init__.py", line 174, in _get_distro
module = __import__(distro_module_name, globals(), locals(), [], -1)
ImportError: No module named linuxmint
dpkg: error processing package opera (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up nemo-fileroller (2.8.0+rosa) ...
show_package took 80.508 ms
_on_package_load_finished took 1.175 ms


While the packages install correctly, and work as expected, the error message is driving me crazy!!! Opera is currently still installed, and works fine, but when I look at the behind the scenes view of what's going on in mintinstall, it's pretty obvious that something is still amiss with Opera.

What can I do to put things back to normal. Nuke-and-pave is what I used to do to solve linux problems, (noooooooob) but hoping this is something that can be fixed relatively easily.

If you're curious about the operations that mintinstall goes through to install/remove Opera and the error it generated, I can post that too.

Thanks,
-Andy
Last edited by jastombaugh on Wed Jan 25, 2017 12:18 am, edited 1 time in total.
jastombaugh
Level 1
Level 1
Posts: 8
Joined: Tue Jul 21, 2015 11:39 am

Re: Opera vs. mintinstall... causing errors when trying to install packages

Post by jastombaugh »

a few more details:

mintinstall is version 7.6.3
packagemanager is showing Opera with a 'green' box next to it, and every indication in Package manager is that Opera is fully installed.
User avatar
richyrich
Level 19
Level 19
Posts: 9059
Joined: Mon May 04, 2009 8:31 pm

Re: Opera vs. mintinstall... causing errors when trying to install packages

Post by richyrich »

dpkg: error processing package opera (--configure):
This terminal command may help : sudo dpkg --configure -a
jastombaugh
Level 1
Level 1
Posts: 8
Joined: Tue Jul 21, 2015 11:39 am

Re: Opera vs. mintinstall... causing errors when trying to install packages

Post by jastombaugh »

Thank you for the tip. Tried the dpkg command and this is what the terminal insisted.

jastombaugh@jastombaugh-Laptop ~ $ sudo dpkg --configure -a
[sudo] password for jastombaugh:
Setting up opera (12.16.1860-1linuxmint) ...
ERROR:root:DebFileApplication import
Traceback (most recent call last):
File "/usr/share/software-center/softwarecenter/db/__init__.py", line 4, in <module>
from debfile import DebFileApplication, DebFileOpenError
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>
import softwarecenter.distro
File "/usr/share/software-center/softwarecenter/distro/__init__.py", line 199, in <module>
distro_instance = _get_distro()
File "/usr/share/software-center/softwarecenter/distro/__init__.py", line 174, 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 <module>
from softwarecenter.db.update import rebuild_database
File "/usr/share/software-center/softwarecenter/db/update.py", line 33, in <module>
from softwarecenter.backend.scagent import SoftwareCenterAgent
File "/usr/share/software-center/softwarecenter/backend/scagent.py", line 28, in <module>
from softwarecenter.distro import get_distro, get_current_arch
File "/usr/share/software-center/softwarecenter/distro/__init__.py", line 199, in <module>
distro_instance = _get_distro()
File "/usr/share/software-center/softwarecenter/distro/__init__.py", line 174, in _get_distro
module = __import__(distro_module_name, globals(), locals(), [], -1)
ImportError: No module named linuxmint
dpkg: error processing package opera (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
opera
jastombaugh@jastombaugh-Laptop ~ $


Still stumped. Any ideas?
jastombaugh
Level 1
Level 1
Posts: 8
Joined: Tue Jul 21, 2015 11:39 am

Re: Opera vs. mintinstall... causing errors when trying to install packages [SOLVED]

Post by jastombaugh »

The 'last resort' method in this post solved the issue of the 'Opera stuck in limbo.'
viewtopic.php?f=42&t=233205&p=1237268&h ... e#p1237268

I ended up sudo-editing the /var/lib/dpkg/status file (After backing it up) to omit the 'opera' entry. So far everything seems normal. No error reporting on phantom web-browsers and no half-installed status messages. Back to normal Mint.

A big thank you to zidgear1357 for posting his methodical approach in the order of least intrusive to, apparently, pretty extreme.

Please consider this one RESOLVED.
Post Reply

Return to “Software & Applications”