loftuxab / alfresco-ubuntu-install

Alfresco script based install for Ubuntu
https://loftux.com/products-and-add-ons/alfresco-utilities
166 stars 122 forks source link

Oracle Java 8 version gets errors on Ubuntu 18.04. #105

Closed gbonazzoli closed 5 years ago

gbonazzoli commented 6 years ago

Using today alfinstall.sh script I got the following errors:

Install Java JDK.
This will install Oracle Java 8 version of Java. If you prefer OpenJDK
you need to download and install that manually.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Install Oracle Java 8? [y/n] y
Installing Oracle Java 8. Fetching packages...
E: Package 'python-software-properties' has no installation candidate
sudo: add-apt-repository: command not found
W: GPG error: http://nginx.org/packages/mainline/ubuntu bionic InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY ABF5BD827BD9BF62
E: The repository 'http://nginx.org/packages/mainline/ubuntu bionic InRelease' is not signed.
E: Package 'oracle-java8-installer' has no installation candidate
sudo: update-java-alternatives: command not found

Finished installing Oracle Java 8

the script did not recognize the error and continued on.

loftux commented 6 years ago

That was quick to test! Didn't have the proper test environment for 18.04. You can probably just carry on installing the rest, and then manually install Oracle Java in a way that works. If you find out how, you can update the issue, and I'll try to update the script.

gbonazzoli commented 6 years ago

Hi,

no way.

I reverted to Ubuntu 16.04 and alfinstall.sh seems to have no problem with Java.

Thanks.

On Tue, Sep 4, 2018 at 2:44 PM Peter Löfgren notifications@github.com wrote:

That was quick to test! Didn't have the proper test environment for 18.04. You can probably just carry on installing the rest, and then manually install Oracle Java in a way that works. If you find out how, you can update the issue, and I'll try to update the script.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/loftuxab/alfresco-ubuntu-install/issues/105#issuecomment-418352934, or mute the thread https://github.com/notifications/unsubscribe-auth/AQ68Dty1_yj5glOdVpo0reBdzIEBlfg_ks5uXnW1gaJpZM4WY5up .

digitalarchitects commented 5 years ago

With the current issues on Oracle Java , perhaps it is best to stick to the default openJDK that ships with Ubuntu 18. There is a number of users that are editing the dpkg config file to work around the 404, but I found the easy way was a manual install and using the alternative commands system to map /usr/bin/java to the install directory of choice.

loftux commented 5 years ago

The script is now changed to use OpenJDK, so closing this issue.