/usr/lib/jvm/java-13-openjdk-amd64 Permission denied – Linux – Troubleshooting

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

 

JAVA_HOME= "/usr/lib/jvm/java-13-openjdk-amd64"

 

by this one

 

JAVA_HOME=usr/lib/jvm/java-13-openjdk-amd64

 

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:

 

export JAVA_HOME=usr/lib/jvm/java-13-openjdk-amd64

 

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

 

usr/lib/jvm/java-13-openjdk-amd64

 

The error should disappear if your JAVA_HOME is well configured.

 

 

Subscribe to our newsletter

* Indicates required

 

Conclusion

 

I hope this troubleshooting was helpful to you. You may be interested in:

 

 

 

openjdk-amd64 Permission denied - Linux - Troubleshooting

 

Leave comments

Your email address will not be published. Required fields are marked with *

five × 3 =