{"action":"closed","issue":{"url":"https://api.github.com/repos/pi-hole/pi-hole/issues/768","repository_url":"https://api.github.com/repos/pi-hole/pi-hole","labels_url":"https://api.github.com/repos/pi-hole/pi-hole/issues/768/labels{/name}","comments_url":"https://api.github.com/repos/pi-hole/pi-hole/issues/768/comments","events_url":"https://api.github.com/repos/pi-hole/pi-hole/issues/768/events","html_url":"https://github.com/pi-hole/pi-hole/issues/768","id":181845383,"number":768,"title":"Package cache check is not functioning as expected.","user":{"login":"dschaper","id":2782850,"avatar_url":"https://avatars.githubusercontent.com/u/2782850?v=3","gravatar_id":"","url":"https://api.github.com/users/dschaper","html_url":"https://github.com/dschaper","followers_url":"https://api.github.com/users/dschaper/followers","following_url":"https://api.github.com/users/dschaper/following{/other_user}","gists_url":"https://api.github.com/users/dschaper/gists{/gist_id}","starred_url":"https://api.github.com/users/dschaper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dschaper/subscriptions","organizations_url":"https://api.github.com/users/dschaper/orgs","repos_url":"https://api.github.com/users/dschaper/repos","events_url":"https://api.github.com/users/dschaper/events{/privacy}","received_events_url":"https://api.github.com/users/dschaper/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-10-08T19:52:39Z","updated_at":"2016-10-10T09:15:40Z","closed_at":"2016-10-10T09:15:40Z","body":"_This template was created based on the work of [`udemy-dl`](https://github.com/nishad/udemy-dl/blob/master/LICENSE)._\r\n\r\n**In raising this issue, I confirm the following (please check boxes, eg [X]):**\r\n\r\n- [x] I have read and understood the [contributors guide](https://github.com/pi-hole/pi-hole/blob/master/CONTRIBUTING.md).\r\n- [x] The issue I am reporting can be *replicated*\r\n- [x] The issue I'm reporting isn't a duplicate (see [FAQs](https://github.com/pi-hole/pi-hole/wiki/FAQs), [closed issues](https://github.com/pi-hole/pi-hole/issues?utf8=%E2%9C%93&q=is%3Aissue%20is%3Aclosed%20), and [open issues](https://github.com/pi-hole/pi-hole/issues)).\r\n\r\n**How familiar are you with the codebase?:**\r\n\r\n- [ ] 1 (very unfamiliar)\r\n- [ ] 2\r\n- [ ] 3\r\n- [ ] 4\r\n- [ ] 5\r\n- [ ] 6\r\n- [ ] 7\r\n- [ ] 8\r\n- [ ] 9\r\n- [x] 10 (very familiar)\r\n\r\n---\r\n**OTHER:**\r\n\r\nAutomated install is not correctly detecting package cache status. \r\n\r\n```\r\noot@raspberrypi:/home/pi/idea/automated install# bash basic-install.sh\r\n:::\r\n::: You are root.\r\n::: Verifying free disk space...\r\n:::\r\n::: Checking apt-get for upgraded packages.... done!\r\n:::\r\n::: Your pi is up to date! Continuing with pi-hole installation...\r\n:::\r\n::: Checking installer dependencies...\r\n:::    Checking for apt-utils... already installed!\r\n:::    Checking for whiptail... already installed!\r\n:::    Checking for dhcpcd5... already installed!\r\n::: Using interface: eth0\r\n:::\r\n::: Setting IP to 192.168.1.182/24.  You may need to restart after the install is complete.\r\n:::\r\n::: Using IPv4 on 192.168.1.182/24\r\n::: Using IPv6 on 2605:e000:3c8e:ca00:581:78bb:174a:8d8d\r\n::: Using Google DNS servers.\r\n::: Checking Pi-Hole dependencies:\r\n:::    Checking for dnsutils... Not found! Installing.... [|]  E: Failed to fetch http://mirrordirector.raspbian.org/raspbian/pool/main/b/bind9/dnsutils_9.9.5.dfsg-9+deb8u6_armhf.deb  404  Not Found [IP: 2001:41c9:1:3ce::11 80]\r\n\r\nE: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?                                 done!\r\n:::    Checking for bc... Not found! Installing.... done!\r\n:::    Checking for dnsmasq... Not found! Installing.... done!\r\n:::    Checking for lighttpd... Not found! Installing.... done!\r\n```\r\n\r\nThe `dnsutils` install error is because `apt-get update` has not actually been run. The function to check if the Package Count actually changes the date of the files we stat so that it appears as if an `update` has been run when it hasn't. `upgrade` still shows 0 packages available, if an `apt update` is run manually then the `upgrade` shows the correct value with packages to be upgraded."}}
{"actor":{"display_login":"dschaper"}}