Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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

For all those who installed aptitude to easily search through apt on ubuntu 11+, upon upgrading to 11.10 I am now receiving this error.

[ ERR] Reading state information
E: Could not open lock file /var/lock/aptitude - open (2: No such file or directory)
share|improve this question
up vote 4 down vote accepted

To fix this:

sudo mkdir /run/lock

Aptitude should now run without issue.

share|improve this answer
    
/var/lock is just a symlink to /run/lock edit the above solution to fit your needs but this should work for 99% of the users. – AndrewPK Apr 10 '12 at 15:55
    
I did answer my own question - because I knew the answer and wanted it to be available for anyone in the community who might not. – AndrewPK May 14 '13 at 14:00

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.