I transfered /etc/* files from one Linux server to another and now I have a strange error. Both are Debian Squeeze.
When I run a command, e.g. ssh, I get an error:
bash: /usr/bin/ssh: No such file or directory
It looks like the binary exists:
-rwxr-xr-x 1 root root 358756 Sep 21 14:30 /usr/bin/ssh
Bash also autocompletes the command when I type ss and press Tab. I tried reinstalling, purging etc but it didn't solve anything. There is probably something cached under /etc/ but I don't know what excatly.

ldd /usr/bin/ssh? It might depend on a library (.sofile) that doesn't exist. – mrb Sep 28 '12 at 14:32ldddoesn't... something's screwed up. Tryreadelf -l /usr/bin/sshand look for a "Requesting interpreter" line (or error). – Mat Sep 28 '12 at 14:48lddactually running the program to you, too. Its important that people know this, less they trylddwhen analyzing an untrusted binary. – derobert Sep 28 '12 at 14:53_start/mainas normal when called on a normal dynamically-linked executable, but an executable can be crafted to run arbitrary code on being examined with some versions of ldd. – Random832 Sep 28 '12 at 16:12/etc/ld.so.cacheand checking the contents of/etc/ld.so.confand/etc/ld.so.conf.d. Runldconfigto rebuild the cache afterwards. – Jim Paris Sep 28 '12 at 17:36