(synaptic:15791): GLib-CRITICAL **: g_child_watch_add_full: assertion 'pid > 0' failed
(Reading database ... 278250 files and directories currently installed.)
Removing 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 (--remove):
subprocess installed post-removal script returned error exit status 1
Processing triggers for menu (2.1.46ubuntu1) ...
Errors were encountered while processing:
opera
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Can u fix this?
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Can u fix this?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: Can u fix this?
I have seen something like this when a package install got interrupted; it's not 'in' but you can't get it 'out'. The dpkg manual suggests re-installing in order to untangle the mess...then remove it. I guess it's the opera package? You can use the low-level package tools to fetch it again......now it's held locally, you try to install it......that is supposed to clean up the mess. Now you can use the normal package-removal command... This all works on an undamaged Mint; no errors.
Code: Select all
apt-get download opera
Code: Select all
sudo dpkg -i opera*.deb
Code: Select all
sudo apt-get purge opera