Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

How to remove this ever occuring Warning, which appears every time I open a terminal?

 * Warning: removing empty lock file
 * Error: failed to remove empty lock file
 * Error: failed to get the lock: /usr/bin/keychain: 1492: cannot create /home/prashant/.keychain/http://prashant-laptop.promptcloud.com/-lockf: Directory nonexistent
share|improve this question

migrated from stackoverflow.com Jun 15 '11 at 7:25

This question came from our site for professional and enthusiast programmers.

1 Answer 1

Sounds like you're running keychain on a SSH key in one of your login rc files (like .bashrc, .bash_profile, .profile). It's trying to import a key named "http://prashant-laptop.promptcloud.com/" and create a lock file with that name, but slashes in the name make it address a directory that doesn't exist.

I suggest changing the label, removing the keychain line entirely, or adding --nolock to your keychain login line (which is probably something like /usr/bin/keychain "$HOME/.ssh/id_dsa)

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.