# dpkg -i /var/cache/apt/archives/ossec-hids-agent_3.1.0.5711stretch_amd64.deb
(Reading database ... 91319 files and directories currently installed.)
Preparing to unpack .../ossec-hids-agent_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-agent_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-agent_3.1.0.5711stretch_amd64.deb

 
# apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  ossec-hids-agent
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/282 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
Preconfiguring packages ...
(Reading database ... 91612 files and directories currently installed.)
Preparing to unpack .../ossec-hids-agent_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-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
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)

Reply via email to