nerdexam
CompTIA

XK0-001 · Question #40

The administrator uses the rpm command to install a new software package but he gets the following error message: CompTIA XK0-001 Exam cannot get exclusive lock on database error:cannot open…

The correct answer is D. Check whether a second instance of rpm is already running. See the full explanation below for the reasoning.

Question

The administrator uses the rpm command to install a new software package but he gets the following error message:

CompTIA XK0-001 Exam cannot get exclusive lock on database error:cannot open /var/lib/rpm/packages.rpm What is the best way to solve the problem?

Options

  • ARun "rpm --initdb"
  • BRun "rpm --rebuilddb"
  • CCopy the package to the directory /var/lib/rpm/
  • DCheck whether a second instance of rpm is already running

How the community answered

(29 responses)
  • A
    3% (1)
  • B
    7% (2)
  • C
    17% (5)
  • D
    72% (21)

Community Discussion

No community discussion yet for this question.

Full XK0-001 Practice