Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/27.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux apt获取升级失败_Linux_Upgrade_Apt Get_Munin - Fatal编程技术网

Linux apt获取升级失败

Linux apt获取升级失败,linux,upgrade,apt-get,munin,Linux,Upgrade,Apt Get,Munin,我试图运行“apt get升级”,但我得到下面的日志 这似乎是由haveged引起的(我前一段时间试图通过源代码安装它,但不是使用apt,它的系统上有痕迹,我将尝试使用原始源文件卸载此) 我也有munin节点(非常确定这是通过apt),我停止了服务,所以我不认为这是导致问题的原因 Setting up exim4-base (4.72-6+squeeze3) ... insserv: warning: script 'K02ossec' missing LSB tags and override

我试图运行“apt get升级”,但我得到下面的日志

这似乎是由haveged引起的(我前一段时间试图通过源代码安装它,但不是使用apt,它的系统上有痕迹,我将尝试使用原始源文件卸载此)

我也有munin节点(非常确定这是通过apt),我停止了服务,所以我不认为这是导致问题的原因

Setting up exim4-base (4.72-6+squeeze3) ...
insserv: warning: script 'K02ossec' missing LSB tags and overrides
insserv: warning: script 'ossec' missing LSB tags and overrides
insserv: warning: script 'haveged' missing LSB tags and overrides
insserv: There is a loop between service munin-node and haveged if stopped
insserv:  loop involving service haveged at depth 2
insserv:  loop involving service munin-node at depth 1
insserv: Stopping haveged depends on munin-node and therefore on system facility `$all' which can not be true!
insserv: exiting now without changing boot order!
update-rc.d: error: insserv rejected the script header
dpkg: error processing exim4-base (--configure):
 subprocess installed post-installation script returned error exit status 1
configured to not write apport reports
                                      dpkg: dependency problems prevent configuration of exim4-daemon-light:
 exim4-daemon-light depends on exim4-base (>= 4.72); however:
  Package exim4-base is not configured yet.
dpkg: error processing exim4-daemon-light (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of exim4:
 exim4 depends on exim4-base (>= 4.72); however:
  Package exim4-base is not configured yet.
 exim4 depends on exim4-daemon-light | exim4-daemon-heavy | exim4-daemon-custom; however:
  Package exim4-daemon-light is not configured yet.
  Package exim4-daemon-heavy is not installed.
  Package exim4-daemon-custom is not installed.
dpkg: error processing exim4 (--configure):
 dependency problems - leaving unconfigured
Setting up apache2.2-common (2.2.16-6+squeeze10) ...
configured to not write apport reports
                                      configured to not write apport reports
                                                                            insserv: warning: script 'K02ossec' missing LSB tags and overrides
insserv: warning: script 'ossec' missing LSB tags and overrides
insserv: warning: script 'haveged' missing LSB tags and overrides
insserv: There is a loop between service munin-node and haveged if stopped
insserv:  loop involving service haveged at depth 2
insserv:  loop involving service munin-node at depth 1
insserv: Stopping haveged depends on munin-node and therefore on system facility `$all' which can not be true!
insserv: exiting now without changing boot order!
update-rc.d: error: insserv rejected the script header
dpkg: error processing apache2.2-common (--configure):
 subprocess installed post-installation script returned error exit status 1
configured to not write apport reports
                                      dpkg: dependency problems prevent configuration of apache2-mpm-prefork:
 apache2-mpm-prefork depends on apache2.2-common (= 2.2.16-6+squeeze10); however:
  Package apache2.2-common is not configured yet.
dpkg: error processing apache2-mpm-prefork (--configure):
 dependency problems - leaving unconfigured
configured to not write apport reports
                                      dpkg: dependency problems prevent configuration of apache2:
 apache2 depends on apache2-mpm-worker (= 2.2.16-6+squeeze10) | apache2-mpm-prefork (= 2.2.16-6+squeeze10) | apache2-mpm-event (= 2.2.16-6+squeeze10) | apache2-mpm-itk (= 2.2.16-6+squeeze10); however:
  Package apache2-mpm-worker is not installed.
  Package apache2-mpm-prefork is not configured yet.
  Package apache2-mpm-event is not installed.
  Package apache2-mpm-itk is not installed.
 apache2 depends on apache2.2-common (= 2.2.16-6+squeeze10); however:
  Package apache2.2-common is not configured yet.
dpkg: error processing apache2 (--configure):
 dependency problems - leaving unconfigured
Setting up clamav-freshclam (0.97.6+dfsg-1~squeeze1) ...
configured to not write apport reports
                                      insserv: warning: script 'K02ossec' missing LSB tags and overrides
insserv: warning: script 'ossec' missing LSB tags and overrides
insserv: warning: script 'haveged' missing LSB tags and overrides
insserv: There is a loop between service munin-node and haveged if stopped
insserv:  loop involving service haveged at depth 2
insserv:  loop involving service munin-node at depth 1
insserv: Stopping haveged depends on munin-node and therefore on system facility `$all' which can not be true!
insserv: exiting now without changing boot order!
update-rc.d: error: insserv rejected the script header
dpkg: error processing clamav-freshclam (--configure):
 subprocess installed post-installation script returned error exit status 1
configured to not write apport reports
                                      dpkg: dependency problems prevent configuration of clamav:
 clamav depends on clamav-freshclam | clamav-data; however:
  Package clamav-freshclam is not configured yet.
  Package clamav-data is not installed.
  Package clamav-freshclam which provides clamav-data is not configured yet.
dpkg: error processing clamav (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libapache2-mod-php5:
 libapache2-mod-php5 depends on apache2-mpm-prefork (>> 2.0.52) | apache2-mpm-itk; however:
  Package apache2-mpm-prefork is not configured yet.
  Package apache2-mpm-itk is not installed.
 libapache2-mod-php5 depends on apache2.2-common; however:
  Package apache2.2-common is not configured yet.
dpkg: error processing libapache2-mod-php5 (--configure):
 dependency problems - leaving unconfigured
configured to not write apport reports
                                      configured to not write apport reports
                                                                            Errors were encountered while processing:
 exim4-base
 exim4-daemon-light
 exim4
 apache2.2-common
 apache2-mpm-prefork
 apache2
 clamav-freshclam
 clamav
 libapache2-mod-php5
E: Sub-process /usr/bin/dpkg returned an error code (1)

我无法停止haveged而不抛出错误

我还使用了当从源代码安装东西时,它会将所有文件打包到一个包中,并以这种方式安装,这使得删除所有相关文件更加容易

我删除了haveged源版本使用的所有文件,但我认为罪魁祸首是/etc/init.d/haveged


然后,“sudo apt get upgrade”就可以正常工作了

您是否尝试过
apt get install-f