# rpi-update

**URL:** https://dietpi.com/forum/t/rpi-update/4319
**Category:** Troubleshooting
**Created:** [23 July 2020 21:02 UTC](https://dietpi.com/forum/t/rpi-update/4319 "2020-07-23T21:02:24Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![donbrew](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/d/cc9497/32.png) [@donbrew](https://dietpi.com/forum/u/donbrew)
#### Post date: [23 July 2020 21:02 UTC](https://dietpi.com/forum/t/rpi-update/4319/1 "2020-07-23T21:02:24Z")

</div>

I accidentally updated the kernel on my pi4 to 5.4. It broke a few things that the foundation admits to. When I tried to downgrade I found out that rpi-update is not included in DietPi.

Is there another way?  
I still have a copy of DietPi on a SD card that I used to make the Pi USB/HD bootable; What would I need to copy from it and not lose all my setup stuff.

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [24 July 2020 11:00 UTC](https://dietpi.com/forum/t/rpi-update/4319/2 "2020-07-24T11:00:30Z")

</div>

Hi,

many thanks for your request. You simply can install rpi-update if needed

```nohighlight
apt install rpi-update

```

[https://github.com/Hexxeh/rpi-update](https://github.com/Hexxeh/rpi-update)

---

<div class="post-metadata">

### Author: ![donbrew](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/d/cc9497/32.png) [@donbrew](https://dietpi.com/forum/u/donbrew)
#### Post date: [25 July 2020 19:44 UTC](https://dietpi.com/forum/t/rpi-update/4319/3 "2020-07-25T19:44:08Z")

</div>

Yeah, I installed rpi-update from apt. Problem is I am running headless and the ethernet connection crashes too frequently to run it!

So, what I did was edit cmdline.txt and started using the SD card to boot and the HDD for root. Worked good until I had to use DietPi-software to add an app. That triggered a full-upgrade which reinstalled kernel 5.4.

Kernel 5.4 turns my Pi4 into a boat anchor by killing at least 1 core and doing something to the USB and ethernet. Oddly, I have 2 PCs that are running kernel 5.4 just fine.

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [25 July 2020 20:35 UTC](https://dietpi.com/forum/t/rpi-update/4319/4 "2020-07-25T20:35:58Z")

</div>

Yes dietpi-software is going to trigger apt update && apt upgrade, always. Looks like there are some issues with the new Raspberry OS Kernel 5.4. You could try to exclude packages from being upgrade by apt

```nohighlight
apt-mark hold <package>

```

---

<div class="post-metadata">

### Author: ![donbrew](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/d/cc9497/32.png) [@donbrew](https://dietpi.com/forum/u/donbrew)
#### Post date: [26 July 2020 14:45 UTC](https://dietpi.com/forum/t/rpi-update/4319/5 "2020-07-26T14:45:37Z")

</div>

Be prepared! Everybody with a PI4 that downloads new software will be killing their machine until the new kernel is fixed. There does not seem to be much urgency at the foundation, they knew about the problem several days before they pushed it. Now all you get is warnings to not pester them about it.

I don’t know if the problem extends to the Pi3. It seems to have something to do with USB 3.0/ethernet.

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [26 July 2020 14:50 UTC](https://dietpi.com/forum/t/rpi-update/4319/6 "2020-07-26T14:50:10Z")

</div>

There are more issues on the new kernel. Honestly I’m don’t understand why the foundation released such a buggy kernel.

---

<div class="post-metadata">

### Author: ![wyup](https://dietpi.com/forum/user_avatar/dietpi.com/wyup/32/3082_2.png) [@wyup](https://dietpi.com/forum/u/wyup)
#### Post date: [2 July 2023 22:53 UTC](https://dietpi.com/forum/t/rpi-update/4319/7 "2023-07-02T22:53:25Z")

</div>

Is [https://github.com/raspberrypi/rpi-update](https://github.com/raspberrypi/rpi-update) safe to use with DietPi? It is not in the debian repository. Their README.md says:

> This is only intended for use with Raspberry Pi OS. If you are using a different distribution then check with the maintainers if using rpi-update is safe

.  
It is meant to be installed by

```auto
sudo curl -L --output /usr/bin/rpi-update https://raw.githubusercontent.com/raspberrypi/rpi-update/master/rpi-update && sudo chmod +x /usr/bin/rpi-update

```

May I safely try it with latest DietPi? It seems they are on 6.1.32, my DietPi kernel is 6.1.21 now.

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [2 July 2023 23:16 UTC](https://dietpi.com/forum/t/rpi-update/4319/8 "2023-07-02T23:16:50Z")

</div>

you are using Raspberry Pi device? if yes,

```auto
apt install rpi-update

```

---

<div class="post-metadata">

### Author: ![wyup](https://dietpi.com/forum/user_avatar/dietpi.com/wyup/32/3082_2.png) [@wyup](https://dietpi.com/forum/u/wyup)
#### Post date: [2 July 2023 23:40 UTC](https://dietpi.com/forum/t/rpi-update/4319/9 "2023-07-02T23:40:01Z")

</div>

```auto
root@DietPi:/home# apt install rpi-update
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias... Hecho
Leyendo la información de estado... Hecho
E: No se ha podido localizar el paquete rpi-update

```

can’t find rpi-update

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [3 July 2023 01:08 UTC](https://dietpi.com/forum/t/rpi-update/4319/10 "2023-07-03T01:08:52Z")

</div>

Which SBC you are running? This is working on Raspberry Pi only.

---

<div class="post-metadata">

### Author: ![wyup](https://dietpi.com/forum/user_avatar/dietpi.com/wyup/32/3082_2.png) [@wyup](https://dietpi.com/forum/u/wyup)
#### Post date: [3 July 2023 10:50 UTC](https://dietpi.com/forum/t/rpi-update/4319/11 "2023-07-03T10:50:17Z")

</div>

Working now. Had to change apt repository mirror from custom es to global via dietpi-config. Now installs ok.

I’m running DietPi v8.19.1 on a RPi 4 Model B (aarch64)

I get this warning when running rpi-update:

> Partition size 128M may not be sufficient for new Pi4 files  
> This could result in a system that will not boot.  
> 256M FAT partition is recommended. Ensure you have a backup if continuing.  
> Would you like to proceed? (y/N)
