Check for unresolved symbols for kernel modules after update

Abstract: Resolve kernel module unresolved symbols after updates by verifying kernel version consistency, installing matching headers, and regenerating the modules.dep file.

Created: 2026-08-30 by

Unresolved symbols in kernel modules after an update typically indicate a mismatch between the running kernel version and the installed module packages, or missing dependency files. The primary diagnostic command is modprobe, which reports specific symbol errors when it fails to load a module. Resolving this requires verifying that the modules.dep file is up-to-date and that the kernel headers match the currently running kernel version.

Identifying Unresolved Symbols

When you attempt to load a kernel module using modprobe, the system checks for all required symbols defined in the kernel image. If a symbol is missing, the command will fail with an error message similar to "Unknown symbol in module" or "Symbol not found." This is the most direct way to identify which specific symbols are unresolved. You can also use lsmod to list currently loaded modules. While this does not directly show unresolved symbols for unloaded modules, it helps confirm whether the kernel itself is functioning correctly. If a module fails to load due to unresolved symbols, it will simply not appear in the output of lsmod. To get detailed information about why a module failed to load, check the system logs. The dmesg command displays kernel ring buffer messages. Look for lines containing "module" and "symbol" or "error." For example:
dmesg | grep -i "unresolved symbol"
This will filter the log output to show only relevant entries. The output will include the name of the module, the missing symbol, and often the source file where the symbol is expected. This information is crucial for determining whether the issue lies with the module itself or the kernel configuration.

Verifying Kernel and Module Consistency

The most common cause of unresolved symbols is a version mismatch. After a kernel update, the running kernel may have changed, but the module packages (such as those in /lib/modules/$(uname -r)/) may still belong to the old kernel version. You must ensure that the directory structure under /lib/modules/ matches the output of uname -r. If you recently updated your kernel, verify that the new kernel headers are installed. Many proprietary or out-of-tree modules require header files to compile against the current kernel. On Debian-based systems, you can install these with:
apt-get install linux-headers-$(uname -r)
On Yocto Project builds, the process is more integrated into the build system. Ensure that the kernel-devicetree and kernel-image packages are correctly generated and deployed. Mismatches here often result in subtle symbol issues because the module was compiled against a different internal API than what is present in the running kernel. If you suspect a package management issue, such as broken dependencies, you might encounter errors like those described in Fixing E: Sub-process /usr/bin/dpkg returned an error code (1) on Kali Linux. While this specific guide addresses dpkg errors, the underlying principle of ensuring package integrity applies broadly to any Linux distribution. A corrupted package installation can lead to missing symbol files or incomplete module directories.

Updating Module Dependencies

Even if the correct kernel version is installed, the dependency map might be stale. The modules.dep file maps each module to its dependencies. If this file is outdated, modprobe may not find the necessary symbols even if they exist in other modules. Regenerate the dependency map by running depmod. This command scans the /lib/modules/ directory and updates modules.dep, modules.alias, and modules.symbols.
depmod -a
The -a flag ensures that all available modules are processed. Run this command as root. After executing depmod, try loading the problematic module again. If the symbol is now resolved, the issue was simply a stale dependency database. In some cases, particularly with custom or manually compiled modules, you may need to specify the path explicitly:
depmod -b /path/to/modules/dir -a
This is useful if your modules are installed in a non-standard location. Always verify that the path contains the correct kernel version subdirectory.

Debugging Custom Modules

For modules built from source, unresolved symbols often stem from incorrect build configurations. Ensure that the module was compiled against the same kernel source tree that produced the running kernel. Using make modules_prepare in the kernel source directory prepares the environment for external module builds. Check the Makefile of your module. It should reference the correct kernel source directory via the KDIR variable. If you are using the Yocto Project, remember that cross-compilation environments can sometimes lead to path mismatches if the sysroot is not correctly configured. See How to Rebuild and Install RISC-V Kernel Cross Compile for insights into managing complex build environments, although the specific architecture differs, the principles of ensuring build consistency remain valid. Avoid blindly removing files like modules.builtin* without understanding their role. These files contain lists of modules that are built into the kernel image. Removing them incorrectly can break the dependency resolution process entirely. Instead, focus on regenerating the dependency map and verifying the kernel version match.

Frequently Asked Questions

Why does modprobe fail with "Unknown symbol"?

This error occurs when the module references a function or variable that is not exported by the running kernel. It usually indicates a version mismatch between the module and the kernel, or that the kernel was compiled without the necessary configuration option.

How do I check if my kernel headers match my running kernel?

Compare the output of uname -r with the directory names in /lib/modules/. They must match exactly. Additionally, verify that the linux-headers package is installed for that specific version.

Can unresolved symbols cause system instability?

Generally, no. Unresolved symbols prevent the module from loading, which means the functionality provided by that module is unavailable. However, if critical hardware drivers fail to load, it may affect device connectivity or performance.

What is the difference between modules.dep and modules.symbols?

modules.dep lists the dependencies between modules, indicating which modules must be loaded before others. modules.symbols maps symbol names to the modules that provide them, allowing modprobe to resolve symbol requests across different modules.

Should I reinstall the kernel after updating?

Not necessarily. If the kernel update was successful and the modules.dep file has been regenerated with depmod -a, reinstallation is rarely needed. Only reinstall if the kernel image itself is corrupted or if boot failures occur.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More