LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 11-21-2012, 05:58 AM   #1
kikinovak
Senior Member
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: Slackware, Slackware64
Posts: 1,954

Rep: Reputation: 974Reputation: 974Reputation: 974Reputation: 974Reputation: 974Reputation: 974Reputation: 974Reputation: 974
Problem downloading Slackware packages using Lynx text browser


Hi,

On servers, I sometimes use text browsers like Links or Lynx to do various things like searching for the odd package or SlackBuild. Now I've just encountered a strange problem with Lynx.

When downloading a TXZ package using Lynx, the browser suggests a file name and adds an additional ".gz" extension to it, which results in a ".txz.gz" file. As is to be expected, installpkg and upgradepkg choke on this.

Now when I download the file again and rename it (in Lynx) by simply erasing the obnoxious ".gz" extension, thus getting the original ".txz" file extension, installpkg and upgradepkg inform me that "this package was not made with makepkg".

My first conclusion is that Lynx somehow corrupts the package files when downloading them.

The problem is not showing with Links.

Any idea what's going on and how I can eventually correct Lynx' misbehaviour?

Cheers,

Niki
 
Old 11-21-2012, 07:04 AM   #2
GazL
Senior Member
 
Registered: May 2008
Posts: 3,503

Rep: Reputation: 1026Reputation: 1026Reputation: 1026Reputation: 1026Reputation: 1026Reputation: 1026Reputation: 1026Reputation: 1026
My guess would be some sort of misconfiguration of the webserver hosting them (perhaps something to do with mime-types). I've had .tar.gz files renamed to .tar.tar by Opera's download function when downloading from some sites. The file is still a tar.gz, it''s just misnamed. Renaming it back is all I've ever needed to do, but this doesn't explain why your file is being corrupted.

What does 'file' say about the downloaded files?

Last edited by GazL; 11-21-2012 at 07:05 AM.
 
1 members found this post helpful.
Old 11-21-2012, 07:19 AM   #3
kikinovak
Senior Member
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: Slackware, Slackware64
Posts: 1,954

Original Poster
Rep: Reputation: 974Reputation: 974Reputation: 974Reputation: 974Reputation: 974Reputation: 974Reputation: 974Reputation: 974
Quote:
Originally Posted by GazL View Post
My guess would be some sort of misconfiguration of the webserver hosting them (perhaps something to do with mime-types). I've had .tar.gz files renamed to .tar.tar by Opera's download function when downloading from some sites. The file is still a tar.gz, it''s just misnamed. Renaming it back is all I've ever needed to do, but this doesn't explain why your file is being corrupted.

What does 'file' say about the downloaded files?
I don't think it's a server side misconfiguration. Try to download any TXZ package from any Slackware mirror using Lynx, you'll get the same result.
 
Old 11-21-2012, 08:00 AM   #4
darkstar61
Member
 
Registered: Sep 2012
Posts: 30

Rep: Reputation: 5
Quote:
Originally Posted by kikinovak View Post
I don't think it's a server side misconfiguration. Try to download any TXZ package from any Slackware mirror using Lynx, you'll get the same result.
tested and all working fine here (i'm on 14 and running lynx from console as root)

i downloaded one package from an official mirror and the skype static from zerouno with none of the mentioned issues (actually installed skype after lynx download with installpkg > all ok)

Last edited by darkstar61; 11-21-2012 at 08:10 AM. Reason: more details
 
1 members found this post helpful.
Old 11-21-2012, 08:36 AM   #5
GazL
Senior Member
 
Registered: May 2008
Posts: 3,503

Rep: Reputation: 1026Reputation: 1026Reputation: 1026Reputation: 1026Reputation: 1026Reputation: 1026Reputation: 1026Reputation: 1026
I just tried pulling one from slackware.org.uk using lynx, the resource was identified as "application/octet-stream" by lynx and downloaded just fine.
 
Old 11-21-2012, 08:45 AM   #6
kikinovak
Senior Member
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: Slackware, Slackware64
Posts: 1,954

Original Poster
Rep: Reputation: 974Reputation: 974Reputation: 974Reputation: 974Reputation: 974Reputation: 974Reputation: 974Reputation: 974
My bad, and you were right, GazL. I tried again by specifying two different mirrors in France and in Austria, and both worked fine indeed.

Thanks,

Niki
 
  


Reply

Tags
lynx


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
Managing anonymity: major browser (FF/Chromium) vs. Text Based (Lynx/EMACSW3) Ubunoob001 Linux - Security 5 03-11-2011 01:58 PM
Any other text mode browser like lynx? madmatrix Linux - Newbie 6 04-20-2009 12:44 PM
Upgrading Slackware from 12.0 to 12.2 with downloading particular packages and_ru Slackware 7 03-24-2009 07:30 PM
Downloading packages problem ftblplyr46 Linux - Newbie 3 03-30-2008 04:59 PM
problem downloading w/ any browser digsby0007 Linux - Software 2 08-16-2003 07:54 AM


All times are GMT -5. The time now is 10:06 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration