1

Here is the virtualbox-4.3.prerm script.

apt-cache policy virtualbox-guest-additions-iso virtualbox virtualbox-4.3.

I was trying to install virtualbox-guess-additions-iso, and got the following error:

sudo aptitude install virtualbox-guest-additions-iso

The following NEW packages will be installed:
libgsoap1{a} virtualbox{a} virtualbox-dkms{a} virtualbox-guest-additions-iso  
virtualbox-qt{a} 
0 packages upgraded, 5 newly installed, 0 to remove and 1 not upgraded.
Need to get 0 B/64.0 MB of archives. After unpacking 121 MB will be used.
The following packages have unmet dependencies:
virtualbox-4.3 : Conflicts: virtualbox but 4.1.12-dfsg-2ubuntu0.5 is to be  
installed.
              Conflicts: virtualbox-guest-additions-iso but 4.1.12-1 is to be 
installed.
The following actions will resolve these dependencies:
   Remove the following packages:
1)     virtualbox-4.3     


Accept this solution? [Y/n/q/?] y
The following NEW packages will be installed:
   libgsoap1{a} virtualbox{a} virtualbox-dkms{a} virtualbox-guest-additions-iso   
   virtualbox-qt{a} 
The following packages will be REMOVED:
   virtualbox-4.3{a} 
0 packages upgraded, 5 newly installed, 1 to remove and 0 not upgraded.
Need to get 0 B/64.0 MB of archives. After unpacking 33.0 MB will be freed.
Do you want to continue? [Y/n/?] y
(Reading database ... 484051 files and directories currently installed.)
Removing virtualbox-4.3 ...
dpkg: error processing virtualbox-4.3 (--remove):
  subprocess installed pre-removal script returned error exit status 1
No apport report written because MaxReports is reached already
                                                          Errors were encountered   
while processing:
  virtualbox-4.3
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
12
  • 2
    Post the pre-removal script. You can find it at /var/lib/dpkg/info/pkgname.prerm. Substitute the name of the package (probably virtualbox) for pkgname. Commented Mar 7, 2014 at 15:18
  • There's still missing information, please add the complete output.
    – Braiam
    Commented Mar 7, 2014 at 15:19
  • What is the output of sudo dpkg --remove virtualbox-4.3?
    – Braiam
    Commented Mar 7, 2014 at 15:27
  • 1
    @user2644318 again, post all info into the question, not the comments. Commented Mar 7, 2014 at 15:38
  • 1
    cross posted askubuntu.com/questions/430908/… Commented Mar 7, 2014 at 15:55

1 Answer 1

4

In /var/lib/dpkg/info/,find file like virtualbox-4.3.*,and delete them all,then redo the remove action,it will be ok.

I just removed the openssh-server and solved the same problem.

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .