简体   繁体   中英

E: Unable to locate package gradle

I am trying to run example filesystem of fuse-jna ( https://github.com/EtiennePerot/fuse-jna ) . but it ask me to install gradle

syed@ubuntu:~/Downloads/fuse-jna-master/examples$ ./hellofs.sh ~/hellofs
gradle not found in $PATH. Please install gradle.

I have ubuntu 12 and I tried to install Gradle via sudo apt-get install gradle but I got the error

E: Unable to locate package gradle


syed@ubuntu:~/Downloads/fuse-jna-master/examples$ sudo apt-get install gradle
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package gradle

Please guide me how to solve the issue

thanks for the answers.

I have installed gradle by

sudo add-apt-repository ppa:cwchien/gradle
sudo apt-get update
sudo apt-get install gradle

source: https://askubuntu.com/questions/328178/gradle-in-13-04-ubuntu-launchpad-build

Try http://gvmtool.net/ . I'm using it on linux + mac.

It works very smoothly (not only for gradle), easy to switch versions, etc...

Is universe enabled on your system's apt system? The gradle package is in there:

$ apt-cache show gradle
Package: gradle
Priority: optional
Section: universe/java
...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM