You’re trying to get packages for dist of 18.04.6, but that is not a dist name. The dist name for your version of Ubuntu is bionic. I don’t even know how you got here.
Following our multiple PHP docs doesn’t end up here.
There is (obviously) no dist named 18.04.6 in the ondrej PHP PPA repo.
here i would like to mention one thing, i am using Hostinger’s VPS & by default they have provided me with the php version 7.2.24 , so i cannot update it but i do have a choice to use multiphp, the question that i want to ask is
Will the process be same for using the multiphp, i mean using the same ppa repository to download the php version
The OS provides php version not Hostinger, how old is this server as you should have installed a later version of Ubuntu
so can you run
apt-get install php8.1-{cgi,cli,fpm,pdo,gd,mbstring,mysqlnd,opcache,curl,xml,zip}
or
apt-get install php7.4-{cgi,cli,fpm,pdo,gd,mbstring,mysqlnd,opcache,curl,xml,zip}