Newsgroup: it.comp.os.linux.software
Titolo: Postfix: postfixrm: cannot remove `lib/libnss_files.so.2': Is a directory

Dopo un blackout che ha spento malamente il PC in questione postfix non 
parte più. Il messaggio d'errore è il seguente:
/etc/init.d/postfix start
Starting Postfix Mail Transport Agent: postfixrm: cannot remove 
`lib/libnss_files.so.2': Is a directory
rm: cannot remove `lib/
libnss_nis-2.3.2.so
': Is a directory
rm: cannot remove `lib/libnss_nisplus.so.2': Is a directory
Il sistema è debian Sarge, postfix versione 2.3.7.
Al primo avvio dopo il blackout è stato necessario effettuare una 
scansione della partizione che ha trovato diversi errori per cui presumo 
si sia corrotto qualche  file ma non so quale. Ho già sovrascritto dal 
.deb i file menzionati negli errori di cui sopra senza che sia cambiato 
nulla.
Riporto ls -las della directory /lib:
total 4692
    8 drwxr-xr-x   8 root root    8192 2007-06-25 09:25 .
    4 drwxr-xr-x  22 root root    4096 2007-06-23 20:52 ..
    0 lrwxrwxrwx   1 root root      16 2005-04-04 14:47 cpp -> 
/usr/bin/cpp-3.3
    4 drwxr-xr-x   2 root root    4096 2005-02-11 13:39 init
    8 drwxr-xr-x   2 root root    8192 2005-05-16 14:22 iptables
   96 -rwxr-xr-x   1 root root   90248 2007-03-05 23:26 
ld-2.3.2.so
    0 lrwxrwxrwx   1 root root      11 2007-06-25 09:25 ld-linux.so.2 -> 
ld-2.3.2.so
    0 lrwxrwxrwx   1 root root      15 2005-02-11 13:19 libacl.so.1 -> 
libacl.so.1.1.0
   24 -rw-r--r--   1 root root   22336 2004-02-03 04:49 libacl.so.1.1.0
   12 -rw-r--r--   1 root root    9532 2007-03-05 23:26 
libanl-2.3.2.so
    0 lrwxrwxrwx   1 root root      15 2007-06-25 09:25 libanl.so.1 -> 
libanl-2.3.2.so
    0 lrwxrwxrwx   1 root root      16 2005-02-11 13:19 libattr.so.1 -> 
libattr.so.1.1.0
   12 -rw-r--r--   1 root root   10824 2004-04-28 01:40 libattr.so.1.1.0
    0 lrwxrwxrwx   1 root root      15 2005-05-31 09:35 libblkid.so.1 -> 
libblkid.so.1.0
   28 -rw-r--r--   1 root root   27548 2005-05-27 02:22 libblkid.so.1.0
    4 -rw-r--r--   1 root root    3552 2007-03-05 23:26 
libBrokenLocale-2.3.2.so
    0 lrwxrwxrwx   1 root root      24 2007-06-25 09:25 
libBrokenLocale.so.1 -> 
libBrokenLocale-2.3.2.so
1220 -rwxr-xr-x   1 root root 1244752 2007-03-05 23:26 
libc-2.3.2.so
    0 lrwxrwxrwx   1 root root      14 2005-02-11 13:20 libcap.so.1 -> 
libcap.so.1.10
   12 -rw-r--r--   1 root root   11024 2004-04-14 00:10 libcap.so.1.10
    0 lrwxrwxrwx   1 root root      17 2005-02-21 11:27 libcfont.so.0 -> 
libcfont.so.0.0.0
   12 -rw-r--r--   1 root root   12272 2005-02-05 11:23 libcfont.so.0.0.0
    0 lrwxrwxrwx   1 root root      17 2005-05-31 09:35 libcom_err.so.2 
-> libcom_err.so.2.1
    8 -rw-r--r--   1 root root    6116 2005-05-27 02:22 libcom_err.so.2.1
    0 lrwxrwxrwx   1 root root      19 2005-02-21 11:27 libconsole.so.0 
-> libconsole.so.0.0.0
   76 -rw-r--r--   1 root root   71836 2005-02-05 11:23 libconsole.so.0.0.0
   20 -rw-r--r--   1 root root   18780 2007-03-05 23:26 
libcrypt-2.3.2.so
    0 lrwxrwxrwx   1 root root      17 2007-06-25 09:25 libcrypt.so.1 -> 
libcrypt-2.3.2.so
    0 lrwxrwxrwx   1 root root      13 2007-06-25 09:25 libc.so.6 -> 
libc-2.3.2.so
    0 lrwxrwxrwx   1 root root      19 2005-02-21 11:27 libctutils.so.0 
-> libctutils.so.0.0.0
   20 -rw-r--r--   1 root root   18288 2005-02-05 11:23 libctutils.so.0.0.0
   56 -rw-r--r--   1 root root   49424 2002-10-18 23:46 
libdb1-2.2.5.so
    0 lrwxrwxrwx   1 root root      15 2005-02-11 13:20 libdb1.so.2 -> 
libdb1-2.2.5.so
    0 lrwxrwxrwx   1 root root      15 2005-02-11 13:38 libdb2.so.2 -> 
libdb2.so.2.7.7
  292 -rw-r--r--   1 root root  291624 2004-06-10 17:27 libdb2.so.2.7.7
    0 lrwxrwxrwx   1 root root      15 2005-02-11 13:20 libdb.so.2 -> 
libdb1-2.2.5.so
  260 -rw-r--r--   1 root root  260828 2004-06-10 17:27 libdb.so.3
   28 -rw-r--r--   1 root root   27108 2004-07-15 12:53 libdevmapper.so.1.00
   32 -rw-r--r--   1 root root   31044 2006-10-13 23:42 libdevmapper.so.1.01
   12 -rw-r--r--   1 root root    9872 2007-03-05 23:26 
libdl-2.3.2.so
    0 lrwxrwxrwx   1 root root      14 2007-06-25 09:25 libdl.so.2 -> 
libdl-2.3.2.so
    0 lrwxrwxrwx   1 root root      13 2005-05-31 09:35 libe2p.so.2 -> 
libe2p.so.2.3
   20 -rw-r--r--   1 root root   19184 2005-05-27 02:22 libe2p.so.2.3
    0 lrwxrwxrwx   1 root root      16 2005-05-31 09:35 libext2fs.so.2 
-> libext2fs.so.2.4
  104 -rw-r--r--   1 root root  101272 2005-05-27 02:22 libext2fs.so.2.4
   32 -rw-r--r--   1 root root   32292 2006-08-05 14:57 libgcc_s.so.1
    0 lrwxrwxrwx   1 root root      17 2005-02-11 13:38 libhistory.so.4 
-> libhistory.so.4.3
   24 -rw-r--r--   1 root root   23872 2004-06-13 21:02 libhistory.so.4.3
    0 lrwxrwxrwx   1 root root      17 2005-02-11 13:40 libhistory.so.5 
-> libhistory.so.5.0
   28 -rw-r--r--   1 root root   26176 2005-01-23 09:59 libhistory.so.5.0
  136 -rw-r--r--   1 root root  134496 2007-03-05 23:26 
libm-2.3.2.so
   12 -rw-r--r--   1 root root   11264 2007-03-05 23:26 libmemusage.so
    0 lrwxrwxrwx   1 root root      13 2007-06-25 09:25 libm.so.6 -> 
libm-2.3.2.so
    0 lrwxrwxrwx   1 root root      17 2005-02-11 13:20 libncurses.so.5 
-> libncurses.so.5.4
  252 -rw-r--r--   1 root root  252592 2004-05-27 17:44 libncurses.so.5.4
   76 -rw-r--r--   1 root root   73528 2007-03-05 23:26 
libnsl-2.3.2.so
    0 lrwxrwxrwx   1 root root      15 2007-06-25 09:25 libnsl.so.1 -> 
libnsl-2.3.2.so
   28 -rw-r--r--   1 root root   27304 2007-03-05 23:26 
libnss_compat-2.3.2.so
    0 lrwxrwxrwx   1 root root      22 2007-06-25 09:25 
libnss_compat.so.2 -> 
libnss_compat-2.3.2.so
   20 -rw-r--r--   1 root root   17860 2005-05-23 16:22 
libnss_db-2.2.so
    0 lrwxrwxrwx   1 root root      16 2005-06-06 11:04 libnss_db.so.2 
-> 
libnss_db-2.2.so
   16 -rw-r--r--   1 root root   13976 2007-03-05 23:26 
libnss_dns-2.3.2.so
    0 lrwxrwxrwx   1 root root      19 2007-06-25 09:25 libnss_dns.so.2 
-> 
libnss_dns-2.3.2.so
   36 -rw-r--r--   1 root root   34520 2007-06-25 10:02 
libnss_files-2.3.2.so
    0 lrwxrwxrwx   1 root root      21 2007-06-25 09:25 
libnss_files.so.2 -> 
libnss_files-2.3.2.so
   16 -rw-r--r--   1 root root   14268 2007-03-05 23:26 
libnss_hesiod-2.3.2.so
    0 lrwxrwxrwx   1 root root      22 2007-06-25 09:25 
libnss_hesiod.so.2 -> 
libnss_hesiod-2.3.2.so
   32 -rw-r--r--   1 root root   32480 2007-06-25 09:56 
libnss_nis-2.3.2.so
   40 -rw-r--r--   1 root root   39864 2007-06-25 09:56 
libnss_nisplus-2.3.2.so
    0 lrwxrwxrwx   1 root root      23 2007-06-25 09:25 
libnss_nisplus.so.2 -> 
libnss_nisplus-2.3.2.so
    0 lrwxrwxrwx   1 root root      19 2007-06-25 09:25 libnss_nis.so.2 
-> 
libnss_nis-2.3.2.so
    0 lrwxrwxrwx   1 root root      15 2005-02-11 13:20 libpamc.so.0 -> 
libpamc.so.0.76
   12 -rw-r--r--   1 root root    9980 2004-06-28 20:39 libpamc.so.0.76
    0 lrwxrwxrwx   1 root root      19 2005-02-11 13:20 libpam_misc.so.0 
-> libpam_misc.so.0.76
   12 -rw-r--r--   1 root root    8800 2004-06-28 20:39 libpam_misc.so.0.76
    0 lrwxrwxrwx   1 root root      14 2005-02-11 13:20 libpam.so.0 -> 
libpam.so.0.76
   32 -rw-r--r--   1 root root   30360 2004-06-28 20:39 libpam.so.0.76
    8 -rw-r--r--   1 root root    4396 2007-03-05 23:26 libpcprofile.so
    0 lrwxrwxrwx   1 root root      16 2005-02-11 13:20 libpopt.so.0 -> 
libpopt.so.0.0.0
   28 -rw-r--r--   1 root root   26624 2004-08-29 17:38 libpopt.so.0.0.0
   48 -rw-r--r--   1 root root   47624 2004-04-13 07:26 libproc.so.3.2.1
   84 -rw-r--r--   1 root root   81127 2007-03-05 23:27 
libpthread-0.10.so
    0 lrwxrwxrwx   1 root root      18 2007-06-25 09:25 libpthread.so.0 
-> 
libpthread-0.10.so
    0 lrwxrwxrwx   1 root root      18 2005-02-11 13:38 libreadline.so.4 
-> libreadline.so.4.3
  176 -rw-r--r--   1 root root  172592 2004-06-13 21:02 libreadline.so.4.3
    0 lrwxrwxrwx   1 root root      18 2005-02-11 13:40 libreadline.so.5 
-> libreadline.so.5.0
  180 -rw-r--r--   1 root root  176976 2005-01-23 09:59 libreadline.so.5.0
   68 -rw-r--r--   1 root root   64924 2007-03-05 23:26 
libresolv-2.3.2.so
    0 lrwxrwxrwx   1 root root      18 2007-06-25 09:25 libresolv.so.2 
-> 
libresolv-2.3.2.so
   28 -rw-r--r--   1 root root   27044 2007-03-05 23:26 
librt-2.3.2.so
    0 lrwxrwxrwx   1 root root      14 2007-06-25 09:25 librt.so.1 -> 
librt-2.3.2.so
   12 -rw-r--r--   1 root root   11984 2007-03-05 23:26 libSegFault.so
    0 lrwxrwxrwx   1 root root      17 2005-02-11 13:40 libslang.so.1 -> 
libslang.so.1.4.9
  372 -rw-r--r--   1 root root  374920 2004-09-21 21:57 libslang.so.1.4.9
    0 lrwxrwxrwx   1 root root      22 2005-02-11 13:20 
libslang.so.1-UTF8 -> libslang.so.1-UTF8.4.9
  372 -rw-r--r--   1 root root  374952 2004-09-21 21:57 
libslang.so.1-UTF8.4.9
    0 lrwxrwxrwx   1 root root      12 2005-05-31 09:35 libss.so.2 -> 
libss.so.2.0
   20 -rw-r--r--   1 root root   18416 2005-05-27 02:22 libss.so.2.0
   20 -rw-r--r--   1 root root   18084 2007-03-05 23:26 
libthread_db-1.0.so
    0 lrwxrwxrwx   1 root root      19 2007-06-25 09:25 
libthread_db.so.1 -> 
libthread_db-1.0.so
    0 lrwxrwxrwx   1 root root      19 2005-06-02 11:52 libusb-0.1.so.4 
-> libusb-0.1.so.4.4.2
   32 -rw-r--r--   1 root root   28788 2005-05-29 17:07 libusb-0.1.so.4.4.2
    8 -rw-r--r--   1 root root    7844 2007-03-05 23:26 
libutil-2.3.2.so
    0 lrwxrwxrwx   1 root root      16 2007-06-25 09:25 libutil.so.1 -> 
libutil-2.3.2.so
    0 lrwxrwxrwx   1 root root      14 2005-05-31 09:36 libuuid.so.1 -> 
libuuid.so.1.2
   12 -rw-r--r--   1 root root    9232 2005-05-27 02:22 libuuid.so.1.2
    0 lrwxrwxrwx   1 root root      16 2005-03-29 15:04 libwrap.so.0 -> 
libwrap.so.0.7.6
   32 -rw-r--r--   1 root root   28880 2005-03-12 01:39 libwrap.so.0.7.6
    4 drwxr-xr-x   2 root root    4096 2006-10-06 10:13 lsb
    4 drwxr-xr-x   5 root root    4096 2006-08-17 13:58 modules
    4 drwxr-xr-x   2 root root    4096 2005-02-11 13:20 security
    4 drwxr-xr-x   2 root root    4096 2007-06-25 09:25 tls
Mi serve qualche dritta per capire quale sia il file/directory corrotta 
in modo che ci possa mettere rimedio senza reinstallare tutto.

 in modo che ci possa mettere rimedio senza reinstallare tutto.
Un "postfix check" che dice?
-- 
Skull & Bones (ER6n Silver)
Neo:  I know Sendmail!
Morpheus:  Show me.