I can t update my driver

I mean how i will install the proper driver and lock it

How lock kernel in:

I don t know how to open the advanced options i press esc and i dont find advanced option and when i press tab nothing happens

I opened it by pressing esc+tab

And which one do i use kernal 5.15 or 5.15(recovery mode)

i chose kernal 5.15 and when i saw the about it went from NVD7 to my gpu name GeForce 820M/PCIe/SSE2 but in additional driver it says continue using a manually installed driver so is it using geforce 820m?

That's a first...

We had not yet progressed to a point you could install the earlier kernel.

Actually...
At this point, I think we all need a refresh on the exact nature of the trouble.
Your Graphics card is old enough that it lacks support on modern drivers.
This leaves you with needing to use the 340 driver

sudo apt install nvidia-driver-340

Or the 390 driver

sudo apt install nvidia-driver-390

Have you installed either of them?
Have you tested either of them?

i installed sudo apt install nvidia-driver-390

how to test it?

That would be the manually installed driver you mentioned.

Testing it is just using the system and looking for graphical glitches... see if everything is working.

i can now open nvidia x server settings

there is a problem

how to fix Waiting for cache lock: Could not get lock /var/lib/dpkg/lock-frontend. It is heWaiting for cache lock: Could not get lock /var/lib/dpkg/lock-frontend. It is he

i was trying to download wine stable branch

nevermind i fixed it

there is a big problem is that my laptop freezes

There is a problem when i use my laptop from 10 to 20min my laptop freezes and i can t do anything

Is it because of the nvidia 390 package?

I would aim for it being likely due to your graphics drivers but you should check for a few other things, first:

  • overheating. Monitor GPU temps
  • Disable hardware acceleration
  • Check modeset

You can set to nomodeset if you have Intel Integrated Graphics and Nvidia Dedicated graphics.
Which I am quite sure that you do.

sudo nano /etc/default/grub

Using your arrow keys... Change the line GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" to
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset"

Tap ctrl+x to exit the editor, then the y key to say yes to save. Then the enter key to save as current configuration.
The terminal will revert to normal appearance.
Now you must run

sudo update-grub

for the changes to take effect.
Reboot and test usage...

When i did that quiet splash nomodeset" and reboot my pc it is stuck on the booting system

Can you please reboot into Recovery Mode
From recovery menu, drop to prompt
In the prompt run

sudo nano /etc/default/grub

Remove the nomodeset parameter to restore it to GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

Ctrl+x, y key, then enter

sudo update-grub

Sigh...
back to the other suggestions, then...

Do i choose root?

Yes - drop to root prompt