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
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+
ProcVersionSign
Uname: Linux 5.19.0-32-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.3
AptOrdering:
google-
teamviewer:amd64: Install
NULL: ConfigurePending
Architecture: amd64
CasperMD5CheckR
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=
Python3Details: /usr/bin/
PythonDetails: /usr/bin/python2.7, Python 2.7.18, unpackaged
RelatedPackageV
dpkg 1.21.1ubuntu2.1
apt 2.4.8
SourcePackage: clamav
Title: package clamav-daemon 0.103.6+
UpgradeStatus: No upgrade log present (probably fresh install)
tags: | removed: need-duplicate-check |
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