gpt4 book ai didi

ubuntu - 安装 gradle 2.11 显示为 1.10

转载 作者:行者123 更新时间:2023-12-03 05:01:15 26 4
gpt4 key购买 nike

我正在尝试在我的 ubuntu 机器上安装 Gradle,但是当我安装并尝试检查其版本时,它显示的是 1.10 而不是 2.11

我使用以下命令安装:

$  sudo apt-get install gradle
[sudo] password for ser:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
gradle
0 upgraded, 1 newly installed, 0 to remove and 159 not upgraded.
Need to get 0 B/2,554 B of archives.
After this operation, 26.6 kB of additional disk space will be used.
Selecting previously unselected package gradle.
(Reading database ... 880324 files and directories currently installed.)
Preparing to unpack .../gradle_2.11-0ubuntu1_all.deb ...
Unpacking gradle (2.11-0ubuntu1) ...
Setting up gradle (2.11-0ubuntu1) ...

但是版本说是1.10
$ gradle -version

------------------------------------------------------------
Gradle 1.10
------------------------------------------------------------

Build time: 2013-12-17 09:28:15 UTC
Build number: none
Revision: 36ced393628875ff15575fa03d16c1349ffe8bb6

Groovy: 1.8.6
Ant: Apache Ant(TM) version 1.9.2 compiled on July 8 2013
Ivy: 2.2.0
JVM: 1.7.0_55 (Oracle Corporation 24.55-b03)
OS: Linux 3.13.0-77-generic amd64

如何解决这个问题。

我试图删除 gradle 并重新安装它,但同样的问题。
sudo apt-get remove gradle

最佳答案

我遇到过同样的问题。看一下
/usr/lib/gradle
如果您看到多个版本文件夹,则必须手动删除每个文件夹,例如
sudo apt-get remove --auto-remove gradle-1.10
然后就可以正常安装gradle了。

关于ubuntu - 安装 gradle 2.11 显示为 1.10,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35792063/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com