Closed combsbj closed 4 years ago
running sudo apt -y upgrade
fixes the issue
Please clarify which exact Instruqt track this is for @combsbj
Please also clarify where you ran sudo apt -y upgrade
. On the Shell tab of the track? or inside the hashicat VM that is created by the Terraform code, or inside the null_resource script of main.tf? Most likely the last.
However, I just tested the TFC for AWS and TFC for Azure tracks and was able to run terraform apply
without issue in the oh-no-an-outage challenge. So, I wonder if the issue you saw was a one-time fluke and question whether adding sudo apt -y upgrade
is really needed.
I'll test GCP too.
I tested GCP too and did not see a problem.
cannot replicate. Closing
terraform apply produces:
null_resource.configure-cat-app (remote-exec): The following packages have unmet dependencies: null_resource.configure-cat-app (remote-exec): apache2 : Depends: apache2-bin (= 2.4.29-1ubuntu4.14) but it is not going to be installed null_resource.configure-cat-app (remote-exec): Depends: apache2-utils (= 2.4.29-1ubuntu4.14) but it is not going to be installed null_resource.configure-cat-app (remote-exec): Recommends: ssl-cert but it is not installable null_resource.configure-cat-app (remote-exec): E: Unable to correct problems, you have held broken packages. null_resource.configure-cat-app (remote-exec): Failed to start apache2.service: Unit apache2.service notfound. null_resource.configure-cat-app (remote-exec): chown: cannot access '/var/www/html': No such file or directory null_resource.configure-cat-app (remote-exec): ./deploy_app.sh: line 5: /var/www/html/index.html: No such file or directory null_resource.configure-cat-app (remote-exec): Script complete