Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
add comment

1 Answer 1

up vote 2 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
add comment

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.