Hostagent Installation Failed, 'Unable to lock directory /var/cache/apt/archives'

Problem

  • Hostagent installation failed with the below error.
Copy
  • pf9ctl logs show below messages
Copy

Environment

  • Platform9 Managed Kubernetes - v4.0 and Higher

Cause

Not able to get lock on /var/cache/apt/archive directory.

Resolution

Make sure there are no apt processes running on the node that is being onboarded and then retry the pf9ctl prep node command.

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard