package clamav-daemon 0.103.6+dfsg-0ubuntu0.22.04.1 failed to install/upgrade: installed clamav-daemon package post-installation script subprocess returned error exit status 2

Bug #2008463 reported by Dinesh Atri
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
clamav (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

ubuntu using in del laptop

ProblemType: Package
DistroRelease: Ubuntu 22.04
Package: clamav-daemon 0.103.6+dfsg-0ubuntu0.22.04.1
ProcVersionSignature: Ubuntu 5.19.0-32.33~22.04.1-generic 5.19.17
Uname: Linux 5.19.0-32-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.3
AptOrdering:
 google-chrome-stable:amd64: Install
 teamviewer:amd64: Install
 NULL: ConfigurePending
Architecture: amd64
CasperMD5CheckResult: pass
Date: Fri Feb 24 11:09:13 2023
ErrorMessage: installed clamav-daemon package post-installation script subprocess returned error exit status 2
InstallationDate: Installed on 2022-10-13 (133 days ago)
InstallationMedia: Ubuntu 22.04.1 LTS "Jammy Jellyfish" - Release amd64 (20220809.1)
ProcCmdline: BOOT_IMAGE=/boot/vmlinuz-5.19.0-32-generic root=UUID=0ea27386-dd2b-4afe-90a9-fad391bc4fd8 ro quiet splash vt.handoff=7
Python3Details: /usr/bin/python3.10, Python 3.10.6, python3-minimal, 3.10.6-1~22.04
PythonDetails: /usr/bin/python2.7, Python 2.7.18, unpackaged
RelatedPackageVersions:
 dpkg 1.21.1ubuntu2.1
 apt 2.4.8
SourcePackage: clamav
Title: package clamav-daemon 0.103.6+dfsg-0ubuntu0.22.04.1 failed to install/upgrade: installed clamav-daemon package post-installation script subprocess returned error exit status 2
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Dinesh Atri (dineshattri1987) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Mitchell Dzurick (mitchdz) wrote (last edit ):

This failed because of the following line:

/var/lib/dpkg/info/clamav-daemon.postinst: 428: cannot create /var/lib/clamav/clamav.conf: Directory nonexistent

I guess /var/lib/clamav/ directory did not exist during install. I'm not sure how this case occurs. Was there anything interesting you did before the upgrade?

Perhaps we should update the maintainer script to do something such as "mkdir -p /var/lib/clamav/" before [0].

[0] - https://git.launchpad.net/ubuntu/+source/clamav/tree/debian/clamav-daemon.postinst.in?h=ubuntu/jammy-devel#n196

Changed in clamav (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for clamav (Ubuntu) because there has been no activity for 60 days.]

Changed in clamav (Ubuntu):
status: Incomplete → Expired
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.