i can see that you have only the php7.4 modules. The script tries to check the php modules like “libapache2-mod-php” which is not exist. Am not sure if u really need the php modules. you can try to install the modules manually but please create snapshot before you do this move.
apt-get update
apt-get install php php-bcmath php-cli php-common php-curl php-fpm php-gd php-json php-ldap php-mbstring php-mysql
and try to update again