{"action":"created","issue":{"url":"https://api.github.com/repos/ossec/ossec-hids/issues/1567","repository_url":"https://api.github.com/repos/ossec/ossec-hids","labels_url":"https://api.github.com/repos/ossec/ossec-hids/issues/1567/labels{/name}","comments_url":"https://api.github.com/repos/ossec/ossec-hids/issues/1567/comments","events_url":"https://api.github.com/repos/ossec/ossec-hids/issues/1567/events","html_url":"https://github.com/ossec/ossec-hids/issues/1567","id":374472141,"node_id":"MDU6SXNzdWUzNzQ0NzIxNDE=","number":1567,"title":"Ubuntu 16.04 LTS upgrade issue","user":{"login":"hibari0614","id":1697578,"node_id":"MDQ6VXNlcjE2OTc1Nzg=","avatar_url":"https://avatars0.githubusercontent.com/u/1697578?v=4","gravatar_id":"","url":"https://api.github.com/users/hibari0614","html_url":"https://github.com/hibari0614","followers_url":"https://api.github.com/users/hibari0614/followers","following_url":"https://api.github.com/users/hibari0614/following{/other_user}","gists_url":"https://api.github.com/users/hibari0614/gists{/gist_id}","starred_url":"https://api.github.com/users/hibari0614/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hibari0614/subscriptions","organizations_url":"https://api.github.com/users/hibari0614/orgs","repos_url":"https://api.github.com/users/hibari0614/repos","events_url":"https://api.github.com/users/hibari0614/events{/privacy}","received_events_url":"https://api.github.com/users/hibari0614/received_events","type":"User","site_admin":false},"labels":[{"id":56830941,"node_id":"MDU6TGFiZWw1NjgzMDk0MQ==","url":"https://api.github.com/repos/ossec/ossec-hids/labels/bug","name":"bug","color":"fc2929","default":true},{"id":930125714,"node_id":"MDU6TGFiZWw5MzAxMjU3MTQ=","url":"https://api.github.com/repos/ossec/ossec-hids/labels/package","name":"package","color":"bfdadc","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-10-26T17:12:11Z","updated_at":"2018-11-15T21:47:46Z","closed_at":"2018-11-15T21:47:46Z","author_association":"NONE","body":"Hi\r\n\r\nI 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.\r\n\r\nThe `apt-get` command return below error message. Seem the `prerm` script in .deb package cannot recognizes 'upgrade' parameter.\r\n\r\nDid someone could kindly look over this issue ? Its seem like a bug.\r\n\r\n```\r\n$> sudo apt-get upgrade ossec-hids-server\r\nReading package lists... Done\r\nBuilding dependency tree       \r\nReading state information... Done\r\nCalculating upgrade... Done\r\nThe following packages will be upgraded:\r\n  ossec-hids-server\r\n1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.\r\n5 not fully installed or removed.\r\nNeed to get 658 kB of archives.\r\nAfter this operation, 4,096 B of additional disk space will be used.\r\nDo you want to continue? [Y/n] Y\r\nGet:1 https://updates.atomicorp.com/channels/atomic/ubuntu xenial/main amd64 ossec-hids-server amd64 3.1.0-5711xenial [658 kB]\r\nFetched 658 kB in 0s (1,875 kB/s)     \r\nPreconfiguring packages ...\r\n(Reading database ... 97299 files and directories currently installed.)\r\nPreparing to unpack .../ossec-hids-server_3.1.0-5711xenial_amd64.deb ...\r\nprerm called with unknown argument `upgrade'\r\ndpkg: warning: subprocess old pre-removal script returned error exit status 1\r\ndpkg: trying script from the new package instead ...\r\nprerm called with unknown argument `failed-upgrade'\r\ndpkg: error processing archive /var/cache/apt/archives/ossec-hids-server_3.1.0-5711xenial_amd64.deb (--unpack):\r\n subprocess new pre-removal script returned error exit status 1\r\nErrors were encountered while processing:\r\n /var/cache/apt/archives/ossec-hids-server_3.1.0-5711xenial_amd64.deb\r\nE: Sub-process /usr/bin/dpkg returned an error code (1)\r\n```"},"comment":{"url":"https://api.github.com/repos/ossec/ossec-hids/issues/comments/439202162","html_url":"https://github.com/ossec/ossec-hids/issues/1567#issuecomment-439202162","issue_url":"https://api.github.com/repos/ossec/ossec-hids/issues/1567","id":439202162,"node_id":"MDEyOklzc3VlQ29tbWVudDQzOTIwMjE2Mg==","user":{"login":"atomicturtle","id":4910547,"node_id":"MDQ6VXNlcjQ5MTA1NDc=","avatar_url":"https://avatars1.githubusercontent.com/u/4910547?v=4","gravatar_id":"","url":"https://api.github.com/users/atomicturtle","html_url":"https://github.com/atomicturtle","followers_url":"https://api.github.com/users/atomicturtle/followers","following_url":"https://api.github.com/users/atomicturtle/following{/other_user}","gists_url":"https://api.github.com/users/atomicturtle/gists{/gist_id}","starred_url":"https://api.github.com/users/atomicturtle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atomicturtle/subscriptions","organizations_url":"https://api.github.com/users/atomicturtle/orgs","repos_url":"https://api.github.com/users/atomicturtle/repos","events_url":"https://api.github.com/users/atomicturtle/events{/privacy}","received_events_url":"https://api.github.com/users/atomicturtle/received_events","type":"User","site_admin":false},"created_at":"2018-11-15T21:47:46Z","updated_at":"2018-11-15T21:47:46Z","author_association":"CONTRIBUTOR","body":"Updated & sync'd to mirrors in build 5732"}}
{"actor":{"display_login":"atomicturtle"}}