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...
IT & Cybersecurity Package Join Premium for Full Access