User avatar
grumpyoldgit
Posts: 1452
Joined: Thu Jan 05, 2012 12:20 pm

Issue installing rpi-update

Thu Jun 07, 2012 1:33 pm

Having now added a memory stick to my Pi I am going through a number of updates.

Rpi-update is proving to be a bit of a problem. I have gone through

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install ca-certificates

and am now at Hexxeh's instructions for installing rpi-update itself.

sudo wget http://goo.gl/1BOfJ -O /usr/bin/rpi-update && chmod +x /usr/bin/rpi-update

However, it stops very quickly with

chmod: changing permissions of `/usr/bin/rpi-update': Operation not permitted

Any ideas? I had assumed that with sudo at the beginning of the command I wouldn't have any permission issues.

I would add that I am doing this remotely through ssh.

User avatar
rurwin
Forum Moderator
Forum Moderator
Posts: 4258
Joined: Mon Jan 09, 2012 3:16 pm
Contact: Website

Re: Issue installing rpi-update

Thu Jun 07, 2012 1:36 pm

That rings a bell. Just type the chmod command again. Whoever wrote the instructions was over-zealous.

You'll need to install git-core as well.

User avatar
nick.mccloud
Posts: 804
Joined: Sat Feb 04, 2012 4:18 pm

Re: Issue installing rpi-update

Thu Jun 07, 2012 2:02 pm

grumpyoldgit wrote: sudo wget http://goo.gl/1BOfJ -O /usr/bin/rpi-update && chmod +x /usr/bin/rpi-update
It was a cute idea but should of been:

sudo wget http://goo.gl/1BOfJ -O /usr/bin/rpi-update && sudo chmod +x /usr/bin/rpi-update


As the second command (run on success of the first, hence the &&), doesn't pick up the sudo bit.

So, as mentioned above just:

sudo chmod +x /usr/bin/rpi-update

User avatar
grumpyoldgit
Posts: 1452
Joined: Thu Jan 05, 2012 12:20 pm

Re: Issue installing rpi-update

Thu Jun 07, 2012 2:07 pm

These are Hexxeh's instructions, copied directly from his page on the github site so will have been followed dozens of times previously.

I will take your comments onboard and see if they get me any further.

User avatar
hayesey
Posts: 78
Joined: Mon Nov 28, 2011 12:46 pm
Location: Manchester, England

Re: Issue installing rpi-update

Thu Jun 07, 2012 2:15 pm

the instructions are wrong, they'd only work if you already happened to have logged in as root anyway.

Code: Select all

sudo wget http://goo.gl/1BOfJ -O /usr/bin/rpi-update && chmod +x /usr/bin/rpi-update
is the same as issuing the command:

Code: Select all

sudo wget http://goo.gl/1BOfJ -O /usr/bin/rpi-update
waiting for it to finish and then:

Code: Select all

chmod +x /usr/bin/rpi-update
So the 2nd command needs "sudo" too as per Nick's post.

User avatar
grumpyoldgit
Posts: 1452
Joined: Thu Jan 05, 2012 12:20 pm

Re: Issue installing rpi-update

Thu Jun 07, 2012 2:41 pm

This is Hexxeh's page.

https://github.com/Hexxeh/rpi-update

As outlined above, I needed git-core

Code: Select all

sudo apt-get install git-core
and to either add sudo to the main instruction or seperate the two instructions, ensuring that they both prefaced by sudo.
The Pi has happily rebooted and seems fine, which also contadicts a couple of other posts on here today that said that rpi-update was currently rendering the Pi unbootable.

Thanks for the help.

Interestingly, the reason I was doing all this remotely was because after moving the file system onto a memory stick, the mouse and keyboard froze when I ran LXDE. The mouse is now working fine, as is the keyboard.

User avatar
Montala
Posts: 675
Joined: Mon Mar 05, 2012 11:54 pm
Location: Herefordshire (U.K.)

Re: Issue installing rpi-update

Thu Jun 07, 2012 2:46 pm

On reading the above it looks to me as if Hexxeh's instruction should perhaps be revised slightly?

Until then, this is a thread to be 'bookmarked' I think, as this sort of feedback can be very useful!

Return to “Troubleshooting”