One of my friend came up with a problem, whenever he tries to install something on his Ubuntu machine it shows an error like this.
Setting up cpad-kernel-source (0.10-5) ...
Warning: kernel headers don't match running Linux version.
Building cpad module for Linux 18.104.22.168 (this may take a few minutes)...dpkg: error processing cpad-kernel-source (--configure):
subprocess post-installation script returned error exit status 2
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)
The problem here is cpad-kernel-source is an old package, it is no more supported in the latest kernels.cpad was used to enable notebook touch pads.
Simply remove the package cpad-kernel-source using apt-get remove cpad-kernel-source
NB: You need to type in the commands in terminal.