Problem Can't install the launcher on Ubuntu 22.04 LTS

  • Tech Support section is for getting help with FTB related problems. If there's a repeatable issue that can be labeled as a bug, then please use the issue tracker for the pack or the app at GitHub issue trackers - If there's no repository for a pack that means that the pack is old and/or will not be updated. Bugs for older packs will not be fixed, unless they are critical.
  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

Alysty

New Member
Jun 4, 2022
1
0
2
I have been trying to install the FTB launcher on Ubuntu, after downloading the .sh file i run the following commands:

sudo chmod +x ./FTBA_unix_202205171618-14abefffbf-release.sh
sudo ./FTBA_unix_202205171618-14abefffbf-release.sh


then the installation starts but ends in the following error:

jre.tar.gz 100%[===================>] 44,01M 19,3MB/s in 2,3s

2022-06-03 21:34:54 (19,3 MB/s) - ‘jre.tar.gz’ saved [46151359/46151359]

Unpacking JRE ...
Starting Installer ...
./FTBA_unix_202205171618-14abefffbf-release.sh: 683: /home/user/Minecraft/Minecraft_FTB/FTBA_unix_202205171618-14abefffbf-release.sh.45307.dir/jre/bin/java: not found


I have the following version installed as default: OpenJDK Runtime Environment (build 1.8.0_302-b08), i need to have multiple version of java in my pc for work so i use SDKMAN to control the versions, this also changes the place where java is installed but the environment variables point to the right place so i dont know what to try anymore
is my version the problem ? if yes how can i resolve the problem ?
 

Chezzik

Active Member
Jul 29, 2019
5
1
27
I have the exact same problem.


It seems that you either need to have Java 17 installed (and then the installer can use it), or the installer downloads its own version of Java and uses it, but both fail. I'm on Ubuntu 20.04 also.

How I setup Java 17:

sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk-17/bin/java 1

How I configured my system to use java 17:

$ sudo update-alternatives --config java

There are 5 choices for the alternative java (providing /usr/bin/java).
Selection Path Priority Status
------------------------------------------------------------
0 /usr/lib/jvm/java-11-openjdk-amd64/bin/java 1111 auto mode
1 /usr/lib/jvm/java-11-openjdk-amd64/bin/java 1111 manual mode
2 /usr/lib/jvm/java-16-oracle/bin/java 1091 manual mode
3 /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java 1081 manual mode
* 4 /usr/lib/jvm/jdk-17/bin/java 1 manual mode
5 /usr/lib/jvm/jdk1.7.0_80/jre/bin/java 1 manual mode

Press <enter> to keep the current choice[*], or type selection number:

$ export JAVA_HOME=/usr/lib/jvm/jdk-17/

When I run the installer:

$ chmod 755 FTBA_unix_202206081143-2e021f8e74-release.sh
$ ./FTBA_unix_202206081143-2e021f8e74-release.sh

Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.110.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 46151359 (44M) [application/octet-stream]
Saving to: ‘jre.tar.gz’

jre.tar.gz 100%[========================================================>] 44.01M 11.0MB/s in 4.7s
2022-06-21 20:24:58 (9.35 MB/s) - ‘jre.tar.gz’ saved [46151359/46151359]

Unpacking JRE ...
Starting Installer ...
./FTBA_unix_202206081143-2e021f8e74-release.sh: 683: /home/chezzik/install/FTBA_unix_202206081143-2e021f8e74-release.sh.71515.dir/jre/bin/java: not found

------

Is there a way I can just download a .jar version of the app, like in the past? It was so easy before moving to Overwolf.
 

zuiko

New Member
Jul 29, 2019
73
0
0
I had the same problem originally and bypassed the java search logic (already have java installed and configured) with:
INSTALL4J_JAVA_HOME_OVERRIDE=/usr/bin/java
Which will just point to whatever install of java you have configured as your system default (not sure why that's not good enough for the script in the first place...)

But after getting past that, the script tries to do a gunzip sfx_archive.tar.gz which and it fails with this error:

gzip: sfx_archive.tar.gz: not in gzip format

I am sorry, but the installer file seems to be corrupted.
If you downloaded that file please try it again. If you
transfer that file with ftp please make sure that you are
using binary mode.

So not sure how to get past that issue... not sure what sfx_archive.tar.gz is
 

Chezzik

Active Member
Jul 29, 2019
5
1
27
I don't think you bypassed the java check at all. Your problem is that you modified the binary file at the end of the script. What editor did you use to edit it? If it was vim, then it automatically added a newline at the end, which breaks things.

Download the script again, then try this:

$ cp FTBA_unix_202206081143-2e021f8e74-release.sh ftb_clone.sh
$ vi ftb_clone.sh # make changes
$ diff ftb_clone.sh FTBA_unix_202206081143-2e021f8e74-release.sh


When you do this, you'll see that the last line (which is binary) has been modified.

Start over again, and do the same thing, but now when you first open vim, type this:

:set noeol

Then make your changes and save. Try the diff again, and you'll see that you successfully changed only the part of the script that you wanted.

I did all this (and set it to use /usr/bin/java), and tried it again, and it got through the unzipping successfully, but still choked on using java.

I have an older version of the FTBA installed, and it doesn't run at all (gets stuck on a screen that says "Please Wait"). I wonder if they did something that breaks the old version of the app for Linux, and also broke the installation of the new version. This is extremely frustrating now that CF no longer allows 3rd party launchers to install apps.

As far as I know, there is no way to install a CF pack or FTB pack now if you are on Linux.
 

Chezzik

Active Member
Jul 29, 2019
5
1
27
Well, I'm disappointed by the lack of help here.

In the meantime, if the pack you want is a curseforge pack, I found a post on Reddit that gave a shell script that can work.

I have less than 5 posts, so I don't think I can post URLs, but you can find it if you search google for these words together:

sakamoto domi curseme
 
  • Like
Reactions: Tenlaven

ubuntu

New Member
Jun 30, 2022
1
1
2
I got the FTB-launcher successfully installed on my Ubuntu 22.04 LTS.

Code:
sudo apt update
sudo apt install openjdk-17-jre
INSTALL4J_JAVA_HOME_OVERRIDE="/usr/lib/jvm/java-1.17.0-openjdk-amd64" sh FTBA_unix_202206081143-2e021f8e74-release.sh

Hope this helps!
 
  • Like
Reactions: Tenlaven

Tenlaven

New Member
Oct 4, 2022
2
0
2
Washington
I got the FTB-launcher successfully installed on my Ubuntu 22.04 LTS.

Code:
sudo apt update
sudo apt install openjdk-17-jre
INSTALL4J_JAVA_HOME_OVERRIDE="/usr/lib/jvm/java-1.17.0-openjdk-amd64" sh FTBA_unix_202206081143-2e021f8e74-release.sh

Hope this helps!
After struggling with this myself, I was able to install it using this method. I already had Java 17 installed alongside another version, and found it wasn't necessary to reconfigure my system, I only had to point 'INSTALL4J_JAVA_HOME_OVERRIDE=' to the Java 17 installation. I'm still on Ubuntu 20.04. Hopefully this helps someone.