After a sudden power loss, a Debian 12 server boots, but many drivers fail to load and dmesg repeatedly reports "Invalid module format" for several *.ko files. The administrator wants to confirm that the running kernel package's files on disk have been damaged by comparing every file it installed (the kernel image, initramfs and all modules) against the checksums recorded in the package database-without altering any files. Which single command accomplishes this on the running system?
The dpkg utility provides the -V/--verify action, which compares each file that belongs to a named package with the metadata (MD5 digest, permissions, etc.) stored when the package was first unpacked. Running dpkg -V linux-image-\((uname -r) therefore checks the integrity of the current kernel image and its modules and lists any mismatches, confirming or ruling out on-disk corruption. debsums can compare only files that have checksums listed and is not installed by default; dpkg --audit merely looks for missing metadata, not changed files; rpm -V is the equivalent tool on RPM-based distributions and is not present on Debian systems. Thus dpkg -V linux-image-\)(uname -r) is the appropriate diagnostic step.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is `dpkg` and how does it work?
Open an interactive chat with Bash
What is an MD5 digest, and why is it used in package verification?
Open an interactive chat with Bash
What is the role of the `linux-image` package and why use `uname -r`?
Open an interactive chat with Bash
CompTIA Linux+ XK0-006 (V8)
Troubleshooting
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .