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,023
  • 25
  • 98
  • 183
  • 1
    Have you looked at file/directory permissions throughout the "chain" to get to the file? Remember dirs need to have 'x' permission eventhough they are not executable entities, it permits the search to happen. You could help everybody if you included an ls -ld of the file and each of its directories above it as well as the output of the id -a for the specific user. – mdpc Feb 27 '14 at 07:20

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,153
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,059