Public bug reported:
Upon a fresh install of gradle, the executable installs to
/usr/share/gradle/bin/gradle, and attempts to symlink to /bin, but the
symlink is to the wrong directory. It symlinks to
../share/gradle/bin/gradle instead of /usr/share/gradle/bin/gradle ,
which in turn breaks gradle from running from the path. When running
gradle by giving the full path, everything works as normal.
/bin/gradle: 23: cd: can't cd to /bin/../share/gradle/bin/..
Error: Could not find or load main class org.gradle.launcher.GradleMain
Caused by: java.lang.ClassNotFoundException: org.gradle.launcher.GradleMain
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: gradle 4.4.1-10
ProcVersionSignature: Ubuntu 5.8.0-48.54~20.04.1-generic 5.8.18
Uname: Linux 5.8.0-48-generic x86_64
ApportVersion: 2.20.11-0ubuntu27.16
Architecture: amd64
CasperMD5CheckResult: skip
CurrentDesktop: ubuntu:GNOME
Date: Sun Apr 4 11:45:20 2021
InstallationDate: Installed on 2021-03-16 (18 days ago)
InstallationMedia: Ubuntu 20.04.2.0 LTS "Focal Fossa" - Release amd64
(20210209.1)
PackageArchitecture: all
ProcEnviron:
PATH=(custom, no user)
XDG_RUNTIME_DIR=<set>
LANG=en_US.UTF-8
SHELL=/usr/bin/zsh
SourcePackage: gradle
UpgradeStatus: No upgrade log present (probably fresh install)
** Affects: gradle (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug focal
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1922496
Title:
/bin/gradle is a broken symlink
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gradle/+bug/1922496/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs