I removed everything from /var/lib/dpkg/info concerning cacti and try to reinstall it and get the result:
Selecting previously unselected package cacti.
(Reading database ... 73150 files and directories currently installed.)
Unpacking cacti (from .../cacti_0.8.7i-2ubuntu1_all.deb) ...
Setting up cacti (0.8.7i-2ubuntu1) ...
dbconfig-common: writing config to /etc/dbconfig-common/cacti.conf
Replacing config file /etc/cacti/debian.php with new version
dbconfig-common: flushing administrative password
Not replacing deleted config file /etc/cacti/apache.conf
Not replacing deleted config file /etc/cacti/lighttpd.conf
root@logserver:/var/lib/dpkg/info# apt-get -f install cacti-spine
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
0 upgraded, 1 newly installed, 0 to remove and 3 not upgraded.
Need to get 89.0 kB of archives.
After this operation, 270 kB of additional disk space will be used.
precise/universe cacti-spine amd64 0.8.7i-1ubuntu1 [89.0 kB]
Fetched 89.0 kB in 0s (238 kB/s)
Selecting previously unselected package cacti-spine.
(Reading database ... 73572 files and directories currently installed.)
Unpacking cacti-spine (from .../cacti-spine_0.8.7i-1ubuntu1_amd64.deb) ...
Processing triggers for man-db ...
Setting up cacti-spine (0.8.7i-1ubuntu1) ...
Not replacing deleted config file /etc/cacti/spine.conf
chown: cannot access `/etc/cacti/spine.conf': No such file or directory
dpkg: error processing cacti-spine (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)