Changing a hostname in Debian seems harder than necessary

Changing a host’s name in Debian1 is a two-step process, and there doesn’t appear to be a more direct method. This seems odd to me, somehow. Because I stumbled upon this issue and a confusing error while relying solely on sudo, I thought I’d write up how I worked around it. … and probably Linux in general, but I didn’t check.