Skip to content

DietPi-Software | Failed to reinstall Home Assistant after DietPi update 10.3 #8116

@btuerk89

Description

@btuerk89

Details:

  • Date | 2026-04-27 16:47:23
  • Program name | DietPi-Software
  • Command | runuser -u homeassistant -- uv python install -U 3.14
  • Exit code | 2
  • DietPi version | v10.3.3 (MichaIng/master)
  • Distro version | trixie (ID=8,RASPBIAN=0)
  • Kernel version | Linux DietPi 6.12.75+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.12.75-1+rpt1 (2026-03-11) aarch64 GNU/Linux
  • Architecture | arm64
  • Hardware model | RPi 4 Model B (aarch64) (ID=4)
  • Power supply | N/A
  • SD card | using SSD drive

Steps to reproduce:

  1. trying to reinstall HA to use uv after DietPi update 10.3 with dietpi-software reinstall 157

Expected behaviour:

Update HA to use uv

Actual behaviour:

root@DietPi:/# dietpi-software reinstall 157
[  OK  ] DietPi-Software | Initialised database
[  OK  ] DietPi-Software | Reading database

 DietPi-Software
?????????????????????????????????????????????????????
 Mode: Automated reinstall

[  OK  ] DietPi-Software | Reinstalling Home Assistant: Open source home automation platform
[  OK  ] DietPi-Software | DietPi-Userdata validation: /mnt/dietpi_userdata

 DietPi-Software
?????????????????????????????????????????????????????
 Step: Checking for conflicts and missing inputs


 DietPi-Software
?????????????????????????????????????????????????????
 Step: Checking for prerequisite software

[ INFO ] DietPi-Software | uv will be installed
[  OK  ] DietPi-Software | mkdir -p /mnt/dietpi_userdata/Music /mnt/dietpi_userdata/Pictures /mnt/dietpi_userdata/Video /mnt/dietpi_userdata/downloads /var/www /opt /usr/local/bin
[  OK  ] DietPi-Software | chown dietpi:dietpi /mnt/dietpi_userdata/Music /mnt/dietpi_userdata/Pictures /mnt/dietpi_userdata/Video /mnt/dietpi_userdata/downloads
[  OK  ] DietPi-Software | chmod 0775 /mnt/dietpi_userdata/Music /mnt/dietpi_userdata/Pictures /mnt/dietpi_userdata/Video /mnt/dietpi_userdata/downloads
[ SUB1 ] DietPi-Services > stop 
[  OK  ] DietPi-Services | stop : caddy
[  OK  ] DietPi-Services | stop : cron
[  OK  ] DietPi-Services | stop : home-assistant
[  OK  ] DietPi-Services | stop : node-red
[  OK  ] DietPi-Services | stop : mosquitto
[ INFO ] DietPi-Software | Skipping APT update, as last call was less than an hour ago and neither sources lists nor architectures changed since.

 DietPi-Software
?????????????????????????????????????????????????????
 Step: Installing uv: Extremely fast Python package and project manager

[  OK  ] DietPi-Software | cd /tmp/DietPi-Software
[  OK  ] DietPi-Software | curl -sSfL https://github.com/astral-sh/uv/releases/download/0.11.8/uv-aarch64-unknown-linux-gnu.tar.gz -o uv-aarch64-unknown-linux-gnu.tar.gz
[  OK  ] DietPi-Software | tar xf uv-aarch64-unknown-linux-gnu.tar.gz
[  OK  ] DietPi-Software | rm uv-aarch64-unknown-linux-gnu.tar.gz
[  OK  ] DietPi-Software | mv uv-aarch64-unknown-linux-gnu/uv /usr/local/bin/uv
[  OK  ] DietPi-Software | rm -R uv-aarch64-unknown-linux-gnu

 DietPi-Software
?????????????????????????????????????????????????????
 Step: Installing Home Assistant: Open source home automation platform

[ INFO ] DietPi-Software | Home Assistant user: homeassistant
[ INFO ] DietPi-Software | Home Assistant home: /opt/homeassistant
[ INFO ] DietPi-Software | HA Python version:   3.14
[  OK  ] DietPi-Software | usermod -aG dialout,gpio,i2c -d /opt/homeassistant -s /usr/sbin/nologin homeassistant
[  OK  ] DietPi-Software | mkdir -p /opt/homeassistant
[  OK  ] DietPi-Software | chown homeassistant:homeassistant /opt/homeassistant
[  OK  ] DietPi-Software | cd /opt/homeassistant
[ INFO ] DietPi-Software | APT install libc6-dev gcc g++, please wait...
Reading package lists...
Building dependency tree...
Reading state information...
libc6-dev is already the newest version (2.41-12+rpt1+deb13u2).
gcc is already the newest version (4:14.2.0-1).
g++ is already the newest version (4:14.2.0-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
[  OK  ] DietPi-Software | APT install libc6-dev gcc g++
[  OK  ] DietPi-Software | mkdir -p /opt/homeassistant/.config/uv
[  OK  ] DietPi-Software | eval echo 'no-cache = true' > '/opt/homeassistant/.config/uv/uv.toml'
[ INFO ] DietPi-Software | Installing Python, please wait...
error: failed to create directory `/root/.local/share/uv/python`: Permission denied (os error 13)
[FAILED] DietPi-Software | Installing Python
 - Command: runuser -u homeassistant -- uv python install -U 3.14

Extra details:

  • ...

Additional logs:

error: failed to create directory `/root/.local/share/uv/python`: Permission denied (os error 13)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions