Slackware This Forum is for the discussion of Slackware Linux.
Notices
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a
virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month.
Click here for more info.
11-02-2015, 06:17 AM
#1
Senior Member
Registered: Oct 2001
Location: Bristol UK
Distribution: Arch Slackware Ubuntu
Posts: 1,082
Rep:
Ruario's latest-firefox error
I have been a happy user of Ruario's excellent latest-firefox and chrome scripts for a while. Thanks for them.
I have hit an issue that I don't understand on a new install of 14.1 64bit.
The error is as follows:
Quote:
./latest-firefox: line 73: [: 41.0.1: binary operator expected
./latest-firefox: line 162: [: firefox-41.0.1: binary operator expected
--2015-11-02 12:06:44-- http://ftp.mozilla.org/pub/mozilla.o...eleases/41.0.1
Resolving ftp.mozilla.org (ftp.mozilla.org)... 54.230.196.206
Connecting to ftp.mozilla.org (ftp.mozilla.org)|54.230.196.206|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2015-11-02 12:06:45 ERROR 404: Not Found.
--2015-11-02 12:06:45-- http://41.0.2/linux-x86_64/en-US/firefox-41.0.1
Resolving 41.0.2 (41.0.2)... 41.0.0.2
Connecting to 41.0.2 (41.0.2)|41.0.0.2|:80... failed: Connection timed out.
Retrying.
--2015-11-02 12:08:53-- (try: 2) http://41.0.2/linux-x86_64/en-US/firefox-41.0.1
Connecting to 41.0.2 (41.0.2)|41.0.0.2|:80...
I don't understand. Can anybody point me in the right direction?
Thanks
11-02-2015, 06:53 AM
#2
Senior Member
Registered: Dec 2002
Distribution: slackware!
Posts: 1,310
go here
check this out
HERE they say how to fix it, ftp.mozilla.org shows that two versions of Firefox are available
1 members found this post helpful.
11-02-2015, 07:12 AM
#3
Senior Member
Registered: Oct 2001
Location: Bristol UK
Distribution: Arch Slackware Ubuntu
Posts: 1,082
Original Poster
Rep:
Brilliant. That worked. Many thanks.
11-02-2015, 10:43 AM
#4
Member
Registered: May 2004
Distribution: BSD
Posts: 269
Rep:
One can also run it like this:
Code:
VERSION=41.0.2 latest-firefox
which might not be as convenient, though.
1 members found this post helpful.
11-23-2015, 07:40 AM
#5
Senior Member
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557
Hmm... I missed this at the time. I have not been using Firefox much for the last few months so did not encounter the problem myself. Anyway, it seems the issue went away and then another appeared.
Mozilla have changed their download options. They used to have "latest" symlinks on their ftp server pointing to the most recent version for a given OS and locale. Now they
suggest you using a GET request to download.mozilla.org to find your required version , e.g. to find the latest 64Bit Linux version you access
download.mozilla.org/?product=firefox-latest&os=linux64&lang=en-US .
They may have done this to avoid issues like the one that spawned this thread, where two versions are found in the same latest folder. Whatever the reason, this new change was also discussed (and worked around) in
this thread .
Anyway, I just wanted people (copied only on this thread) to know that I have updated my
latest-firefox gist to use a GET request to download.mozilla.org work out the version. If you still have an old version, download a new one from there.
5 members found this post helpful.
11-23-2015, 08:06 AM
#6
Senior Member
Registered: Oct 2001
Location: Bristol UK
Distribution: Arch Slackware Ubuntu
Posts: 1,082
Original Poster
Rep:
Excellent. Many thanks ruario.
11-23-2015, 01:24 PM
#7
Member
Registered: Mar 2009
Location: Budapest, Hungary
Distribution: Slackware
Posts: 120
Rep:
Ruario, I have downloaded your last script but it seems not to work, the error message is:
Could not work out the latest version; exiting
11-23-2015, 01:28 PM
#8
Senior Member
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557
Are you sure you are running the latest version. Check it out like so and run it verbosely, so that you get some idea of how far it got and what the problem is:
Code:
git clone https://gist.github.com/9672798.git
bash -x 9672798/latest-firefox
P.S. You could also check the version you have locally. It should be 1.3.5, Check like so:
Code:
grep 'latest-firefox Version' latest-firefox
Last edited by ruario; 11-23-2015 at 01:37 PM .
11-23-2015, 01:58 PM
#9
Member
Registered: Mar 2009
Location: Budapest, Hungary
Distribution: Slackware
Posts: 120
Rep:
Yes, the version is really 1.3.5.
11-23-2015, 02:10 PM
#10
Senior Member
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557
what does this return
Code:
wget --spider --max-redirect 0 'https://download.mozilla.org/?product=firefox-latest&os=linux64&lang=en-US'
11-23-2015, 02:30 PM
#11
Member
Registered: Mar 2009
Location: Budapest, Hungary
Distribution: Slackware
Posts: 120
Rep:
root@ibm:~# wget --spider --max-redirect 0 'https://download.mozilla.org/?product=firefox-latest&os=linux64&lang=en-US'
Spider mode enabled. Check if remote file exists.
--2015-11-23 21:28:56--
https://download.mozilla.org/?produc...x64&lang=en-US
Resolving download.mozilla.org (download.mozilla.org)... 52.22.193.206
Connecting to download.mozilla.org (download.mozilla.org)|52.22.193.206|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location:
http://download.cdn.mozilla.net/pub/...x-42.0.tar.bz2 [following]
0 redirections exceeded.
But I don't use x86_64.
11-23-2015, 02:39 PM
#12
Senior Member
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557
Ok. I want to check two different things.
Firstly, what does this return if run from the terminal where you have been running this script?
If addition, please confirm that what this returns:
Code:
wget --spider --max-redirect 0 'https://download.mozilla.org/?product=firefox-latest&os=linux&lang=en-US' 2>&1 | sed -n '/^Location: /s|.*/firefox-\(.*\)\.tar.*|\1|p'
11-23-2015, 02:42 PM
#13
Member
Registered: Mar 2009
Location: Budapest, Hungary
Distribution: Slackware
Posts: 120
Rep:
Quote:
Originally Posted by
ruario
Ok. I want to check two different things.
Firstly, what does this return if run from the terminal where you have been running this script?
If addition, please confirm that what this returns:
Code:
wget --spider --max-redirect 0 'https://download.mozilla.org/?product=firefox-latest&os=linux&lang=en-US' 2>&1 | sed -n '/^Location: /s|.*/firefox-\(.*\)\.tar.*|\1|p'
echo $VERSION => returns nothing
wget --spider --max-redirect 0 'https://download.mozilla.org/?product=firefox-latest&os=linux&lang=en-US' 2>&1 | sed -n '/^Location: /s|.*/firefox-\(.*\)\.tar.*|\1|p'
returns nothing
11-23-2015, 03:25 PM
#14
Senior Member
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557
ok, then how about just this:
Code:
wget --spider --max-redirect 0 'https://download.mozilla.org/?product=firefox-latest&os=linux&lang=en-US'
11-23-2015, 03:33 PM
#15
Member
Registered: Mar 2009
Location: Budapest, Hungary
Distribution: Slackware
Posts: 120
Rep:
root@ibm:~# wget --spider --max-redirect 0 'https://download.mozilla.org/?product=firefox-latest&os=linux&lang=en-US'
Spider mode enabled. Check if remote file exists.
--2015-11-23 22:33:09--
https://download.mozilla.org/?produc...nux&lang=en-US
Resolving download.mozilla.org (download.mozilla.org)... 54.86.158.87
Connecting to download.mozilla.org (download.mozilla.org)|54.86.158.87|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location:
http://download.cdn.mozilla.net/pub/...x-42.0.tar.bz2 [following]
0 redirections exceeded.
returns nothing
All times are GMT -5. The time now is 07:44 AM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News