70
votes
Accepted
How do I set my Raspberry Pi to automatically update/upgrade?
Instead of a manual cron, you can install unattended-upgrades, which is useful to ensure the latest kernels are installed. It's mostly designed for security.
apt-get install unattended-upgrades
There ...
61
votes
Is the Raspberry Pi vulnerable to the Spectre or Meltdown exploit?
According to ARM themselves, the processor cores used in all models before the Pi 4 are not vulnerable.
The majority of Arm processors are not impacted by any variation of this side-channel ...
41
votes
How do I set my Raspberry Pi to automatically update/upgrade?
In its default configuration, unattended-upgrades is broken in Raspbian Buster. It won't install crucial updates for the kernel and other software. Your options are:
Recommended Option:
Install and ...
28
votes
Accepted
Updating Python 3.7 to 3.8 on Raspberry Pi
Why? Just because it takes a while for distributions to integrate new versions.
Here's what I did to install Python 3.8.5 on my rpi:
sudo apt-get install -y build-essential tk-dev libncurses5-dev \
...
28
votes
Fix error "Failed to start DHCP Client Daemon" after upgrade to "Bullseye" remote?
There is a fix for this "Failed to start DHCP Client Daemon" on Updated to Bullseye, needed to change my dhcpcd.conf reddit thread for anyone that has the same problem with Failed to start ...
23
votes
Raspberry Pi sudo apt-get update not working
I assume you are using Raspbian. It could be that your installation lists are broken. I suggest to reinitialize them by editing sources.list and raspi.list. By default they look like this:
rpi ~$ cat ...
22
votes
Is the Raspberry Pi vulnerable to the Spectre or Meltdown exploit?
The Pi (all versions) is not vulnerable.
Spectre and Meltdown both require out-of-order execution. The Cortex-A7 used in the early Pi 2 and the Cortex A53 used in the later Pi 2 and the Pi 3 is a ...
21
votes
Will Raspberry Pi OS update `sudo` to address a recent security vulnerability?
This vulnerability can be trivially tested:
To test whether your version of sudo is vulnerable, the following command can be used:
sudoedit -s /
A vulnerable version of sudo will either prompt for ...
20
votes
Accepted
Will Raspberry Pi OS update `sudo` to address a recent security vulnerability?
While there are exceptions, generally stable releases of Linux distros backport important security fixes rather than packaging new upstream versions. They do this because the new upstream versions ...
15
votes
Is the Raspberry Pi vulnerable to the KRACKs on WPA2 networks?
Yes, your Pis are vulnerable until the patched versions of the Debian packages are available for Raspbian.
Edit: The patched versions are now available for Raspbian.
14
votes
Do I still need rpi-update if I am using the latest version of Raspbian?
Meanwhile the kernel is part of the raspberrypi-kernel-package in Raspbian.
So rpi-update is not needed anymore to update the kernel.
There are several kernels in the package, that means it works on ...
14
votes
Accepted
Fix error "Failed to start DHCP Client Daemon" after upgrade to "Bullseye" remote?
This occurs following dist-upgrade to bullseye and prevents the Pi from getting network access.
Further to the answer from @Ivan (which fixed this problem for me), you can make the necessary change to ...
13
votes
update problem with apt-get after new install of OS
You've asked a good question - one that's a potential concern to all RPi users. I'm still working through this - I may not have a complete answer now, but I'll post what I've learned now, and update ...
12
votes
Do I still need rpi-update if I am using the latest version of Raspbian?
The answer marked as correct is in fact outdated, and in a problematic way: rpi-update will update the firmware to the latest published version, which has to be considered "not stable". So following ...
12
votes
Configuring `unattended-upgrades` on Raspbian Stretch
The most important lines are:
"origin=Raspbian,codename=${distro_codename},label=Raspbian";
"origin=Raspberry Pi Foundation,codename=${distro_codename},label=Raspberry Pi Foundation";
Here is the ...
10
votes
Accepted
How do I update Java 8 in Raspbian
To have all the time the most recent Oracle java installed, you can do
check current Java
pi@raspberrypi:~ $ java -version java version "1.8.0_65" Java(TM) SE
Runtime Environment (build 1.8.0_65-...
10
votes
Is the Raspberry Pi vulnerable to the Spectre or Meltdown exploit?
I'd like to offer my different take on this.
About Meltdown, it's a very specific vulnerability in some processors, so if ARM says the CPU in Raspberry Pi is not vulnerable, then it can probably be ...
10
votes
Accepted
Xorg doesn't start after upgrade from Stretch to Buster
After enabling ssh, I could figure out that the xserver did not start.
startx said "no screens found".
So I tried out all the ways to config the pi in headless mode
Editing the config.txt ...
8
votes
How do I set my Raspberry Pi to automatically update/upgrade?
You can install and configure cron-apt. Install it by doing the following:
apt-get install cron-apt
the main configuration file is /etc/cron-apt/config
One thing I add to my configuration is:
...
7
votes
Accepted
Is it worth it to upgrade to Jessie on a headless Pi2?
It's important to clarify something about Raspbian for people who aren't otherwise aware: Raspbian is Debian, a GNU/Linux distribution that's been around for ~20 years and is currently on its 8th ...
7
votes
Upgrade to Raspbian Jessie
Just an addition for users that could land here looking for the upgrade procedure, like me!
On the official Raspberry Pi website the update from Wheezy to Jessie is discouraged. Instead they ...
7
votes
Pi 3 Raspbian "stretch" (testing) disables wifi
The package that provides the Wi-Fi firmware is called firmware-brcm80211. To downgrade this package to a version that works:
sudo apt-get install firmware-brcm80211=0.43+rpi5
To prevent this ...
7
votes
Enable SSH in NOOBS before install
You just need to add a file named 'ssh' to the noobs partition (you can do it right when copying fresh noobs files to a clean sd card) and it will enable ssh for raspbian when you install it from this ...
6
votes
Accepted
Can I plug my SD card from Pi 3 into a Pi 4?
This can be done, but requires a bit of work to get the bootloader updated for Raspberry Pi 4. Here's how I did it:
Back up your SD card!!! This can go wrong any number of ways. Not my fault if you ...
6
votes
Is older Raspberry Pi safe? When is the end of software support for them?
The same version of Raspberry Pi OS works on all Pi models.
https://www.raspberrypi.org/downloads/
5
votes
Accepted
How to fix glibc vulnerability CVE-2015-7547
According to the Debian Security Tracker entry for this vulnerability, updates for glibc/eglibc/libc6 will fix this issue:
wheezy: 2.13-38+deb7u10
jessie: 2.19-18+deb8u3
These are available for ...
5
votes
How to solve "Encountered a section with no Package: header" error?
The error saying "Problem with MergeList /var/lib/..." indicates that the status file got corrupted for some reason, and so cannot be parsed. This status file contains information about installed deb ...
5
votes
Installing Qt on Raspberry Pi 3
Here is a working way to install Qt5. For Qt5 there is no need for dev-tools. So this command is not relevant:
sudo apt-get install qt4-dev-tools
The two commands needed to install Qt5 fully are:
...
5
votes
Accepted
How to upgrade GNU nano to newer version?
Why does Raspbian think you have the latest version of nano when you don't?
I'm guessing you're running Raspbian Jessie. If you are, it turns out that 2.2.6 is the latest version of nano in the ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
update × 295raspbian × 95
apt × 71
raspbian-jessie × 22
kernel × 18
pi-4 × 15
rpi-update × 15
pi-3 × 14
python × 13
firmware × 13
sd-card × 12
software-installation × 12
boot × 11
raspbian-stretch × 11
raspbian-buster × 11
security × 10
pi-2 × 8
operating-systems × 8
sudo × 8
wifi × 6
raspbian-wheezy × 6
packages × 6
raspberry-pi-os-bullseye × 6
networking × 5
pi-3b+ × 5