sudo apt-get install linux-headers-$(uname -r)
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
Package linux-headers-6.5.7-060507-generic is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package ‘linux-headers-6.5.7-060507-generic’ has no installation candidate
$ sudo apt install --reinstall linux-headers-$(uname -r)
[sudo] password for sankar:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package linux-headers-6.5.7-060507-generic is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'linux-headers-6.5.7-060507-generic' has no installation candidate
$ dkms status
nvidia/535.129.03: added
$ sudo apt update
Get:1 file:/var/nvidia-driver-local-repo-ubuntu2204-525.105.17 InRelease [1,572 B]
Get:1 file:/var/nvidia-driver-local-repo-ubuntu2204-525.105.17 InRelease [1,572 B]
Err:1 file:/var/nvidia-driver-local-repo-ubuntu2204-525.105.17 InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4C5C5881321ACFBA
Hit:2 http://dl.google.com/linux/chrome/deb stable InRelease
Get:3 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Hit:4 http://in.archive.ubuntu.com/ubuntu jammy InRelease
Get:5 http://in.archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]
Hit:6 https://linux.teamviewer.com/deb stable InRelease
Hit:7 https://download.docker.com/linux/ubuntu focal InRelease
Get:8 http://security.ubuntu.com/ubuntu jammy-security/main amd64 DEP-11 Metadata [43.2 kB]
Get:9 http://in.archive.ubuntu.com/ubuntu jammy-backports InRelease [109 kB]
Get:10 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 DEP-11 Metadata [55.1 kB]
Get:11 http://in.archive.ubuntu.com/ubuntu jammy-updates/main amd64 DEP-11 Metadata [101 kB]
Get:12 http://in.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 DEP-11 Metadata [304 kB]
Get:13 http://in.archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 DEP-11 Metadata [940 B]
Get:14 http://in.archive.ubuntu.com/ubuntu jammy-backports/main amd64 DEP-11 Metadata [4,952 B]
Get:15 http://in.archive.ubuntu.com/ubuntu jammy-backports/universe amd64 DEP-11 Metadata [19.0 kB]
Reading package lists... Done
W: GPG error: file:/var/nvidia-driver-local-repo-ubuntu2204-525.105.17 InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4C5C5881321ACFBA
E: The repository 'file:/var/nvidia-driver-local-repo-ubuntu2204-525.105.17 InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Looks like you have manually installed a kernel but without the -generic headers, likely incompatible. Please remove the kernel packages for 6.5.7 and return to the stock 5.15/5.19 kernel of 22.04. If you really need the latest kernel, add the liqourix ppa and install the kernel from there.
However, my third monitor is not working. maybe the motherboard is not supporting it… But I am happy that I have updated the kernel in a good way using liqourix ppa