Package needs to be reinstalled,but can’t find an archive

来説两句

剛剛解决的一則技术問題,記之。

在Debian中安裝Avast殺毒軟體和它所依賴的另外一個文件(文件名libavastengine),安裝過程中出現這樣的錯誤提示:

no crontab for root
/var/tmp/: Not a regular file.
dpkg:处理 libavastengine (–remove)时出错:
子进程·pre-removal script·返回了错误号·1
Installer will insert call for virus database update to the crontab now.
This task can be done by avastvpsupdate.sh or avastvpsupdate.pl.
Installer will check which way is suitable for you, and also will try
to download the latest database version. This step might take up to few
minutes under some circumstances, but can be interrupted anytime by
pressing Ctrl-C (in this case, add the line to the crontab manually
and probably fix the problem in /etc/avastvpsupdate.conf).
no crontab for root
/var/tmp/: Not a regular file.
dpkg: 作下列清理工作时发生错误:
子进程·post-installation script·返回了错误号·1
在处理时有错误发生:
libavastengine
E: Sub-process /usr/bin/dpkg returned an error code (1)

我先删除(dpkg -r)了avast軟體,在删除libavastengine時遇到這樣的提示:

软件包 libavastengine 需要重新安装,但是我无法找到相应的安装文件。

英文是這樣説的:

The package libavastengine needs to be reinstalled, but I can’t find an archive for it.

解决办法是:

  • 1、刪除/var/lib/dpkg/info/目录中那個叫做libavastengine.postrm的文件
  • 2、在終端裡運行sudo dpkg –remove –force-remove-reinstreq libavastengine
  • 3、問題解决。這個方法適用於其它類似問題。

via (12

本站文章一律遵守創作共用「署名-非商業使用-相同方式共享」中國大陸2.5協議

轉摘文章請注明原文鏈接,並向我發送引用通告,歡迎收藏和分享本文: 17fav 收藏本文

Random Posts

歡迎留言評論

收藏 & 分享

Powered by 17fav.com