[Ubuntu] Force Uninstall Opera!!!

Solved
pika3d Posted messages 398 Status Member -  
pika3d Posted messages 398 Status Member -
Hello,

I stopped by Ubuntu Studio today (a multimedia creation-focused variant) and decided to install Opera since it was my favorite browser on Windows. I first looked in the Ubuntu Software Center: it's not there. So I went to their official site and got a DEB file that I installed without any issues.

But to my great disappointment... It was only version 12.10 of Opera, while I had version 15 on my Windows. And this version 12 is... mediocre. So I decided to uninstall it.

1st method: I went to the Synaptic Package Manager and searched for opera. Even choosing Remove and Complete Removal, I get an error message and that damn browser is not uninstalled.

2nd method: I try to forcibly uninstall it with the command sudo apt-get remove opera, which still gives me an error message.

3rd method: I attempt a dpkg -r opera, which asks me this time for superuser rights. Yet I am the only user and I am supposed to be an administrator (maybe it's because of my trial period with Ubuntu Studio... Yes, it hasn't been definitively installed yet). Moving on.

4th method: I desperately try a which opera to find the installation directory of Opera, which just returns a simple line in the console.

ON TOP OF THAT, THIS DAMN BROWSER IS BLOCKING INSTALLATIONS OF ALL OTHER APPLICATIONS THROUGH THE UBUNTU SOFTWARE CENTER

This is very annoying... Please respond as soon as possible :-(

Configuration: Ubuntu Studio 13.04 / Firefox 20.0

4 answers

jns55
 
Hello,
What if you could give us the essential: the error message you get when you try to uninstall?
0
pika3d Posted messages 398 Status Member 41
 
Sorry ^^

Here are the error messages in question.

1st method :


debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
(Reading the database... 217996 files and directories already installed.)
Removing opera ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing opera (--remove) :
the installed post-removal script returned an error exit status 1
Errors were encountered during the execution:
opera
E: Sub-process /usr/bin/dpkg returned an error code (1)
Package installation failed. Attempting recovery:
Setting up man-db (2.6.3-3) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing man-db (--configure) :
the installed post-installation script returned an error exit status 1
Errors were encountered during the execution:
man-db

2nd method :

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
opera
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
2 partially installed or removed.
E: Could not obtain lock /var/cache/apt/archives/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the directory /var/cache/apt/archives/

3rd method :

dpkg: error: the requested operation requires superuser privileges

4th method :

http://www.zimagez.com/zimage/capturedcran-23072013-132835.php

Thank you for looking into my case :-)
0
Pierrecastor Posted messages 10830 Registration date   Status Moderator Last intervention   4 215
 
Hello

Just on this:

Yet I am the only user and I am supposed to be an administrator


Actually, no, it was only Windows that allowed users to have full admin rights on XP; this was partially fixed in Vista and Seven (the fact that it asks for confirmation before each installation).

Operating as an administrator all the time is a very, very bad idea from a security standpoint.

Hence the idea of sudo, you elevate your rights to admin for a specific task and a given duration (SUperuser DO)

--
As for these fierce soldiers, I say, it's not to gossip,
but they do nothing but roar in our countryside.
-Pierre Desproges-
0
pika3d Posted messages 398 Status Member 41
 
Aaah! I had gotten so used to Windows that it’s a shock!

So if I want to run the command dpkg -r opera or any other command that modifies the system, I have to write sudo before it?

EDIT: I was indeed able to run this command, but here’s yet another new error message:

(Reading the database... 217996 files and directories already installed.)
Removing opera...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing opera (--remove):
the installed post-removal script subprocess returned an exit status of 1
Errors were encountered during execution:
opera
0
jns55
 
Check if you have another program using apt open (synaptic or the software center) while you type the command sudo apt-get remove in the terminal. If a program has opened the package database, it is locked to prevent another program from messing it up before the task is completed (it's a safety measure).
0
pika3d Posted messages 398 Status Member 41 > jns55
 
Ah thanks, that was it! I opened the task manager and killed the apt processes. Thanks to both of you!

But just before I mark the topic as resolved, could someone tell me how to make it so that when I click on an apt link, the Ubuntu Software Center opens instead of a small AptUrl window?

Thank you!
0
jns55
 
http://doc.ubuntu-fr.org/gestionnaire_de_paquets#choisir_quel_gestionnaire_de_paquet_se_lance_avec_les_liens_apt

What do you criticize about apturl? It's really convenient for installing software from a web page... Okay, it's not transparent, we don't know how many packages will be installed, but the software center doesn't do any better. Plus, it’s super heavy as a program, with a PC that has limited resources, it’s a hassle...
0
pika3d Posted messages 398 Status Member 41
 
Oh yeah, this site is totally the Bible of Ubuntu!

Actually, I don't really like its interface... installing packages via the Terminal... Anyway, that's just my opinion ^^

And I know I'm really annoying, but I promise I'll mark the topic as Resolved after this, but:

How can I make two desktop environments coexist (name borrowed from the Ubuntu-FR article)

I just went to check their article on this subject, to make my current environment, which is XFCE, coexist with Unity. However, I install the Unity package and after rebooting, the choice for Unity doesn't show up on my login screen! I only have XFCE and XFCE Ubuntu Studio style (a remake... well, Ubuntu Studio style).

Apparently, I need to install a 3D graphics card driver, but drivers and I are like oil and water...

I'm begging you for this last bit of help ^^ I'm a noob in Ubuntu since I installed it yesterday.

I swear, I'll mark the topic as Resolved afterward! Sorry...
0
jns55
 
So install jockey-gtk
sudo apt-get install jockey-gtk

then
sudo jockey-gtk


If there is a proprietary driver, just click on the activate button and let it do its thing...
0
pika3d Posted messages 398 Status Member 41
 
While trying to run
sudo apt-get install jockey-gtk
, I received this error message:
E: Unable to obtain the lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/). Another process may be using it.
PS: Everything is good for the Software Center that wasn't launching: I simply adjusted in Firefox settings that AptUrl was supposed to open... I replaced it with usr/bin/software-center and now the Ubuntu Software Center opens ;-)
0
jns55
 
It's always the same problem! You initiated a package installation that isn't finished but the database is open!
Return to the beginning of this thread.
0
pika3d Posted messages 398 Status Member 41
 
Here it is :-D

I saw that you are super active on the Ubuntu forums on CCM! Honestly, hats off to you: you explain really well, you don't mock anyone...

Thank you so much.
0
Pierrecastor Posted messages 10830 Registration date   Status Moderator Last intervention   4 215
 
Hello

Since your initial question has been resolved, please mark the topic as resolved.

Normally, we create a thread for each question.

Best regards.
0