Turn an old Android phone into a web server

I never have any luck running pkg upgrade on Termux. All the repositories fail.

Any special trick to get it to work?

eta:
The copy on Google Play is out of date and one of the mirror domains lapsed.

termux-change-repo

Select the packages. On the next screen, select a different mirror. I used albatross.

pkg update && pkg upgrade

Overwrite any config files. :person_shrugging:

Seems okay… Nope, motd is nagging me that my copy is still out of date, and that I should side-load from F-Droid or GitHub.