Regarding Password

When i go for upgrade php8.1 that time show "[sudo] password for librenms: " . It wanted password but i don’t what is original password. What is the default password for that.

Don’t do the sudo command as librenms. Juste do CTRL+D to get back as root, run your apt command, then go back to librenms with su - librenms