Sudo always asks for the password after some certain time.
Either it is the default password raspberry, or you have took your own one when you setup OctoPi (you use OctoPi?). I bit more information here would be very appreciated.
However, you need that password to log into CLI/SSH. So you should know it.
yes i know the password i have to use it to log in via ssh but after logging in and doing sudo apt update its asking for the password ive nevver had that before.
but its all sorted now , i googled a bit more and found this . Enable Passwordless Sudo on Raspberry Pi
thanks
martin