mersenneforum.org  

Go Back   mersenneforum.org > Extra Stuff > Linux

Reply
 
Thread Tools
Old 2019-09-07, 14:07   #1
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

EE916 Posts
Default wget Won't D/L from factordb in Ubuntu V16.04

Past annoying!! None of my 16.04 machines work - both 14.04 and 18.04 do work. (I can't upgrade to 18.04 yet due to unresolved ecmpi issues.)


Machine with 16.04 LTS:
Code:
$ wget "http://factordb.com/primobatch.php?digits=5000&files=40&start=Generate%20Zip" -O primo5000.zip
--2019-09-07 09:48:23--  http://factordb.com/primobatch.php?digits=5000&files=40&start=Generate%20Zip
Resolving factordb.com (factordb.com)... 116.203.33.155
Connecting to factordb.com (factordb.com)|116.203.33.155|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 0 [text/html]
Saving to: 'primo5000.zip'

primo5000.zip           [ <=>                ]       0  --.-KB/s    in 0s      

2019-09-07 09:48:23 (0.00 B/s) - 'primo5000.zip' saved [0/0]
Machine with 14.04 LTS:
Code:
$ wget "http://factordb.com/primobatch.php?digits=5000&files=40&start=Generate%20Zip" -O primo5000.zip
--2019-09-07 09:15:02--  http://factordb.com/primobatch.php?digits=5000&files=40&start=Generate%20Zip
Resolving factordb.com (factordb.com)... 116.203.33.155
Connecting to factordb.com (factordb.com)|116.203.33.155|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/force-download]
Saving to: 'primo5000.zip'

    [  <=>                                  ] 98,124       374KB/s   in 0.3s  

2019-09-07 09:15:02 (374 KB/s) - 'primo5000.zip' saved [98124]
Machine with 18.04 LTS:
Code:
$ wget "http://factordb.com/primobatch.php?digits=5000&files=40&start=Generate%20Zip" -O primo5000.zip
--2019-09-07 09:57:39--  http://factordb.com/primobatch.php?digits=5000&files=40&start=Generate%20Zip
Resolving factordb.com (factordb.com)... 116.203.33.155
Connecting to factordb.com (factordb.com)|116.203.33.155|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/force-download]
Saving to: 'primo5000.zip'

primo5000.zip           [  <=>               ]  95.82K   305KB/s    in 0.3s  

2019-09-07 09:57:40 (305 KB/s) - 'primo5000.zip' saved [98124]
I tried downgrading wget, but there weren't really any choices via Synaptic and I know no other means. This is quite reproducible across several machines.
EdH is offline   Reply With Quote
Old 2019-09-07, 14:38   #2
chalsall
If I May
 
chalsall's Avatar
 
"Chris Halsall"
Sep 2002
Barbados

230038 Posts
Default

Quote:
Originally Posted by EdH View Post
I tried downgrading wget, but there weren't really any choices via Synaptic and I know no other means. This is quite reproducible across several machines.
Have you tried copying the wget executable over from a working version, and running from the current working directory (or place in, for example, /usr/local/bin/)?

This might not work because of incompatible dynamically linked libraries. If it doesn't work, another option would be to compile wget from source.
chalsall is offline   Reply With Quote
Old 2019-09-07, 18:28   #3
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

73518 Posts
Default

Quote:
Originally Posted by chalsall View Post
Have you tried copying the wget executable over from a working version, and running from the current working directory (or place in, for example, /usr/local/bin/)?

This might not work because of incompatible dynamically linked libraries. If it doesn't work, another option would be to compile wget from source.
Thanks - this looked like a great idea - until I tried to compile and install it!

From wget:
Quote:
Briefly, the shell command './configure && make && make install' should configure, build, and install this package.
BS! It won't './configure' because there's no gnutls. Of course, there's no gnutls in the repository, so it must be acquired and compiled. (I did install all kinds of hints at gnutls from the repository to no avail.)

From gnutls:
Quote:
Briefly, the shell command './configure && make && make install' should configure, build, and install this package.
But wait, gnutls can't './configure' because it can't find libnettle of its preferred vintage!
EdH is offline   Reply With Quote
Old 2019-09-07, 19:39   #4
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

3,739 Posts
Default

Did you search with apt-cache search gnutls?

Something like this should do it:

Code:
sudo apt-get update
sudo apt-get install gnutls-bin
paulunderwood is offline   Reply With Quote
Old 2019-09-07, 20:04   #5
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

11·347 Posts
Default

Quote:
Originally Posted by paulunderwood View Post
Did you search with apt-cache search gnutls?

Something like this should do it:

Code:
sudo apt-get update
sudo apt-get install gnutls-bin
Yep! I used apt-cache and installed several things that mentioned gnutils:
I installed gnutls-bin - no luck.
Then, I installed libapache2-mod-gnutls - no luck.
Then, I installed python-gnutls hoping dependencies would help - Nope!
Then, I went for gnutls from scratch, but when that failed, I quit!
EdH is offline   Reply With Quote
Old 2019-09-07, 20:59   #6
M344587487
 
M344587487's Avatar
 
"Composite as Heck"
Oct 2017

14568 Posts
Default

Have you tried curl?
M344587487 is online now   Reply With Quote
Old 2019-09-07, 21:46   #7
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

73518 Posts
Default

Quote:
Originally Posted by M344587487 View Post
Have you tried curl?
Was unaware of curl. Works Great! Much Thanks!
EdH is offline   Reply With Quote
Old 2019-09-10, 08:04   #8
ldesnogu
 
ldesnogu's Avatar
 
Jan 2008
France

2·52·11 Posts
Default

Quote:
Originally Posted by EdH View Post
Yep! I used apt-cache and installed several things that mentioned gnutils:
I installed gnutls-bin - no luck.
Then, I installed libapache2-mod-gnutls - no luck.
Then, I installed python-gnutls hoping dependencies would help - Nope!
Then, I went for gnutls from scratch, but when that failed, I quit!
You could try libgnutls-dev.
ldesnogu is offline   Reply With Quote
Old 2019-09-10, 09:54   #9
fivemack
(loop (#_fork))
 
fivemack's Avatar
 
Feb 2006
Cambridge, England

144238 Posts
Default

I found that wget was giving me zero-length files from factordb.com because the web server there was unhappy with its user-agent line, if I did

Code:
wget --user-agent='Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_2) AppleWebKit/600.3.18 (KHTML, like Gecko) Version/8.0.3 Safari/600.3.18'
then it worked
fivemack is offline   Reply With Quote
Old 2019-09-10, 13:45   #10
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

11·347 Posts
Default

Quote:
Originally Posted by fivemack View Post
I found that wget was giving me zero-length files from factordb.com because the web server there was unhappy with its user-agent line, if I did

Code:
wget --user-agent='Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_2)  AppleWebKit/600.3.18 (KHTML, like Gecko) Version/8.0.3 Safari/600.3.18'
then it worked
Bingo! We have a winner! Unfortunately, this seems awfully familiar, now that it's posted.

Thanks!

Quote:
Originally Posted by ldesnogu View Post
You could try libgnutls-dev.
Thanks, I will try this too, a little later.
EdH is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
A suggestion for factordb. enzocreti FactorDB 15 2021-06-24 07:15
Reporting Factors by wget works with Fedora but not Ubuntu EdH FactorDB 4 2018-08-27 16:37
Aliqueit/wget can't upload sequence (no data received). How to fix this? Stargate38 FactorDB 2 2016-06-17 08:08
FactorDB PRP's smh FactorDB 231 2015-07-28 02:30
FactorDB question Raman Factoring 15 2010-01-28 10:24

All times are UTC. The time now is 07:59.


Sat Jul 17 07:59:20 UTC 2021 up 50 days, 5:46, 1 user, load averages: 1.53, 1.42, 1.35

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.