Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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/ Directory nonexistent
share|improve this question

migrated from Jun 15 '11 at 7:25

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

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 "" 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

You must log in to answer this question.