Prynn
May 14, 2020, 10:42am
1
Expected Behaviour:
Just trying to update my machine with pihole -up
Raspbian minimal/light.
Raspberry Pi 3b
Actual Behaviour:
While running pihole -up
got this respond: unable to complete update, please contact Pi-hole Support
running pihole -up
again gave me this:
[i] Checking for updates...
[i] Pi-hole Core: up to date
[i] Web Interface: up to date
[i] FTL: update available
sudo apt-get dist-upgrade
do fail also with:
Segmentation fault
E: Sub-process /usr/bin/apt-listchanges --apt || test $? -lt 10 returned an error code (1)
E: Failure running script /usr/bin/apt-listchanges --apt || test $? -lt 10
Anything funky going on in the logs?
Debug Token:
https://tricorder.pi-hole.net/roy6uoqyh7
Seeing as apt-get
is erroring out with a segmentation fault, this may indicate that you have corruptions on your SD card.
Personally, if it were me, I would reflash the SD card with a fresh copy of the latest raspbian and start from scratch. Corruptions can be caused by sudden power loss (i.e unplugging it without first shutting down) or even if the power supply is not rated for the hardware.
Prynn
May 14, 2020, 1:51pm
3
Might do a reset then, thing is my pihole hasn't been powered off in a long time. uptime
shows 180 days
jfb
May 14, 2020, 1:52pm
4
Prynn:
Might do a reset then
Try a simple reboot - sudo reboot now
Prynn
May 14, 2020, 1:55pm
5
is sudo apt-get dist-upgrade
necessary or does pihole -up
handles all the updates?
jfb
May 14, 2020, 2:00pm
6
Pi-hole only checks for OS updates with apt update
, it does not install OS updates.
printf " and restarting systemd-resolved\\n"
systemctl reload-or-restart systemd-resolved
else
printf "%b %b Systemd-resolved does not need to be restarted\\n" "${OVER}" "${INFO}"
fi
else
printf "%b %b Systemd-resolved is not enabled\\n" "${OVER}" "${INFO}"
fi
}
update_package_cache() {
# Running apt-get update/upgrade with minimal output can cause some issues with
# requiring user input (e.g password for phpmyadmin see #218)
# Update package cache on apt based OSes. Do this every time since
# it's quick and packages can be updated at any time.
# Local, named variables
local str="Update local cache of available packages"
printf " %b %s..." "${INFO}" "${str}"
# Create a command from the package cache variable
Prynn
May 14, 2020, 2:08pm
7
a simple reboot did the trick and the update process is now running (updating gravity lists)
side question. How often should you check for updates with dist-upgrade
?
jfb
May 14, 2020, 2:10pm
8
This is at your discretion.
apt update
is the process that checks for updates.
The apt upgrade
commands actually install the new software.
1 Like
system
Closed
June 4, 2020, 2:10pm
9
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.