Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install deadsnakes team new Python Versions PPA fails #154

Open
banagale opened this issue Jun 24, 2020 · 1 comment
Open

Install deadsnakes team new Python Versions PPA fails #154

banagale opened this issue Jun 24, 2020 · 1 comment

Comments

@banagale
Copy link

When running vagrant up

TASK [web : Add deadsnakes team New Python Versions PPA to the apt sources list] ***
task path: .../ansible-django-stack/roles/web/tasks/install_additional_packages.yml:3
fatal: [my-cool-app.local]: FAILED! => {"changed": false, "msg": "apt cache update failed"}

PLAY RECAP *********************************************************************
my-cool-app.local          : ok=24   changed=0    unreachable=0    failed=1    skipped=6    rescued=0    ignored=0

Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.

This appears to be a longstanding bug in apt related to caching. Similar issue mentioned with #114.

That said I tried some workarounds and was not able to get past this error.

@banagale
Copy link
Author

banagale commented Jun 24, 2020

I was able to resolve this by:

Going into the machine:
vagrant ssh
Then manually installing deadsnakes:

sudo apt-get update
sudo apt-get upgrade
sudo add-apt-repository ppa:deadsnakes/ppa
exit

and then re-running the setup:

vagrant provision

I noticed there was a prompt to hit enter during the the install of deadsnakes. Not sure if this caused the error for ansible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant