1

While trying to install denyhosts, I got this error:

IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/sitecustomize.py'

I verified that /usr/lib/python2.7/sitecustomize.py does exist. As you can also see in below screenshot however that appears in red color (don't know if it is signaling something).

enter image description here

Elder Geek
  • 36,752

2 Answers2

1

A red name in a black background means that a file is a link to a non existent file. Please, see this question for ls output color meanings.

That means that you probably have moved the linked file or deleted it.

Javier Rivera
  • 35,434
0

I had the same error message. What worked was

sudo dpkg -a --configure

as described in https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=709157.

serv-inc
  • 3,159
  • 1
  • 26
  • 32