Last updated November 1, 2022 at 11:05 AM
Troubleshooting /usr/lib/jvm/java-13-openjdk-amd64 Permission denied error when trying to install or use an application under linux.
It can happen under linux that by installing a software or by wanting to use it you encounter the following error
/usr/sbin/update-info-dir:2: /etc/environment: /usr/lib/jvm/java-13-openjdk-amd64 Permission denied
In this troubleshooting, we show you how to fix it.
The class AppComponent is listed in the declarations of the NgModule AppModule, but is not a directive, a component, or a pipe. - Troubleshooting
How to solve error -- usr/sbin/update-info-dir: 2: /etc/environment: /usr/lib/jvm/java-13-openjdk-amd64: Permission denied -- on linux Click to tweet
Workaround for /usr/lib/jvm/java-13-openjdk-amd64 Permission denied
This kind of problem happens when your JAVA_HOME is misconfigured in your system. In our case, we just have to replace the line
by this one
If you still don't see the difference, no worries. The difference is that:
- The space between '=' and 'usr/lib … ' should be avoided.
- There is no claw in the second line.
In short, these details are important to take into account if you directly modify the file containing JAVA_HOME. My preferred way to do this is to run setup in the terminal.
Specifically, you need to run the following command:
Now that it's done, you can check if your order is taken into account by running:
echo $ JAVA_HOME
You will need to find the following line in response
The error should disappear if your JAVA_HOME is well configured.
I hope this troubleshooting was helpful to you. You may be interested in: