Mkdir: cannot create directory ‘/pkgconf’: Permission denied

How to build Home Assistant under Ubuntu 22.04?

➜  operating-system git:(dev) ✗ make -j16
config generic_aarch64
make -C ....../home-assistant/operating-system/buildroot O=....../home-assistant/operating-system/output BR2_EXTERNAL=....../home-assistant/operating-system/buildroot-external "generic_aarch64_defconfig"
make[1]: Entering directory '....../home-assistant/operating-system/buildroot'
  GEN     ....../home-assistant/operating-system/output/Makefile
#
# configuration written to ....../home-assistant/operating-system/output/.config
#
make[1]: Leaving directory '....../home-assistant/operating-system/buildroot'
build generic_aarch64
make -C ....../home-assistant/operating-system/buildroot O=....../home-assistant/operating-system/output BR2_EXTERNAL=....../home-assistant/operating-system/buildroot-external VERSION_DEV="dev20230720"
make[1]: Entering directory '....../home-assistant/operating-system/buildroot'
mkdir: cannot create directory ‘/cache’: Permission denied
/usr/bin/make -j1 O=....../home-assistant/operating-system/output HOSTCC="/usr/bin/gcc" HOSTCXX="/usr/bin/g++" syncconfig
make[3]: warning: -j1 forced in submake: resetting jobserver mode.
  GEN     ....../home-assistant/operating-system/output/Makefile
>>> host-pkgconf 1.6.3 Downloading
mkdir: cannot create directory ‘/pkgconf’: Permission denied
make[2]: *** [package/pkg-generic.mk:189: ....../home-assistant/operating-system/output/build/host-pkgconf-1.6.3/.stamp_downloaded] Error 1
make[1]: *** [Makefile:82: _all] Error 2
make[1]: Leaving directory '....../home-assistant/operating-system/buildroot'
make: *** [Makefile:35: generic_aarch64] Error 2

Ubuntu is unsupported. Use Debian instead. And don’t say Ubuntu is based on Debian. :slight_smile: The problem comes with certain dependencies. What I said will be the official answer from the mods and devs.

And you didn’t state your installation method: HA Core, Supervised, etc.

You can run HAOS in Ubuntu using KVM. Read my guide, which is for Debian but the same methodology, even commands apply to Ubuntu.

Only for a supervised install. Container, VM and core install types can be installed on Ubuntu.

1 Like