LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-16-2009, 05:45 PM   #1
Skillz
Member
 
Registered: Sep 2007
Posts: 249

Rep: Reputation: 32
BF2 Demo Server install error


I think I know the problem, I just do not know how to fix it.

This is the error I am getting while trying to run the installer.

Code:
./bf2-linuxded-1.0.2446.12d-installer.sh: ./license.sh: /bin/sh: bad interpreter: Permission denied
I think it's caused from the tmp directory being setup with noexec; since the game installer seems to want to put the install files in the tmp directory while it installs it.

So I thought I could just edit the script and remove the location of the tmp path to something my user has rights to. No go. This is what happened.
Code:
Verifying archive integrity...Error in MD5 checksums: adb6fcabdecdb69de4fba778bfe3d3fa is different from bd9ba3fafe9e514340f1e55c32893c71
So I said ok, I can just change the MD5 on the installer to match the changes I just made, right? Well the script tells you the new MD5 so I just used that in the location where it says MD5.

Which was: adb6fcabdecdb69de4fba778bfe3d3fa

So I put that new MD5 in the installer. Then I get this error.
Code:
Verifying archive integrity... All good.
Uncompressing Battlefield 2 Dedicated Linux Server 1.0.2446.12d.... incomplete literal tree

gzip: stdin: invalid compressed data--format violated
..Extraction failed.
Signal caught, cleaning up
No clue what I did wrong, I only changed two lines.

MD5="adb6fcabdecdb69de4fba778bfe3d3fa"
TMPROOT=${TMPDIR:=/home/bf2/tmp/}

Those are the only two lines I altered.

I am at a loss as to what to do now.
 
Old 11-16-2009, 07:39 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590
Quote:
Originally Posted by Skillz View Post
Code:
Verifying archive integrity...Error in MD5 checksums: adb6fcabdecdb69de4fba778bfe3d3fa is different from bd9ba3fafe9e514340f1e55c32893c71
What version? 64 or 32 bit? If I 'md5sum bf2-linuxded-1.0.2446.12d-installer.sh' gives me a5f7388c02c1855a9530991e0a33ba5a on the file itself and 'grep -a -m1 ^MD5= bf2-linuxded-1.0.2446.12d-installer.sh returns "MD5="1782bca55f4d72c5cdee462fa6f7b554""... Odd to see your internal MD5 is different but I can at least verify with one other source the file MD5 matches. Download again?
 
Old 11-17-2009, 12:37 AM   #3
Skillz
Member
 
Registered: Sep 2007
Posts: 249

Original Poster
Rep: Reputation: 32
I think the reason for the different MD5 sums is because of the actual MD5 listed in the file itself. When you run the program, it'll tell you the actual MD5 if it's incorrect. So you just change it to match in the file. I only got an MD5 error after altering the path on the installer.

I tried to run md5sum file.sh and it gave me a completely different MD5. Then when I ran the installer, it told me something different. So I ran another MD5 (with the md5 changed in the file) and I got a different MD5 again, but the installer still gave the same MD5 from the previous run error. So I used that MD5 and it got past the integrity check just fine.

If you see the last thing I posted, it says the integrity checked out ok. Then it gives the error "incomplete literal tree" so I am wondering if something messed up when I edited the file using a text editor.

As you can see here: gzip: stdin: invalid compressed data--format violated
..Extraction failed. it implies that the archive is invalid. When the same archive had no problems like this, only a permission problem.

How can I temporarily remove noexec from the /tmp directory, so I can install the game server, then set it back to noexec when I am done. I believe this would be the easiest/fastest solution.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem whit my bf2 server !! HELP forcevision Linux - Networking 4 09-07-2006 01:48 PM
BF2 Server `GCC_3.3' not found Zlayer Linux - Games 3 08-21-2005 01:35 PM
HELP!! Install ATI Mobility RADEON 9000 driver on Debian Kernel 2.4.18-bf2.4?? herbu Linux - Laptop and Netbook 3 11-21-2004 04:37 AM
Doom 3 Demo Error apocolpse Linux - Games 4 11-17-2004 02:02 AM
bf2.4 install problem drumaholik Debian 1 03-09-2004 06:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration