Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am using Ubuntu 12.10.

I downloaded from virtualbox.org the virtualbox package 4.2.4*.deb.

I wanted to install it with dpkg -i and terminal requested me to use command alien instead.

So I did alien <package> then dpkg -i <package> and used virtualbox.

Now I want to uninstall virtualbox (because something went wrong) because it was not installed with sudo apt-get install.

I want to use command dpkg -e <package> or dpkg --purge <package> but this ends with report

file or directory not found

Then

sudo dpkg -l | grep virtualbox

reports:

ii  virtualbox-4.2                                  4.2.4-81684~Ubuntu~quantal                     amd64        Oracle VM VirtualBox
rc  virtualbox-qt                                   4.1.18-dfsg-1ubuntu1.1                         amd64        x86 virtualization solution - Qt based user interface

what should I do next ?

share|improve this question
add comment

3 Answers

up vote 3 down vote accepted

Run this command in a terminal window:

sudo apt-get purge virtualbox-4.2 virtualbox-qt

That should remove them both.

share|improve this answer
    
thank you ! I was blind ! of course sudo apt-get purge virtualbox is not sufficient and so system does not know which package. sudo apt-get purge virtualbox-4.2 virtualbox-qt is the solution ! –  dschinn1001 Nov 29 '12 at 18:51
    
Glad to know it works! Could you mark it as the correct answer then? –  MiJyn Nov 29 '12 at 18:52
add comment

Try like this

sudo apt-get --remove purge virtualbox-4.2 virtualbox-qt
share|improve this answer
    
moin. yes this is more correct ... thx. that was a while ago. Til later. –  dschinn1001 Mar 9 at 7:45
add comment

You can also use sudo apt-get purge virtualbox*, which should also remove both.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.