Unable to update core

Hello,

I’m trying to update core from 23.5.2 to 23.6.2 and system just reboots during update without applying it. This happens updating in UI or command line.

The same happens when updating studio visual code (but i just reeinstall it and the problem is ‘solved’).

HA is installed on a proxmox vm with the following config:

PROX

i’ve ssh’ed to ha and did the following:

ha core info

➜  ~ ha core info
arch: amd64
audio_input: null
audio_output: null
boot: true
image: ghcr.io/home-assistant/qemux86-64-homeassistant
ip_address: 172.30.32.1
machine: qemux86-64
port: 8123
ssl: false
update_available: true
version: 2023.5.2
version_latest: 2023.6.2
watchdog: true

ha core stop
pip3 install --upgrade homeassistant

got the following error:

Building wheels for collected packages: home-assistant-bluetooth, lru-dict, python-slugify
  Building wheel for home-assistant-bluetooth (pyproject.toml) ... done
  Created wheel for home-assistant-bluetooth: filename=home_assistant_bluetooth-1.10.0-cp311-cp311-musllinux_1_2_x86_64.whl size=73989 sha256=e65f14ef7f07e10a8d0944347fb097c41bf3638a5fad4644a4ae6d90f4f31f5b
  Stored in directory: /root/.cache/pip/wheels/a3/b7/a8/f0bfc116d8b85bb474a38ac034eb9af9623305ae9dcdeb484d
  Building wheel for lru-dict (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for lru-dict (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [8 lines of output]
      running bdist_wheel
      running build
      running build_ext
      building 'lru' extension
      creating build
      creating build/temp.linux-x86_64-cpython-311
      gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/include/python3.11 -c lru.c -o build/temp.linux-x86_64-cpython-311/lru.o
      error: command 'gcc' failed: No such file or directory
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for lru-dict
  Building wheel for python-slugify (pyproject.toml) ... done
  Created wheel for python-slugify: filename=python_slugify-4.0.1-py2.py3-none-any.whl size=6766 sha256=5bb21d6bf9b45870794572e34d8159847e18bf0348222a5e933236457639f796
  Stored in directory: /root/.cache/pip/wheels/10/57/4a/51c367b083bace5912a288695544fe0b718d19e222c555574a
Successfully built home-assistant-bluetooth python-slugify
Failed to build lru-dict
ERROR: Could not build wheels for lru-dict, which is required to install pyproject.toml-based projects

It seems that i need gcc, but…

➜  ~ pip3 install gcc
ERROR: Could not find a version that satisfies the requirement gcc (from versions: none)
ERROR: No matching distribution found for gcc

Any pointers on how to solve this.

Thanks in advance.