我无法在 ubuntu 12.04 上删除我的 skype

我无法在 ubuntu 12.04 上删除我的 skype

我第一次知道有一个好消息,我们可以使用最新的 ubuntu skype,所以我需要删除最新的 ubuntu 才能安全安装,但当我尝试通过终端卸载 skype 时,我所得到的只是

> santos@santos:~$ sudo apt-get remove skype [sudo] password for santos:
> Reading package lists... Done Building dependency tree        Reading
> state information... Done Package skype is not installed, so not
> removed 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
> 3 not fully installed or removed. After this operation, 0 B of
> additional disk space will be used. Setting up virtualbox
> (4.1.12-dfsg-2ubuntu0.2) ... Traceback (most recent call last):   File
> "/usr/bin/pycentral", line 2372, in <module>
>     main()   File "/usr/bin/pycentral", line 2366, in main
>     rv = action.run(global_options)   File "/usr/bin/pycentral", line 1529, in run
>     self.options.exclude, byte_compile_default=True)   File "/usr/bin/pycentral", line 1097, in install
>     rt.byte_compile(linked_files, bc_option, exclude_regex, ignore_errors)   File "/usr/bin/pycentral", line 231, in byte_compile
>     shell=False, stdin=subprocess.PIPE)   File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
>     errread, errwrite)   File "/usr/lib/python2.7/subprocess.py", line 1249, in _execute_child
>     raise child_exception OSError: [Errno 2] No such file or directory dpkg: error processing virtualbox (--configure):  subprocess installed
> post-installation script returned error exit status 1 dpkg: dependency
> problems prevent configuration of virtualbox-qt:  virtualbox-qt
> depends on virtualbox (= 4.1.12-dfsg-2ubuntu0.2); however:   Package
> virtualbox is not configured yet. dpkg: error processing virtualbox-qt
> (--configure):  dependency problems - leaving unconfigured dpkg:
> dependency problems prevent configuration of virtualbox-dkms: 
> virtualbox-dkms depends on virtualbox (>= 4.1.12-dfsg-2ubuntu0.2);
> however:   Package virtualbox is not configured yet. dpkg: error
> processing virtualbox-dkms (--configure):  dependency problems -
> leaving unconfigured No apport report written because the error
> message indicates its a followup error from a previous failure.
>                           No apport report written because the error message indicates its a followup error from a previous failure.
>                                                     Errors were encountered while processing:  virtualbox  virtualbox-qt 
> virtualbox-dkms E: Sub-process /usr/bin/dpkg returned an error code
> (1) santos@santos:~$

这是什么情况以及为什么它与 virtualbox 相关... 嗯,我有它但是很久没有使用它了,直到这次。

答案1

我不确定你为什么要或需要删除旧的 skype 来安装新的,但无论如何,你这里遇到的问题与 skype 无关。你的 virtualbox 安装在某种程度上被破坏了,这破坏了包装系统。

您需要先修复 virtualbox 问题。如果您不使用 virtualbox,最简单的方法是将其删除:

$ sudo apt-get remove virtualbox

否则,请尝试强制重新安装以重新运行安装后脚本:

$ sudo apt-get update
$ sudo apt-get install --reinstall virtualbox

这应该可以清理 virtualbox。

此后,您可以按照之前尝试的方式删除 Skype(如果需要)。

相关内容