{"action":"opened","issue":{"url":"https://api.github.com/repos/FooDeas/raspberrypi-ua-netinst/issues/153","repository_url":"https://api.github.com/repos/FooDeas/raspberrypi-ua-netinst","labels_url":"https://api.github.com/repos/FooDeas/raspberrypi-ua-netinst/issues/153/labels{/name}","comments_url":"https://api.github.com/repos/FooDeas/raspberrypi-ua-netinst/issues/153/comments","events_url":"https://api.github.com/repos/FooDeas/raspberrypi-ua-netinst/issues/153/events","html_url":"https://github.com/FooDeas/raspberrypi-ua-netinst/issues/153","id":320599960,"number":153,"title":"`syslog-ng` doesn't want to install during post-install","user":{"login":"Mausy5043","id":9638943,"avatar_url":"https://avatars0.githubusercontent.com/u/9638943?v=4","gravatar_id":"","url":"https://api.github.com/users/Mausy5043","html_url":"https://github.com/Mausy5043","followers_url":"https://api.github.com/users/Mausy5043/followers","following_url":"https://api.github.com/users/Mausy5043/following{/other_user}","gists_url":"https://api.github.com/users/Mausy5043/gists{/gist_id}","starred_url":"https://api.github.com/users/Mausy5043/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mausy5043/subscriptions","organizations_url":"https://api.github.com/users/Mausy5043/orgs","repos_url":"https://api.github.com/users/Mausy5043/repos","events_url":"https://api.github.com/users/Mausy5043/events{/privacy}","received_events_url":"https://api.github.com/users/Mausy5043/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-06T15:01:41Z","updated_at":"2018-05-06T15:01:41Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"I have this piece of code in my `post-install.txt`:\r\n```\r\necho \"Removing rsyslog...\"\r\neval chroot /rootfs /usr/bin/apt-get -y purge rsyslog 2>&1 | output_filter\r\nif [ \"${PIPESTATUS[0]}\" -eq 0 ]; then\r\n\techo \"OK\"\r\nelse\r\n\techo \"FAILED !\"\r\nfi\r\necho \"Installing syslog-ng...\"\r\neval chroot /rootfs /usr/bin/apt-get -y install syslog-ng 2>&1 | output_filter\r\nif [ \"${PIPESTATUS[0]}\" -eq 0 ]; then\r\n\techo \"OK\"\r\nelse\r\n\techo \"FAILED !\"\r\nfi\r\n```\r\n\r\nThe relevant part of the log shows this:\r\n```\r\nRemoving rsyslog...\r\n  Reading package lists...\r\n  Building dependency tree...\r\n  Reading state information...\r\n  The following packages were automatically installed and are no longer required:\r\n    libestr0 libfastjson4 liblogging-stdlog0 liblognorm5\r\n  Use 'apt autoremove' to remove them.\r\n  The following packages will be REMOVED:\r\n    rsyslog*\r\n  0 upgraded, 0 newly installed, 1 to remove and 4 not upgraded.\r\n  After this operation, 1363 kB disk space will be freed.\r\n  Removing rsyslog (8.24.0-1) ...\r\n  Running in chroot, ignoring request.\r\n[ ok ..] Stopping enhanced syslogd: rsyslogd already stopped.\r\n  Processing triggers for man-db (2.7.6.1-2) ...\r\n  Purging configuration files for rsyslog (8.24.0-1) ...\r\n  Processing triggers for systemd (232-25+deb9u2) ...\r\nOK\r\nInstalling syslog-ng...\r\n  Reading package lists...\r\n  Building dependency tree...\r\n  Reading state information...\r\n  E: Unable to locate package syslog-ng\r\nFAILED !\r\n```\r\n\r\nAfter the reboot I can install `syslog-ng` with no problems.\r\n```\r\n$ sudo apt install syslog-ng\r\nReading package lists... Done\r\nBuilding dependency tree\r\nReading state information... Done\r\nThe following packages were automatically installed and are no longer required:\r\n  libestr0 libfastjson4 liblogging-stdlog0 liblognorm5\r\nUse 'sudo apt autoremove' to remove them.\r\nThe following additional packages will be installed:\r\n  geoip-database libbson-1.0-0 libdbi1 libesmtp6 libevtlog0 libgeoip1 libhiredis0.13 libivykis0 libjson-c3 libmongoc-1.0-0 libnet1 libprotobuf-c1 libpython2.7\r\n  librabbitmq4 libriemann-client0 libyajl2 syslog-ng-core syslog-ng-mod-add-contextual-data syslog-ng-mod-amqp syslog-ng-mod-geoip syslog-ng-mod-graphite\r\nPreparing to unpack .../28-syslog-ng-mod-riemann_3.8.1-10_armhf.deb ...\r\n[blablabla]\r\n```\r\n\r\nAny ideas as to what might be causing this? Should I rather replace `rsyslog` by `syslog-ng` after the reboot or is there a fix that I am overlooking?"}}
{"actor":{"display_login":"Mausy5043"}}