Page 1 of 1

Problems installing headless server on Ubuntu Server.

Posted: Sun Apr 07, 2019 10:57 pm
by bowerbank
Hi, I'm trying to install the headless server onto a computer running Ubuntu Server.
I downloaded the .tar.gz file to /opt using wget
When I run

Code: Select all

 sudo tar -xzf factorio_headless.tar.gz
I get the error:

Code: Select all

gzip: stdin: not in gzip format
tar:child returned status 1
tar: Error is not recoverable: exiting now
When I run

Code: Select all

./factorio_headless.tar.gz
I get the error:

Code: Select all

bash: ./factorio_headless.tar.gz: Permission denied
What am I doing wrong?

Re: Problems installing headless server on Ubuntu Server.

Posted: Mon Apr 08, 2019 9:26 am
by Zavian
I think the headless version is actually an tar.xz not a tar.gz. You probably need to install xz-utils. See https://www.quora.com/How-do-I-extract- ... -Fedora-25. (Despite the link name, it also covers Debian/Ubuntu).

Edit: Not sure, but you might need to also rename the downloaded file to tar.xz, instead of tar.gz. I'm not sure whether tar is smart enough to notice that it is actually an tar.xz file, or whether it simple checks the file extension.

Re: Problems installing headless server on Ubuntu Server.

Posted: Mon Apr 08, 2019 2:35 pm
by bowerbank
Zavian wrote: Mon Apr 08, 2019 9:26 am I think the headless version is actually an tar.xz not a tar.gz. You probably need to install xz-utils. See https://www.quora.com/How-do-I-extract- ... -Fedora-25. (Despite the link name, it also covers Debian/Ubuntu).

Edit: Not sure, but you might need to also rename the downloaded file to tar.xz, instead of tar.gz. I'm not sure whether tar is smart enough to notice that it is actually an tar.xz file, or whether it simple checks the file extension.
Thanks for the reply, I will try that out this afternoon

Re: Problems installing headless server on Ubuntu Server.

Posted: Mon Apr 08, 2019 2:40 pm
by boran_blok
I had that as well, since it is complaining it is not a zipped format, just use this command:

Code: Select all

 sudo tar -xf factorio_headless.tar.gz
this skips the unzipping (which fails since it is not a zip)

Re: Problems installing headless server on Ubuntu Server.

Posted: Mon Apr 08, 2019 3:04 pm
by mrvn
Works if you have it named *.xz. Which indicates that tar looks at the extension or you don't have xz-utils installed.

Re: Problems installing headless server on Ubuntu Server.

Posted: Tue Apr 09, 2019 3:10 am
by bowerbank
Thanks for the help guys, I got the .tar.xz file and it's working now.