今さら気づいたんだけど、Mastodon 公式のセットアップガイド ( https://docs.joinmastodon.org/admin/install/ ) 、apt install と Node.js や yarn のソースとキーの保存の順番逆だよね
あと Ubuntu 20.04 では python-certbot-nginx のところは python3-certbot-nginx を指定する
taruntarun.net - Mastodon