Installing dependencies fails with errors

trying to install homeassistant core on a raspberry pi. When i get to trying to install the dependancies I get errors.

pi@raspberrypi:~ $ sudo apt-get install -y python3 python3-dev python3-venv python3-pip libffi-dev libssl-dev libjpeg-dev zlib1g-dev autoconf build-essential libopenjp2-7 libtiff5
Reading package lists… Done
Building dependency tree
Reading state information… Done
Package libssl-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package libffi-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package autoconf is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package ‘libffi-dev’ has no installation candidate
E: Package ‘libssl-dev’ has no installation candidate
E: Unable to locate package libjpeg-dev
E: Package ‘autoconf’ has no installation candidate

I have tried this three times getting the same errors every time. am I doing something wrong? I am a noob with the Pi, so please go gently.

Then I highly recommend installing Home Assistant OS and not Home Assistant Core (for advanced users).

I want to run a pihole as well which is why I decided to run it as core.

Then run Home Assistant Container.
Or if AdGuard is a good replacement for piHole, you can run Home Assistant OS and run AdGuard as an add-on.