solo2500
Posts: 123
Joined: Sat Jul 09, 2016 12:38 am

apt-get update ?

Tue Nov 22, 2016 1:25 am

I'm a total novice, non-programer (...basically a hack.)
Today I ran apt-get update before I installed a peripheral package. A few hours later I noticed a few things not running (like the WiFi). I rebooted the Pi and all started working again. It had been 4 to 6 weeks since the last time I updated things.

Is this common?

Any thoughts appreciated!
I'm a total novice, non-programer (...basically a hack.)

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

Re: apt-get update ?

Tue Nov 22, 2016 8:25 am

If your apt-get updated the kernel version then you'll have a running kernel with no matching /lib/modules/`uname -r` directory. That should prompt apt-get to recommend that you reboot (but it doesn't).

The thing to do is read the messages that are emitted when you're running apt-get, they tell you (in glorious detail) what's being updated.
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.

User avatar
HawaiianPi
Posts: 5838
Joined: Mon Apr 08, 2013 4:53 am
Location: Aloha, Oregon USA

Re: apt-get update ?

Tue Nov 22, 2016 10:18 am

solo2500 wrote:I'm a total novice, non-programer (...basically a hack.)
Today I ran apt-get update before I installed a peripheral package. A few hours later I noticed a few things not running (like the WiFi). I rebooted the Pi and all started working again. It had been 4 to 6 weeks since the last time I updated things.

Is this common?

Any thoughts appreciated!
I assume you meant sudo apt-get update && sudo apt-get upgrade, because apt-get update by itself does nothing but update the software packages list. It's apt-get upgrade, or apt-get dist-upgrade that actually installs the newer packages.

To expand a bit on what Dougie said above, on a more typical Linux system (in oversimplified terms), upgrade only updates installed packages and does not upgrade the kernel, while dist-upgrade will upgrade or replace packages as needed, install new packages if part of the upgrade, and upgrade major things like the kernel. Normally a reboot is not needed for upgrade, but it often is after a dist-upgrade.

Now Raspbian, in all its non-standard strangeness, seems to treat upgrade and dist-upgrade the same, but it does not tell you if you need to reboot afterword. :? :roll:
My mind is like a browser. 27 tabs are open, 9 aren't responding,
lots of pop-ups...and where is that annoying music coming from?

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

Re: apt-get update ?

Tue Nov 22, 2016 11:17 am

HawaiianPi wrote:
solo2500 wrote:I'm a total novice, non-programer (...basically a hack.)
Today I ran apt-get update before I installed a peripheral package. A few hours later I noticed a few things not running (like the WiFi). I rebooted the Pi and all started working again. It had been 4 to 6 weeks since the last time I updated things.

Is this common?

Any thoughts appreciated!
I assume you meant sudo apt-get update && sudo apt-get upgrade, because apt-get update by itself does nothing but update the software packages list. It's apt-get upgrade, or apt-get dist-upgrade that actually installs the newer packages.

To expand a bit on what Dougie said above, on a more typical Linux system (in oversimplified terms), upgrade only updates installed packages and does not upgrade the kernel, while dist-upgrade will upgrade or replace packages as needed, install new packages if part of the upgrade, and upgrade major things like the kernel. Normally a reboot is not needed for upgrade, but it often is after a dist-upgrade.

Now Raspbian, in all its non-standard strangeness, seems to treat upgrade and dist-upgrade the same, but it does not tell you if you need to reboot afterword. :? :roll:
https://linux.die.net/man/8/apt-get
Rather than negativity think outside the box !
RPi 4B 4GB (SSD Boot)..
Asus ChromeBox 3 Celeron is my other computer...

User avatar
dasmanul
Posts: 502
Joined: Wed Sep 30, 2015 10:20 am
Location: Frankfurt, Germany

Re: apt-get update ?

Tue Nov 22, 2016 2:25 pm

HawaiianPi wrote:Now Raspbian, in all its non-standard strangeness, seems to treat upgrade and dist-upgrade the same
That does not conform to my experience of Raspbian behaving exactly as described in @fruitoftheloom's link.

solo2500
Posts: 123
Joined: Sat Jul 09, 2016 12:38 am

Re: apt-get update ?

Tue Nov 22, 2016 3:49 pm

THANKS all!
Slowly but surely I'm starting to understand (with a lot of forum help!) how this device works.
I'm a total novice, non-programer (...basically a hack.)

Return to “Beginners”