apt-get/aptitude 安装任何东西都报错
安装任何东西都会报
apt-get install ****
E: Couldn't configure pre-depend upstart-job for hostname, probably a dependency cycle.
aptitude install ****
dpkg: error processing tomcat6(--configure):
subprocess post-installation script returned error exit status 10
Setting up xinetd (1:2.3.14-7ubuntu4) ...
invoke-rc.d: unknown initscript, /etc/init.d/xinetd not found.
dpkg: error processing xinetd (--configure):
subprocess post-installation script returned error exit status 100
Errors were encountered while processing:
tomcat6
xinetd
------解决方案--------------------$ sudo apt-get -f install
------解决方案--------------------apt-get upgrade
apt-get dist-upgrade