package clamav-daemon 0.98.6+dfsg-1ubuntu2 failed to install/upgrade: подпроцесс установлен сценарий post-installation возвратил код ошибки 2

Bug #1447809 reported by Nick
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ClamAV
Unknown
Unknown
clamav (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

error while updating from Xubuntu 14.10 to 15.04

ProblemType: Package
DistroRelease: Ubuntu 15.04
Package: clamav-daemon 0.98.6+dfsg-1ubuntu2
ProcVersionSignature: Ubuntu 3.19.0-15.15-generic 3.19.3
Uname: Linux 3.19.0-15-generic x86_64
ApportVersion: 2.17.2-0ubuntu1
AptOrdering:
 clamav-daemon: Configure
 NULL: ConfigurePending
Architecture: amd64
Date: Thu Apr 23 23:41:58 2015
DpkgTerminalLog:
 Настраивается пакет clamav-daemon (0.98.6+dfsg-1ubuntu2) …
 /var/lib/dpkg/info/clamav-daemon.postinst: 626: /var/lib/dpkg/info/clamav-daemon.postinst: cannot create : Directory nonexistent
 dpkg: ошибка при обработке пакета clamav-daemon (--configure):
  подпроцесс установлен сценарий post-installation возвратил код ошибки 2
DuplicateSignature: package:clamav-daemon:0.98.6+dfsg-1ubuntu2:подпроцесс установлен сценарий post-installation возвратил код ошибки 2
ErrorMessage: подпроцесс установлен сценарий post-installation возвратил код ошибки 2
ProcCmdline: BOOT_IMAGE=/boot/vmlinuz-3.19.0-15-generic root=UUID=f650b5ad-b840-4b88-9aec-3a3dae256156 ro quiet splash vt.handoff=7
RelatedPackageVersions:
 dpkg 1.17.25ubuntu1
 apt 1.0.9.7ubuntu4
SourcePackage: clamav
Title: package clamav-daemon 0.98.6+dfsg-1ubuntu2 failed to install/upgrade: подпроцесс установлен сценарий post-installation возвратил код ошибки 2
UpgradeStatus: Upgraded to vivid on 2015-04-23 (0 days ago)

Related branches

Revision history for this message
Nick (nick222-yandex) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in clamav (Ubuntu):
status: New → Confirmed
Revision history for this message
duke (john-jcroucher) wrote :

This seems to be a fix for the "error /var/lib/dpkg/info/clamav-daemon.postinst: 626: /var/lib/dpkg/info/clamav-daemon.postinst: cannot create : Directory nonexistent"

line 626 of clamav-daemon.postinst has a typo:

    [ -n "$PidFile" ] && echo "PidFile $PidFile" >> $DEBCONFILE

should actually be

    [ -n "$PidFile" ] && echo "PidFile $PidFile" >> $DEBCONFFILE

Source:

http://lists.alioth.debian.org/pipermail/pkg-clamav-devel/2015-February/005074.html

I edited the file /var/lib/dpkg/info/clamav-daemon.postinst making the change, then re-ran apt-get install clamav which then worked.

Revision history for this message
duke (john-jcroucher) wrote :

This seems to be a fix for the "error /var/lib/dpkg/info/clamav-daemon.postinst: 626: /var/lib/dpkg/info/clamav-daemon.postinst: cannot create : Directory nonexistent"

line 626 of clamav-daemon.postinst has a typo:

    [ -n "$PidFile" ] && echo "PidFile $PidFile" >> $DEBCONFILE

should actually be

    [ -n "$PidFile" ] && echo "PidFile $PidFile" >> $DEBCONFFILE

Source:

http://lists.alioth.debian.org/pipermail/pkg-clamav-devel/2015-February/005074.html

I edited the file /var/lib/dpkg/info/clamav-daemon.postinst making the change, then re-ran apt-get install clamav which then worked.

Revision history for this message
Scott Kitterman (kitterman) wrote : Update Released

The verification of the Stable Release Update for clamav has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package clamav - 0.98.6+dfsg-1ubuntu4

---------------
clamav (0.98.6+dfsg-1ubuntu4) vivid; urgency=medium

  * No change upload to work around temporary archive ddeb issue

clamav (0.98.6+dfsg-1ubuntu3) vivid; urgency=medium

  * d/clamav-daemon.postinst.in: Fix typo which causes a crash while installing
    this package over any previous version (upgrading). Variable $DEBCONFILE
    has been used incorrectly inside the script instead of $DEBCONFFILE. This
    issue doesn't show up during regular installation (not upgrade) because
    the typo is on the path which gets executed only if debconf information is
    available for the package (LP: #1438745, #1447809, Closes: #778507).
 -- Scott Kitterman <email address hidden> Fri, 24 Apr 2015 22:19:57 -0400

Changed in clamav (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.