VirtualBox 扩展包卸载或安装失败(VERR_ALREADY_EXISTS)(转)

文章出处:http://blog.csdn.net/leshami/article/details/9232229

  最近在卸载VirtualBox出现了无法卸载的错误。提示为Failed to install the extension. The installer failed with exit code 1: VBoxExtPackHelperApp.exe: error: Failed to rename the extension pack directory: VERR_ALREADY_EXISTS.  而且也无法再次成功安装。本文是对此给出的描述及其解决办法。

1、故障描述

    环境:Windows 7 (64bit)  + VirtualBox 4.2.12 +ExtensionPack(4.2.12-84980)

    扩展包一个比较典型的特性是支持USB 2.0(EHCI) controller。

    在VirtualBox主菜单,依次单击file -->Preferences-->Extensions,即可看到当前系统是否已安装了扩展包,如果有,则列出其对应包。单击右边叉叉按钮即可对扩展包进行卸载。此时出现异常如下:

         

    既然无法卸载于是尝试重新安装,重新安装也收到了错误提示:

        

    下图是重新安装时的错误提示

        

    下面是故障的文字描述

    Failed to install the extension

    C:/Users/aquarelle/Downloads/Oracle_VM_VirtualBox_Extension_Pack-x.x.x-xxxxx.vbox-extpack. échec de l'installation de l'extension     C:/Users/aquarelle/Downloads/Oracle_VM_VirtualBox_Extension_Pack-y.y.y-yyyyy.vbox-extpack.

    The installer failed with exit code 1: VBoxExtPackHelperApp.exe: error: Failed to rename the extension pack directory: VERR_ALREADY_EXISTS


    rcExit=1. 
    Code d'erreur : E_FAIL (0x80004005) 
    Composant : ExtPackManager 
    Interface : IExtPackManager {3295e6ce-b051-47b2-9514-2c588bfe7554}

2、解决办法

    a、关闭所有的VirtualBox 虚拟机

    b、在Windows命令提示符下执行vboxmanage extpack cleanup。操作如下::

       

       C:Users
obinson.cheng>cd 

        C:>cd "Program Files"

        C:Program Files>cd Oracle

        C:Program FilesOracle>cd VirtualBox

        C:Program FilesOracleVirtualBox>vboxmanage extpack cleanup
        Successfully performed extension pack cleanup
        C:Program FilesOracleVirtualBox>cmd
        Microsoft Windows [Version 6.1.7600]
        Copyright (c) 2009 Microsoft Corporation.  All rights reserved.        

3、卸载后的重新安装

    再次执行前面的操作,重新安装扩展包,如果存在,先将其移除。此时应当能够移除成功。再单击右边下三角找到扩展包所在路径并选择扩展包,即弹出安装扩展包界面

单击Install,单击I Agree,成功安装后即收到成功的提示,单击ok。此时Extensions界面应该可以看到刚刚安装的扩展包。

原文地址:https://www.cnblogs.com/kingxiaozi/p/3955959.html