java: not found when installing jira on Ubuntu

When trying to run the bin file the following happens:

$ sudo ./atlassian-jira-6.0.8-x64.bin

Unpacking JRE ...

Starting Installer ...

./atlassian-jira-6.0.8-x64.bin: 466: ~/atlassian-jira-6.0.8-x64.bin.9549.dir/jre/bin/java: not found

System info:
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 10.04.4 LTS
Release: 10.04
Codename: lucid

1 answer

1 accepted

4 votes
Accepted answer

The installer needs to run some utilities for information about your system. You haven't got them installed.

Try the command "lsb_release" and if it says it's not installed, then try (as root) apt-get install lsb-core

Then try the install again

(sorry, this is just the very first step in the debugging, I actually expect lsb_release to be there and working fine, but if it's not, you can end up going in circles)

If it fails again, then the next problem is who you are. You've run the installer using "sudo", which is a nice idea, but it might not take your paths into account consistently. Try running "sudo bash" and then ./install to make sure it picks up a consistent environment

I installed lsb-core as instructed:

$ lsb_release

LSB Version: core-2.0-ia32:core-2.0-noarch:core-3.0-ia32:core-3.0-noarch:core-3.1-ia32:core-3.1-noarch:core-3.2-ia32:core-3.2-noarch:core-4.0-ia32:core-4.0-noarch

But, I still get the same error.
~$ sudo bash
~# ./atlassian-jira-6.0.8-x64.bin
Unpacking JRE ...
Starting Installer ...
./atlassian-jira-6.0.8-x64.bin: 466: ~/atlassian-jira-6.0.8-x64.bin.13715.dir/jre/bin/java: not found

Sorry, I was adding to my answer as you were testing. I've added some stuff about sudo and switching to a root shell rather than just using sudo - could you try that as well?

I added to my comment after I saw your update.

Ah, hang on, lsb_release is showing us a 32 bit install, whereas you've got the 64 bit version of Jira. If I'm right, that won't work, you need to install the 32 bit version.

Thanks so much, it was an oversight on my part, sorry.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

803 views 3 9
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you