Unable to obtain lock file:///etc/ held by root

Asked by martin suchanek

Hi,

When I tried to run:
etckeeper init
I have got error:

Unable to obtain lock file:///etc/ held by root <email address hidden> on PCEUBU1 (process #31748), acquired 169 hours, 41 minutes ago.
Will continue to try until 22:28:01, unless you press Ctrl-C.
See "bzr help break-lock" for more.
bzr: ERROR: Could not acquire lock "(local)": file:///etc/
etckeeper warning: bzr add failed

this error appeared even if I am doing apt-get upgrade.

apt-cache policy etckeeper
etckeeper:
  Installed: 0.61ubuntu2
  Candidate: 0.61ubuntu2
  Version table:
 *** 0.61ubuntu2 0
        500 http://archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
        100 /var/lib/dpkg/status

lsb_release -rd
Description: Ubuntu 12.04 LTS
Release: 12.04

Regards,
Martin.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu etckeeper Edit question
Assignee:
No assignee Edit question
Solved by:
martin suchanek
Solved:
Last query:
Last reply:
Revision history for this message
Jelmer Vernooij (jelmer) said :
#1

Something killed bzr earlier, and there is still an open lock for it.

You might want to run "sudo bzr break-lock /etc".

Revision history for this message
martin suchanek (martin-suc) said :
#2

thank you - problem solved.