It looks like the instructions on the following page are outdated and may need to be adjusted to suit newer versions of Ubuntu and Spark: https://spark.posit.co/deployment/stand-alone-aws.html