Updating headers in ubuntu
If your kernel is the default version that comes with the distribution, or you upgraded it using the default package manager (e.g., ) from base repositories, you can install matching kernel headers using the package manager as well.
On the other hand, if you downloaded the kernel source and compiled it manually, you can install matching kernel headers by using command.
The update process can take some time to complete and some steps may take longer than others.
It happens quite often that we encounter errors while trying to run an update in Ubuntu.
Header files and scripts for building modules for Linux kernel are included in linux-header-YOUR-Kernel-Version package.
Open a terminal and type the command as root user to install linux-headers* package for your running kernel. Done Building dependency tree Reading state information...
It is easy to see what is held back, so the question is why?
This should cover another problem when: the running kernel is obsolete, meaning it's not in the repository anymore neither its headers.
Wait for it to finish the installation or cancel it.First, check if matching kernel headers are already installed on your system.The default location of kernel header files is /usr/src/kernels/.There are several type of errors and in this post we will see how to solve some of the most common errors encountered during update of packages in Ubuntu. An unresolvable problem occurred while initializing the package information.Please report this bug against the ‘update-manager’ package and include the following error message: ‘E: Encountered a section with no Package: header, E: Problem with Merge List /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_natty_main_binary-amd64_Packages, E: The package lists or status file could not be parsed or opened.’Reading package lists… E: Encountered a section with no Package: header E: Problem with Merge List /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_natty_main_binary-amd64_Packages E: The package lists or status file could not be parsed or opened.