java 如何使用sdkman解决gradle安装错误

idfiyjo8  于 2023-02-07  发布在  Java
关注(0)|答案(1)|浏览(185)
Has anyone experienced this problem?

When trying to install gradle 4.4 the following error is displayed:

用户@test:~$sdk安装gradle 4.4
下载:分级4.4
正在进行中...
警告:无法打开/home/用户/. sdkman/临时文件夹/gradle-4.4.(23)无法将接收到的数据写入磁盘/应用程序mv:无法获取状态"/home/user/. sdkman/tmp/gradle-4.4.bin ":缺少文件或目录

I removed and reinstalled SDKMAN several times and was unsuccessful

user@test:~$ sdk version

SDKMAN 5.16.0
---
Ubuntu v20.04
---
t9eec4r0

t9eec4r01#

这可能是因为您使用的是从snap安装的curl。请尝试使用apt的curl:

$ sudo snap remove curl
$ sudo apt install curl

相关问题