Hexxeh / rpi-update

An easier way to update the firmware of your Raspberry Pi
MIT License
1.94k stars 232 forks source link

Certificates issue with wget #65

Closed shrx closed 10 years ago

shrx commented 11 years ago

output of running sudo rpi-update:

 *** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS
 *** Performing self-update
--2013-01-28 21:20:16--  https://github.com/Hexxeh/rpi-update/raw/master/rpi-update
Resolving github.com... 207.97.227.239
Connecting to github.com|207.97.227.239|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://raw.github.com/Hexxeh/rpi-update/master/rpi-update [following]
--2013-01-28 21:20:16--  https://raw.github.com/Hexxeh/rpi-update/master/rpi-update
Resolving raw.github.com... 199.27.77.193
Connecting to raw.github.com|199.27.77.193|:443... connected.
ERROR: certificate common name `*.a.ssl.fastly.net' doesn't match requested host name `raw.github.com'.
To connect to raw.github.com insecurely, use `--no-check-certificate'.
 !!! Failed to download update for rpi-update!
 !!! Make sure you have ca-certificates installed and that the time is set correctly
g7ruh commented 10 years ago

Thanks popcornmix your post above to get from current to latest works fine on the two pis on which it failed yesterday

shrx commented 10 years ago

Github interprets "`" tags as markdown, the alternative non-ambiguous command is

sudo curl -L --output $(which rpi-update) https://github.com/Hexxeh/rpi-update/raw/master/rpi-update
StormTrooper commented 10 years ago
sudo curl -L --output `which rpi-update` https://github.com/Hexxeh/rpi-update/raw/master/rpi-update

Works great for me thanks,

beta-tester commented 10 years ago

@popcornmix : said: "Strangely rpi-update is still working just fine for me. I've run it multiple times, and can wget from github both on Pi and Ubuntu." are you sure, you ran "sudo apt-get -y dist-upgrade" these days, that installed the new "wget" package to RPi? i have more than one RPi and all run "sudo rpi-update" fine until i run dist-upgrade. just after that all tries to run rpi-update (the wget version) failed.

-using fresh wheezy image, then dist-upgrade, then rpi-update => will fai.l

-using fresh wheezy image, then rpi-update then dist-upgrade => works fine. (following rpi-update will fail, because of upgraded wget package)

EDIT 2014-03-27 08:30: i just saw, via dist-upgrade two new packages will be upgraded that maybe will fit wget problems libssl 1.0.1e-2+rvt+deb7u4 openssl 1.0.1e-2+rvt+deb7u4

asb commented 10 years ago

I've updated the rpi-update debian package. You can sudo apt-get update && sudo apt-get install rpi-update to get the curl-based rpi-update package (or just replace it using one of the commands above).

bast69 commented 10 years ago

It's works fine for me ! Why this issue isn't close ?

jicho commented 10 years ago

The solution from @asb did the trick for me :)

popcornmix commented 10 years ago

@shrx okay to close?

Klendat commented 10 years ago

I am experiencing the same issues in this thread. This issue is most definitely not closed.

If I do

apt-get install rpi-update 

It just says it can't find rpi-update

If I try: wget https://github.com/Hexxeh/rpi-update/raw/master/rpi-update --no-check-certificate

the script downloads but if I try to run it the whole thing fails.

I don't know how to add --no-check-certificate to the script. I tried in the URL but it failed.

I'm just trying to get my rpi up and running because I got my pi from the store with an SD card that was carrying a raspbian version that causes a kernel panic when I plug in a wired keyboard. rpi-update should fix that but it doesn't work.

These are my first steps into Linux and it's like a nightmare so far. Everything I try is like a beartrap.

popcornmix commented 10 years ago

The correct command is: sudo apt-get update && sudo apt-get install rpi-update

If that doesn't work might be worth installing an official image from here: http://www.raspberrypi.org/downloads/

You can also manually install it with: sudo curl -L --output /usr/bin/rpi-update https://raw.github.com/Hexxeh/rpi-update/master/rpi-update && sudo chmod +x /usr/bin/rpi-update

Klendat commented 10 years ago

This is an official raspbian release but it just needs to be updated. I didn't buy this at the corner shop I bought it at RS Components.

when I try the first one some updates come through but the rest is

E: Some index files failed to download, they have been ignored, or old ones used instead.

When I try the curl command I just get

#sudo: curl: command not found
asb commented 10 years ago

This really needs to be taken to the forums. curl has been included on the Foundation's Raspbian image since June 2012. What does your /etc/rpi-issue say?

Klendat commented 10 years ago

Apparently my starter pack was older.

uname -a says

Linux raspberrypi 3.1.9+ #90 Wed Apr 18 18:23:05 BST 2012 armv6l GNU/Linux
asb commented 10 years ago

That's ancient. You didn't buy it recently did you? I strongly, strongly recommend you download a new image and reflash your SD card.

Klendat commented 10 years ago

I bought last year but I only got around to using it now. I dread flashing my card because I only have windows machines and I hear that can cause some problems too.

lurch commented 10 years ago

As long as you follow the official instructions you should be fine. Even using Windows :-)

Ruffio commented 9 years ago

It looks like this issue has been resolved and can therefore be closed.