Problems installing headless server on Ubuntu Server.

Anything that prevents you from playing the game properly. Do you have issues playing for the game, downloading it or successfully running it on your computer? Let us know here.
Post Reply
bowerbank
Manual Inserter
Manual Inserter
Posts: 3
Joined: Sun Apr 07, 2019 10:44 pm
Contact:

Problems installing headless server on Ubuntu Server.

Post 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?

Zavian
Smart Inserter
Smart Inserter
Posts: 1641
Joined: Thu Mar 02, 2017 2:57 am
Contact:

Re: Problems installing headless server on Ubuntu Server.

Post 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.

bowerbank
Manual Inserter
Manual Inserter
Posts: 3
Joined: Sun Apr 07, 2019 10:44 pm
Contact:

Re: Problems installing headless server on Ubuntu Server.

Post 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

boran_blok
Long Handed Inserter
Long Handed Inserter
Posts: 93
Joined: Fri Mar 01, 2019 7:56 am
Contact:

Re: Problems installing headless server on Ubuntu Server.

Post 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)

mrvn
Smart Inserter
Smart Inserter
Posts: 5704
Joined: Mon Sep 05, 2016 9:10 am
Contact:

Re: Problems installing headless server on Ubuntu Server.

Post 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.

bowerbank
Manual Inserter
Manual Inserter
Posts: 3
Joined: Sun Apr 07, 2019 10:44 pm
Contact:

Re: Problems installing headless server on Ubuntu Server.

Post by bowerbank »

Thanks for the help guys, I got the .tar.xz file and it's working now.

Post Reply

Return to “Technical Help”