Unatteded install on Ubuntu with downloaded packages

I’m trying to make an unattended installation by downloading the Ubuntu packages from:

https://repo.percona.com/pxc-80/apt/pool/main/p/percona-xtradb-cluster/

I install all packages in order but with “percona-xtradb-cluster-server…” I still get a root-password question that doesn’t get answered.

This doesn’t seem to work:

export DEBIAN_FRONTEND=noninteractive
apt-get update && apt-get install debconf-utils
echo "percona-xtradb-cluster-server-8.0 percona-xtradb-cluster-server-8.0/root-pass password root" | debconf-set-selections
echo "percona-xtradb-cluster-server-8.0 percona-xtradb-cluster-server-8.0/re-root-pass password root" | debconf-set-selections
dpkg -i percona-xtradb-cluster-server_8.0.35-27-1.jammy_amd64.deb

Has anyone an idea how to accomplish an install with an empty or preset password ? Empty would be most nice!

I tried the following command and everything worked well
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y percona-xtradb-cluster-server

OK but that is APT, I get he feeling that dpkg -i does it in a different way.

You can install downloaded package with apt instead of dpkg as apt will also handle all dependencies

I don’t want to have apt handle anything; that’s why.