我的终端相关 clamav 中存在问题

我的终端相关 clamav 中存在问题

最近我决定使用 Avast Antivirus。我卸载了 clamav 并安装了 Avast。现在每当我使用终端时都会收到以下错误。:

5 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/1,250 kB of archives.
After this operation, 5,120 B of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database ... 
dpkg: warning: files list file for package `clamav-daemon' missing, assuming package has no files currently installed.
dpkg: warning: files list file for package `python-pyclamav' missing, assuming package has no files currently installed.
dpkg: warning: files list file for package `clamav-base' missing, assuming package has no files currently installed.
dpkg: warning: files list file for package `clamav-freshclam' missing, assuming package has no files currently installed.
dpkg: warning: files list file for package `libclamav6' missing, assuming package has no files currently installed.
dpkg: warning: files list file for package `python-clamav' missing, assuming package has no files currently installed.
(Reading database ... 554940 files and directories currently installed.)

请帮忙。
谢谢

答案1

我刚刚遇到了同样的问题并找到了答案。

错误原因是 /var/lib/dpkg/info/ 中缺少给定应用程序的 .list 文件。您可以通过运行以下命令重新安装它们:

sudo apt-get remove <package name>

进而

sudo apt-get install <package name>

或者你可以采用更技术性的方法,通过运行以下命令为每个包创建一个新文件:

touch <package name>.list

例如

touch clamav-base.list

来源:http://www.vkernel.co.uk/?p=139

相关内容