Faustin, What you do in https://salsa.debian.org/faust/galera-4/-/commit/d0119633bd42ebcedb300fb7423035de4f91f1bc with aptly and tmux and printf 'X\n' seems overly complex. To make a local repo for testing you can simply run:
apt install apt-utils cd /path/to/deb/files apt-ftparchive release . > Release echo 'deb [trusted=yes] file:/path/to/deb/files ./' >> /etc/apt/sources.list apt update apt dist-upgrade See https://manpages.debian.org/unstable/apt-utils/apt-ftparchive.1.en.html