Closed hibari0614 closed 6 years ago
FYI, looks like Debian Stretch packages are having the same issue.
prerm called with unknown argument `upgrade'
dpkg: warning: subprocess old pre-removal script returned error exit status 1
dpkg: trying script from the new package instead ...
prerm called with unknown argument `failed-upgrade'
dpkg: error processing archive /var/cache/apt/archives/ossec-hids-agent_3.1.0.5711stretch_amd64.deb (--unpack):
subprocess new pre-removal script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/ossec-hids-agent_3.1.0.5711stretch_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
I can confirm that too on my Debian Stretch:
Upgrading from version: 3.1.0.5696stretch
Preparing to unpack .../ossec-hids-server_3.1.0.5711stretch_amd64.deb ...
prerm called with unknown argument `upgrade'
dpkg: warning: subprocess old pre-removal script returned error exit status 1
dpkg: trying script from the new package instead ...
prerm called with unknown argument `failed-upgrade'
dpkg: error processing archive /var/cache/apt/archives/ossec-hids-server_3.1.0.5711stretch_amd64.deb (--install):
subprocess new pre-removal script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/ossec-hids-server_3.1.0.5711stretch_amd64.deb
sha256sum
d47a8a1ea688dad3eac016ba491d87522a2bbcda4601092e82d3a2c20ecd63dd /var/cache/apt/archives/ossec-hids-server_3.1.0.5711stretch_amd64.deb
/etc/apt/sources.list.d/atomic.list
deb https://updates.atomicorp.com/channels/atomic/debian stretch main
We're seeing this too with Ubuntu 18.04 (bionic). Package ossec-hids-server_3.1.0-5711bionic_amd64.deb
.
Hi. I am getting also an error in Ubuntu 18.04, Linux 4.15.0-38-generic #41-Ubuntu SMP Wed Oct 10 10:59:38 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux Distributor ID: Ubuntu Description: Ubuntu 18.04.1 LTS Release: 18.04 Codename: bionic
Preparing to unpack .../ossec-hids-server_3.1.0-5711bionic_amd64.deb ...
prerm called with unknown argument upgrade' dpkg: warning: old ossec-hids-server package pre-removal script subprocess returned error exit status 1 dpkg: trying script from the new package instead ... prerm called with unknown argument
failed-upgrade'
dpkg: error processing archive /var/cache/apt/archives/ossec-hids-server_3.1.0-5711bionic_amd64.deb (--unpack):
new ossec-hids-server package pre-removal script subprocess returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/ossec-hids-server_3.1.0-5711bionic_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
+1 Ubuntu 18.04
We also have the problem on Ubuntu 14 - see https://github.com/ossec/ossec-hids/issues/1540
dpkg: error processing archive /var/cache/apt/archives/ossec-hids-agent_3.1.0-5711trusty_amd64.deb (--unpack): subprocess new pre-removal script returned error exit status 1 Errors were encountered while processing: /var/cache/apt/archives/ossec-hids-agent_3.1.0-5711trusty_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
Updated & sync'd to mirrors in build 5732
This fails on current Ubuntu 18 LTS in agent only config --
Setting up ossec-hids-agent (3.1.0-5732bionic) ...
chown: invalid user: ‘ossec:ossec’
Hi
I would like to upgrade the OSSEC server to 3.1.0--5711xenial on Ubuntu 16.04 LTS with
apt-get
command, but there is a error occurred and the upgrading process is stopped.The
apt-get
command return below error message. Seem theprerm
script in .deb package cannot recognizes 'upgrade' parameter.Did someone could kindly look over this issue ? Its seem like a bug.