Failing selfupgrade



Sometimes there can be situation when Ubuntu repo is out of sync and it can’t find some package. This happens because Hive is updating itself only but not the whole Ubuntu to minimise traffic. In a long run some package can be required and then it needs to be downloaded and Ubuntu’s repo cache old to know where it is.

It lok like this:

Get:1  InRelease [1,741 B]
Get:2  Packages [14.8 kB]
Fetched 16.6 kB in 0s (90.7 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...


Get:175 xenial-updates/main amd64 xserver-xorg-video-ati-hwe-16.04 amd64 1:18.0.1-1~16.04.1 [7,126 B]
Get:176 xenial-updates/main amd64 xserver-xorg-video-intel-hwe-16.04 amd64 2:2.99.917+git20171229-1~16.04.1 [729 kB]
Get:177 xenial-updates/main amd64 amd64-microcode amd64 3.20180524.1~ubuntu0.16.04.2 [32.2 kB]
Err:178 xenial-updates/main amd64 intel-microcode amd64 3.20180425.1~ubuntu0.16.04.2
  404  Not Found [IP: 80]
Fetched 196 MB in 4min 9s (784 kB/s)
E: Failed to fetch  404  Not Found [IP: 80]

E: Failed to fetch  404  Not Found [IP: 80]

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Upgrade failed

This can be resolved with running apt update and then repeating selfupgrade.

Though there can come up another problem with interactive dialog from grub
If you are upgrading in shell (SSH or Teleconsole) then it’s fine, but with running it from web it can be a problem;


nohup bash -c 'apt update; export DEBIAN_FRONTEND=noninteractive; apt-get -y --only-upgrade install hive; hello restartminer; screen -S agent -X quit; agent-screen' > /tmp/nohup.log 2>&1 &

Pretty long line, but paste it in Linux Execute and run.

Selfupgrade 0.5-73 grub-pc failure
Custom miner: bminer