加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

如何卸载Chocolatey包及其所有依赖项?

发布时间:2020-12-14 04:51:51 所属栏目:百科 来源:网络整理
导读:阅读文档,似乎我应该能够使用-x标志安装包及其依赖项.但是当我尝试使用命令choco uninstall javaruntime -x卸载 javaruntime软件包时,由于依赖性而失败. 它给了我这个错误: choco uninstall javaruntime -xChocolatey v0.10.1Uninstalling the following pa
阅读文档,似乎我应该能够使用-x标志安装包及其依赖项.但是当我尝试使用命令choco uninstall javaruntime -x卸载 javaruntime软件包时,由于依赖性而失败.

它给了我这个错误:

>  choco uninstall javaruntime -x
Chocolatey v0.10.1
Uninstalling the following packages:
javaruntime
javaruntime not uninstalled. An error occurred during uninstall:
 Unable to uninstall 'javaruntime 8.0.101' because 'groovy 2.3.6' depends on it.

Chocolatey uninstalled 0/1 packages. 1 packages failed.
 See the log for details (C:ProgramDatachocolateylogschocolatey.log).

Failures
 - javaruntime (exited 1) - javaruntime not uninstalled. An error occurred during uninstall:
 Unable to uninstall 'javaruntime 8.0.101' because 'groovy 2.3.6' depends on it.

难道我做错了什么?

解决方法

试试这个:

choco uninstall webdeploy -x

webdeploy可以更改为要卸载的目标包.

Enter image description here

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读