Problem downloading install files

For help and support with Linux-specific issues
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply
Post Reply
Chiron69
Posts: 6
Joined: Thu Mar 22, 2018 3:46 am

Problem downloading install files

Post by Chiron69 » Thu Mar 22, 2018 7:23 am

Good afternoon, greetings from France. :-)

I have some trouble getting the install files on an headless server with no gui (Fedora 27)

Code: Select all

[jyl@L1 dddddd]$ wget http://www.fosshub.com/Universal-Media-Server.html/UMS-6.8.0.tgz
--2018-03-21 20:01:21--  http://www.fosshub.com/Universal-Media-Server.html/UMS-6.8.0.tgz
Résolution de www.fosshub.com (www.fosshub.com)… 104.20.137.9, 104.20.136.9, 2400:cb00:2048:1::6814:8909, ...
Connexion à www.fosshub.com (www.fosshub.com)|104.20.137.9|:80… connecté.
requête HTTP transmise, en attente de la réponse… 200 OK
Taille : non indiqué [text/html]
Sauvegarde en : « UMS-6.8.0.tgz »

UMS-6.8.0.tgz           [  <=>               ] 308,13K  1004KB/s    ds 0,3s    

2018-03-21 20:01:23 (1004 KB/s) - « UMS-6.8.0.tgz » sauvegardé [315528]


I just can't read the file

Code: Select all

[jyl@L1 dddddd]$ tar xvf UMS-6.8.0.tgz

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now

Code: Select all

[jyl@L1 dddddd]$ md5sum UMS-6.8.0.tgz
3232c8e539637f71352b139e087bc79f  UMS-6.8.0.tgz
MD5 should be : a757c0fc7ff071290c7c6001ab742f87

Same problem on windows, with any browser, If I save the file, it is unusable.

However if I do instruct any browser to open it instead of saving it, everything is fine.

What is going on?

Thanks

User avatar
Nadahar
Developer
Posts: 1219
Joined: Tue Jun 09, 2015 5:57 pm

Re: Problem downloading install files

Post by Nadahar » Tue May 01, 2018 2:35 am

I think it has something to do with how fosshub and wget works together. I don't think the link is for the file itself, but for another page which then redirects to the file URL. That means that what wget downloads is just the HTML page.

I'm not expert at this, but I think curl is a bit "smarter" when it comes to following such redirections and get the actual file. I might be wrong though.

Post Reply