我正在尝试更新我的clamav,但我已经尝试了我所知道的一切,但没有任何帮助。我一直收到这样的错误信息。任何帮助都是非常感谢的。
我也尝试了所有我能找到的在网上(删除,清除,重新安装),但没有任何效果。请帮帮我..。)(这也阻止了我安装其他程序。
航站楼:
root@dell-Latitude-D630:/home/dell# apt-get -f install clamav-daemon
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
clamav-docs daemon
Recommended packages:
clamdscan
The following packages will be upgraded:
clamav-daemon
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
13 not fully installed or removed.
Need to get 0 B/200 kB of archives.
After this operation, 12.3 kB of additional disk space will be used.
Preconfiguring packages ...
(Reading database ... 675823 files and directories currently installed.)
Preparing to unpack .../clamav-daemon_0.99.2+dfsg-0ubuntu0.16.04.1_i386.deb ...
Failed to stop clamav-daemon.socket: Unit clamav-daemon.socket not loaded.
dpkg: warning: subprocess old pre-removal script returned error exit status 5
dpkg: trying script from the new package instead ...
Failed to stop clamav-daemon.socket: Unit clamav-daemon.socket not loaded.
dpkg: error processing archive /var/cache/apt/archives/clamav-daemon_0.99.2+dfsg-0ubuntu0.16.04.1_i386.deb (--unpack):
subprocess new pre-removal script returned error exit status 5
insserv: warning: script 'K01maldet' missing LSB tags and overrides
insserv: warning: script 'maldet' missing LSB tags and overrides
Failed to start clamav-daemon.service: Unit clamav-daemon.socket is not loaded properly: Invalid argument.
See system logs and 'systemctl status clamav-daemon.service' for details.
invoke-rc.d: initscript clamav-daemon, action "start" failed.
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/clamav-daemon_0.99.2+dfsg-0ubuntu0.16.04.1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@dell-Latitude-D630:/home/dell# root@dell-Latitude-D630:/home/dell# sudo dpkg --remove --force-remove-reinstreq clamav-daemon
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: package is in a very bad inconsistent state; you should
reinstall it before attempting a removal
(Reading database ... 675758 files and directories currently installed.)
Removing clamav-daemon (0.99+dfsg-1ubuntu1.1) ...
Failed to stop clamav-daemon.socket: Unit clamav-daemon.socket not loaded.
dpkg: error processing package clamav-daemon (--remove):
subprocess installed pre-removal script returned error exit status 5
Errors were encountered while processing:
clamav-daemon
root@dell-Latitude-D630:/home/dell# 发布于 2016-10-11 19:36:55
多亏了菩提.扎赞的帮助,我终于解决了这个问题。
起作用的是:
su
cd /var/lib/dpkg/info
rm clamav*
apt purge clamav*
apt-get install clamav这解决了我的问题,现在clamav又开始工作了,我现在可以安装其他程序了。
发布于 2017-08-22 14:12:08
我是Linux的底层用户,所以当我最近对UbuntuServer17.04进行更新时,我相信应用的是Clamav和其他几个库。如果我没有弄错,Clamav更新到0.9.3,但我可能是错的。
无论如何,我在后缀和检查中输入了Unix套接字缺失的错误,是的/run/ clamav /箝d.ctl不是它们的,而是重新启动的,但是仍然是一样的,而且clamav无法在Mail Server上运行,而没有警告和尝试寻找备份替代方案。
我花了整整两天的时间研究和应用各个团体列出的所有治疗方法,但无论我尝试了什么,都无法纠正这个问题。即使是那些被认为行之有效的修复方案也失败了。
我有一个单独的备份驱动器,其中包括CloneZilla映像,以及一个使用以下命令进行CPIO文件备份的文件夹。
Server1#发现。-mount -print _ cpio -pdumv /BACKUP/TLCSMail_Backup_17.04LTS
在应用更改/更新时,我会定期更新。现在我准备重新声明CloneZilla映像,就在一个月前,我将其从16.10LTS升级到17.04LTS,但没有那么激烈,我没有什么可松的,只需安装/BACKUP驱动器,并使用以下命令恢复/etc并重新启动,看看会发生什么。
cd /BACKUP/TLCSMail_Backup_17.04LTS
cd等
找出来。-mount -print _ cpio -pdumv /etc
令我惊讶的是,它并没有影响系统,即使它是实时的,我重新启动,一切都恢复正常运行。我进行了apt更新,然后进行apt升级,不需要进行任何更改或添加。
Clamav又是0.9.2版,后缀则像云雀一样像S一样快乐。它已经运行了2.5天,没有任何问题。
真希望我能早点试一试,省去很多痛苦,但我想学.希望这对遇到这个问题的其他人有所帮助,我真的不赞成禁用Clamav,因为有些帖子指出要解决这个问题,因为Linux和Apple系统已经很长时间公然地将病毒传播给Windows用户和系统。
向特里·兰姆问好。
https://askubuntu.com/questions/835786
复制相似问题