removing opera [solved, sort of]

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
llogg

removing opera [solved, sort of]

Post by llogg »

I think that installing Opera was a mistake. I used Opera in Windows before switching to Mint and I really like it, but the first time I launched it after installing it prompted me to upgrade and after the upgrade was installed it returned an error message that I didn't pay a lot of attention to as everything still seemed to work in the browser.

As I've been configuring various other programs trying to get my webcam and Skype to work I've noticed that every time I install or remove any program I get the message

Code: Select all

Errors were encountered while processing:
 opera
E: Sub-process /usr/bin/dpkg returned an error code (1)
I've tried uninstalling opera through the software manager, the package manager, and the terminal (purge and remove). Any suggestions?

[solved by booting to windows, deleting Mint partition, and reinstalling mint from scratch and not installing opera ever again.]
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
nevius

Re: removing opera

Post by nevius »

Run the following two commands

sudo apt-get -f install
sudo dpkg --configure --pending
llogg

Re: removing opera

Post by llogg »

nevius wrote:Run the following two commands

sudo apt-get -f install
sudo dpkg --configure --pending
Running the first command gives me

Code: Select all

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  f-spot smbclient libmono-simd2.0-cil java-common mint-elementary-icons
  gvfs-bin odbcinst dcraw gnome-colors-common unixodbc libflickrnet2.2-cil
  mint-backgrounds-helena gnome-wise-icon-theme odbcinst1debian2
  mint-backgrounds-isadora shiki-colors-metacity-theme nautilus-share
  libqt4-network shiki-wise-theme ttf-wqy-microhei
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  opera
0 upgraded, 0 newly installed, 1 to remove and 0 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 ... 189651 files and directories currently installed.)
Removing opera ...
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)
Running the second command does nothing.
BlaXpirit

Re: removing opera [solved, sort of]

Post by BlaXpirit »

I have this problem too, and need some help...
Edit: Found a solution.
Interpreted to our problem:

Code: Select all

sudo -i
rm -rf /var/lib/dpkg/info/opera.*
apt-get remove opera
filosofic
Level 1
Level 1
Posts: 3
Joined: Sun Oct 19, 2008 3:35 pm

Re: removing opera [solved, sort of]

Post by filosofic »

This is the only thing that I've found that worked every time I've tried to install Opera from Synaptic.

As BlaXprint quotes... remove all files of opera* from /var/lib/dpkg/info
and then use apt-get to remove for good.

Now I'll try to install from their website instead.
filosofic
Level 1
Level 1
Posts: 3
Joined: Sun Oct 19, 2008 3:35 pm

Re: removing opera [solved, sort of]

Post by filosofic »

Same problem even after installing opera 64bit deb from their website, moving it to the /opt partition, and running gdebi to install it. Synaptic doesn't like to update unless I remove it again.
originaldondadda
Level 1
Level 1
Posts: 6
Joined: Fri Nov 05, 2021 9:06 pm

Re: removing opera [solved, sort of]

Post by originaldondadda »

BlaXpirit wrote: Wed Mar 02, 2011 7:11 am I have this problem too, and need some help...
Edit: Found a solution.
Interpreted to our problem:

Code: Select all

sudo -i
rm -rf /var/lib/dpkg/info/opera.*
apt-get remove opera
It's now 2022 and I am having the same issue. I tried the above by @BlaXpirit and it worked. Thank you!

just modified it slightly for 2022:

Code: Select all

sudo -i
rm -rf /var/lib/dpkg/info/opera*.*
apt-get remove opera-stable
Locked

Return to “Beginner Questions”