5

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)

1 Answer 1

5

To fix this:

sudo mkdir /run/lock

Aptitude should now run without issue.

2
  • /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, 2012 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, 2013 at 14:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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