fred44nl
Posts: 292
Joined: Sat Jun 25, 2016 11:59 am
Location: Scharendijke, NL

how and when update or upgrade

Sun Mar 05, 2017 10:56 am

installed my first Raspberry Pi 3B in october last year.
from time to time I run the normal update/upgrade commands.
currently I have:
Linux raspberrypi 4.4.38-v7+ #938 SMP Thu Dec 15 15:22:21 GMT 2016 armv7l GNU/Linux
these commands do not update the kernel, nor the firmware.
as I see discussions about kernel 4.9 I am wondering if it is time to update my kernel.
there are instructions about this, giving 2 options:
1. sudo apt-get install raspberrypi-bootloader
2. sudo rpi-update
what's the best advice ??
headless RPi 3B running from usbhdd.

mattmiller
Posts: 2243
Joined: Thu Feb 05, 2015 11:25 pm

Re: how and when update or upgrade

Sun Mar 05, 2017 11:02 am

Don't change kernels
Doing so is only for people who don't mind testing out things and are prepared for things to break

User avatar
DougieLawson
Posts: 39120
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: how and when update or upgrade

Sun Mar 05, 2017 11:27 am

Run sudo apt-get update && sudo apt-get -y dist-upgrade and you will get a fully supported, stable, non-testing 4.4.50+ / 4.4.50-v7+ kernel.

DO NOT run rpi-update unless you completely understand what it does to your system and are ready to rebuild things when it won't boot or you can't get connected to it.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

fred44nl
Posts: 292
Joined: Sat Jun 25, 2016 11:59 am
Location: Scharendijke, NL

Re: how and when update or upgrade

Sun Mar 05, 2017 11:45 am

ok, clear :)
how often should I run sudo apt-get -y dist-upgrade ??
this did not give me 4.4.50 tho.
something wrong with my /etc/apt/sources.list ??
deb http://mirrordirector.raspbian.org/raspbian/ jessie main contrib non-free rpi
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
deb-src http://archive.raspbian.org/raspbian/ jessie main contrib non-free rpi

deb http://www.deb-multimedia.org jessie main non-free
deb-src http://www.deb-multimedia.org jessie main non-free

deb http://httpredir.debian.org/debian jessie-backports main non-free
deb-src http://httpredir.debian.org/debian jessie-backports main non-free

deb http://ftp.de.debian.org/debian jessie-backports main
headless RPi 3B running from usbhdd.

User avatar
DougieLawson
Posts: 39120
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: how and when update or upgrade

Sun Mar 05, 2017 12:31 pm

How often you upgrade depends on what your Raspberry is doing.

For a server you should be looking for security fixes every day and updating once a week. For a client machine (just used for web browsing and GPIO stuff, etc.) you should be looking for security fixes once a week and updating once a month.

If the machine never connects to the public internet then don't bother doing any update once your offline application works.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

fred44nl
Posts: 292
Joined: Sat Jun 25, 2016 11:59 am
Location: Scharendijke, NL

Re: how and when update or upgrade

Sun Apr 02, 2017 6:40 pm

DougieLawson wrote:Run sudo apt-get update && sudo apt-get -y dist-upgrade and you will get a fully supported, stable, non-testing 4.4.50+ / 4.4.50-v7+ kernel.
I have done these commands a couple of times and did not get 4.4.50
until I had to reboot in order to force fsck.
I did never get an instruction nor message to reboot in order to activate the new kernel.
how can I know that I have to reboot after an upgrade ??
headless RPi 3B running from usbhdd.

Heater
Posts: 15949
Joined: Tue Jul 17, 2012 3:02 pm

Re: how and when update or upgrade

Sun Apr 02, 2017 7:03 pm

Pretty much the only time you have to reboot after an upgrade is when the kernel gets upgraded. apt-get upgrade will tell you what it is about to upgrade so you will see something about a kernel package in the list.

Mind you, it's probably a good idea to reboot after an upgrade occasionally just so you are totally sure everything restarts as it should. Such breakage is rare but has been known to happen. Especially true if you Pi is normally running unattended and you want to be sure it comes up again after a power failure.
Memory in C++ is a leaky abstraction .

User avatar
DougieLawson
Posts: 39120
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: how and when update or upgrade

Mon Apr 03, 2017 8:08 am

fred44nl wrote:
DougieLawson wrote:Run sudo apt-get update && sudo apt-get -y dist-upgrade and you will get a fully supported, stable, non-testing 4.4.50+ / 4.4.50-v7+ kernel.
I have done these commands a couple of times and did not get 4.4.50
until I had to reboot in order to force fsck.
I did never get an instruction nor message to reboot in order to activate the new kernel.
how can I know that I have to reboot after an upgrade ??
Then you mustn't be running Raspbian Jessie, because every using Jessie will have 4.4.50 on a reboot after doing that dist-upgrade.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

fred44nl
Posts: 292
Joined: Sat Jun 25, 2016 11:59 am
Location: Scharendijke, NL

Re: how and when update or upgrade

Mon Apr 03, 2017 9:02 am

I sure am running Raspbian Jessie Lite.
but I never realised that a dist-upgrade might need a reboot.
I didn't see nor pay sufficient attention to the messages coming from dist-upgrade.
anyway, I now have 4.4.50 :)
headless RPi 3B running from usbhdd.

mfa298
Posts: 1387
Joined: Tue Apr 22, 2014 11:18 am

Re: how and when update or upgrade

Mon Apr 03, 2017 10:29 am

fred44nl wrote:I sure am running Raspbian Jessie Lite.
but I never realised that a dist-upgrade might need a reboot.
I didn't see nor pay sufficient attention to the messages coming from dist-upgrade.
anyway, I now have 4.4.50 :)
It's fairly standard that if you upgrade the kernel to get that new kernel you need to reboot. This is because the kernel is the first part of linux to be loaded as the system boots. This applies to pretty much every OS out there (that's why you have to normally reboot windows as part of it's monthly update as well).

fred44nl
Posts: 292
Joined: Sat Jun 25, 2016 11:59 am
Location: Scharendijke, NL

Re: how and when update or upgrade

Mon Apr 03, 2017 10:58 am

mfa298 wrote:It's fairly standard that if you upgrade the kernel to get that new kernel you need to reboot.
yes, I know, but I have not seen any message, telling me, that the updates available, did include a new kernel.
let's say I do apt-get update & upgrade once a week without reboot ànd apt-get dist-update & upgrade once a month with reboot, I would be OK, I guess.
headless RPi 3B running from usbhdd.

fred44nl
Posts: 292
Joined: Sat Jun 25, 2016 11:59 am
Location: Scharendijke, NL

Re: how and when update or upgrade

Mon Apr 10, 2017 1:25 pm

to-day I ran sudo apt-get update & upgrade and noticed there was a kernel update.
after this, I rebooted the RPi but as far as I can tell the kernel is still 4.4.50-v7
am I missing something ??
Attachments
Schermafbeelding 2017-04-10 om 15.07.30.jpg
Schermafbeelding 2017-04-10 om 15.07.30.jpg (57.44 KiB) Viewed 3586 times
Last edited by fred44nl on Mon Apr 10, 2017 1:45 pm, edited 1 time in total.
headless RPi 3B running from usbhdd.

fruitoftheloom
Posts: 23337
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: how and when update or upgrade

Mon Apr 10, 2017 1:41 pm

fred44nl wrote:to-day I ran sudo apt-get update & upgrade and noticed there was a kernel update.
after this, I rebooted the RPi but as far as I can tell the kernel is still 4.4.50-v7
am I missing something ??
Schermafbeelding 2017-04-10 om 15.07.30.jpg

Code: Select all

sudo apt-get update
sudo apt-get dist-upgrade
sudo reboot
Last edited by fruitoftheloom on Mon Apr 10, 2017 2:11 pm, edited 3 times in total.
Rather than negativity think outside the box !
RPi 4B 4GB (SSD Boot)..
Asus ChromeBox 3 Celeron is my other computer...

fred44nl
Posts: 292
Joined: Sat Jun 25, 2016 11:59 am
Location: Scharendijke, NL

Re: how and when update or upgrade

Mon Apr 10, 2017 1:47 pm

the command sudo dist-upgrade reports:

0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
headless RPi 3B running from usbhdd.

mfa298
Posts: 1387
Joined: Tue Apr 22, 2014 11:18 am

Re: how and when update or upgrade

Mon Apr 10, 2017 1:53 pm

It looks like the package version got bumped last week, although the packaged kernel dates back to feb

Code: Select all

pi@pi2:~ $ dpkg -l raspberrypi-kernel
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                      Version           Architecture      Description
+++-=========================-=================-=================-========================================================
ii  raspberrypi-kernel        1.20170405-1      armhf             Raspberry Pi bootloader
pi@pi2:~ $ uname -a
Linux pi2.private.yapd.net 4.4.50-v7+ #970 SMP Mon Feb 20 19:18:29 GMT 2017 armv7l GNU/Linux
I'm wondering if it was a firmware update and the kernel package version got bumped along with it.

fred44nl
Posts: 292
Joined: Sat Jun 25, 2016 11:59 am
Location: Scharendijke, NL

Re: how and when update or upgrade

Mon Apr 10, 2017 1:57 pm

both commands show exactly the same output on my RPi.
headless RPi 3B running from usbhdd.

fruitoftheloom
Posts: 23337
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: how and when update or upgrade

Mon Apr 10, 2017 2:10 pm

fred44nl wrote:both commands show exactly the same output on my RPi.
Would appear to be a recent GPU Firmware Update

Code: Select all

uname -a

Linux raspberrypi 4.4.50-v7+ #970 SMP Mon Feb 20 19:18:29 GMT 2017 armv7l GNU/Linux

Code: Select all

/opt/vc/bin/vcgencmd version

Apr  5 2017 11:49:52 
Copyright (c) 2012 Broadcom
version 3ca4cf4a663c5351eaec08b29d50d6e8324981b4 (clean) (release)
Rather than negativity think outside the box !
RPi 4B 4GB (SSD Boot)..
Asus ChromeBox 3 Celeron is my other computer...

fred44nl
Posts: 292
Joined: Sat Jun 25, 2016 11:59 am
Location: Scharendijke, NL

Re: how and when update or upgrade

Mon Apr 10, 2017 2:16 pm

fred44nl wrote:both commands show exactly the same output on my RPi.
sorry not true :)

Code: Select all

uname -a
Linux raspberrypi 4.4.50-v7+ #970 SMP Mon Feb 20 19:18:29 GMT 2017 armv7l GNU/Linux
headless RPi 3B running from usbhdd.

Return to “General discussion”