Algo: Install Failed: "No package matching 'wireguard' is available"

Created on 23 Jan 2020  路  7Comments  路  Source: trailofbits/algo

Describe the bug

Just followed installation instructions from GitHub README.md. Used AWS EC2, default region. Made 4 users.
Setup AWS access keys with Minimum IAM Permissions for deployment (cli only). Tried answering the config questions the way I wanted, failed as below.
Also tried just defaulting every question I could with default, same fail point.

To Reproduce

Steps to reproduce the behavior:

  1. follow install instructions in github
  2. put 4 users in config.cfg
  3. ./algo
  4. use defaults
  5. fail message as below

Expected behavior

Success!

Additional context

--> Please include the following block of text when reporting issues:

Algo running on: Mac OS X 10.15.2
Created from git clone. Last commit: 6ac2e2d Document using Google Cloud Shell (#1699)
Python 3.7.6
Runtime variables:
    algo_provider "ec2"
    algo_ondemand_cellular "False"
    algo_ondemand_wifi "False"
    algo_ondemand_wifi_exclude "X251bGw="
    algo_dns_adblocking "False"
    algo_ssh_tunneling "False"
    wireguard_enabled "True"
    dns_encryption "True"

TASK [Display the invocation environment] **********************************************************
changed: [localhost -> localhost]

Partial log

...

TASK [dns : dnscrypt-proxy configured] *************************************************************
changed: [34.195.114.3]
 [WARNING]: flush_handlers task does not support when conditional


RUNNING HANDLER [dns : restart dnscrypt-proxy] *****************************************************
changed: [34.195.114.3]

TASK [dns : dnscrypt-proxy enabled and started] ****************************************************
ok: [34.195.114.3]

TASK [wireguard : Ensure the required directories exist] *******************************************
changed: [34.195.114.3 -> localhost] => (item=configs/34.195.114.3/wireguard//.pki//preshared)
changed: [34.195.114.3 -> localhost] => (item=configs/34.195.114.3/wireguard//.pki//private)
changed: [34.195.114.3 -> localhost] => (item=configs/34.195.114.3/wireguard//.pki//public)
ok: [34.195.114.3 -> localhost] => (item=configs/34.195.114.3/wireguard/)
included: /Users/darth.vidar/proj/vpn/algo/roles/wireguard/tasks/ubuntu.yml for 34.195.114.3

TASK [wireguard : WireGuard repository configured] *************************************************
changed: [34.195.114.3]

TASK [wireguard : WireGuard installed] *************************************************************
fatal: [34.195.114.3]: FAILED! => {"changed": false, "msg": "No package matching 'wireguard' is available"}
included: /Users/darth.vidar/proj/vpn/algo/playbooks/rescue.yml for 34.195.114.3

TASK [debug] ***************************************************************************************
ok: [34.195.114.3] => {
    "fail_hint": [
        "Sorry, but something went wrong!",
        "Please check the troubleshooting guide.",
        "https://trailofbits.github.io/algo/troubleshooting.html"
    ]
}

TASK [Fail the installation] ***********************************************************************
fatal: [34.195.114.3]: FAILED! => {"changed": false, "msg": "Failed as requested from task"}

PLAY RECAP *****************************************************************************************
34.195.114.3               : ok=46   changed=25   unreachable=0    failed=1    skipped=7    rescued=1    ignored=0   
localhost                  : ok=46   changed=6    unreachable=0    failed=0    skipped=6    rescued=0    ignored=0
bug

Most helpful comment

In config.cfg, in the cloud_providers section under ec2, try changing name: "ubuntu-disco-19.04" to name: "ubuntu-eoan-19.10".

@jackivanov It looks like the WireGuard PPA has dropped the packages for 19.04.

All 7 comments

In config.cfg, in the cloud_providers section under ec2, try changing name: "ubuntu-disco-19.04" to name: "ubuntu-eoan-19.10".

@jackivanov It looks like the WireGuard PPA has dropped the packages for 19.04.

The fix for this in a digitalocean configuration is

going from

digitalocean:
size: s-1vcpu-1gb
image: "ubuntu-19-04-x64"

to

digitalocean:
size: s-1vcpu-1gb
image: "ubuntu-19-10-x64"

Anyone got a fix for a local install?

For a local install start with Ubuntu Server 18.04 or 19.10.

19.04 got EOL today, I'll send a PR

In config.cfg, in the cloud_providers section under ec2, try changing name: "ubuntu-disco-19.04" to name: "ubuntu-eoan-19.10".

@jackivanov It looks like the WireGuard PPA has dropped the packages for 19.04.

This did it. I had a few problems after, but it was a common one with a note on the Debugging FAQ. Just followed the tips from there (cleaned-up dirty CloudFormation stuff), and viola!

Thanks, @davidemyers! Glad this was a simple thing. :)

Thanks for the prompt fix on this. I was also hitting this on Azure. I guess yesterday was a bad time to run the script. ;)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Stanpol picture Stanpol  路  4Comments

dguido picture dguido  路  4Comments

andreimc picture andreimc  路  3Comments

baimafeima picture baimafeima  路  5Comments

dmwyatt picture dmwyatt  路  3Comments