First of we ensure that the current installation is as upgraded as possible and that all the packages in the systems have the lastest version without showing any errors or broken packages.
apt update
apt upgrade -y
These commands will verify the package installation and show any issues with the current installation.