Create launcher script fails with 127 on ubuntu 18.04 LTS
Answered
Hi
I'm getting error bellow when creating launcher script:
I'm using Intellij ultimate version 2019.2.3 on Ubuntu 18.04.3 LTS.
2019-10-18 07:47:01,049 [2414902] WARN - ons.CreateLauncherScriptAction - Launcher script creation failed with 127
java.lang.RuntimeException: Launcher script creation failed with 127
at com.intellij.ide.actions.CreateLauncherScriptAction.createLauncherScript(CreateLauncherScriptAction.java:143)
at com.intellij.ide.actions.CreateLauncherScriptAction$1.run(CreateLauncherScriptAction.java:109)
at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:894)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:169)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:591)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:537)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:59)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:156)
at com.intellij.openapi.progress.impl.CoreProgressManager$4.run(CoreProgressManager.java:408)
at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:294)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
Please sign in to leave a comment.
Most probably the root cause is that IntelliJ IDEA cannot make sudo for user it runs under. The following command returns 127 exit code:
Please check user's permissions.
If user's privileges could be escalated, but the issue is still here, please submit a bug at https://youtrack.jetbrains.com/issues/IDEA
Is this necessary for those of us on Linux who did not ask for the launcher to install for all users?
Yes. Sudo is necessary even if the application is used by a single user. It is needed to execute system binaries, etc, which requires superuser permissions.
I have Error 1.
Workaround solution:
1) Create launcher at your home directory
2) Move it to /usr/local/bin/.