Ansible-playbook error: Update APT Cache Step

Hello,

After our unsuccessful Ubuntu installation, we did another one :slight_smile: Actually, we followed wiki-Satnogs Client Setup. However, another error has appeared. I think it might be about source list or ansible installation. I am new on Linux, but I played with them so much during installation. So that, I might be the reason of error. The error code is given below. It is on the ā€œUpdate APT Cacheā€ step. I hope our station can be online as soon as possible.

Thanks in advance.

**Terminal Lines**

asthku@asthku:~/satnogs-client-ansible$ ansible-playbook -i production/inventory -K site.yml
SUDO password:

PLAY [satnogs-setups] **********************************************************

TASK [Gathering Facts] *********************************************************
ok: [satnogs]

TASK [common : Check Ansible version] ******************************************
ok: [satnogs] => {
ā€œchangedā€: false,
ā€œmsgā€: ā€œAll assertions passedā€
}

TASK [common : Check distribution] *********************************************
ok: [satnogs] => {
ā€œchangedā€: false,
ā€œmsgā€: ā€œAll assertions passedā€
}

TASK [common : Update APT cache] ***********************************************
FAILED - RETRYING: Update APT cache (3 retries left).
FAILED - RETRYING: Update APT cache (2 retries left).
FAILED - RETRYING: Update APT cache (1 retries left).
fatal: [satnogs]: FAILED! => {ā€œattemptsā€: 3, ā€œchangedā€: false, ā€œcmdā€: ā€œapt-get updateā€, ā€œmsgā€: ā€œW: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/ansible-ubuntu-ansible-2_7-disco.list:5\nW: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/ansible-ubuntu-ansible-2_7-disco.list:5\nW: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/ansible-ubuntu-ansible-2_7-disco.list:5\nW: Target Translations (main/i18n/Translation-tr) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/ansible-ubuntu-ansible-2_7-disco.list:5\nW: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/ansible-ubuntu-ansible-2_7-disco.list:12\nW: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/ansible-ubuntu-ansible-2_7-disco.list:12\nW: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/ansible-ubuntu-ansible-2_7-disco.list:12\nW: Target Translations (main/i18n/Translation-tr) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/ansible-ubuntu-ansible-2_7-disco.list:12\nW: The repository ā€˜http://ppa.launchpad.net/myriadrf/gnuradio/ubuntu disco Releaseā€™ does not have a Release file.\nW: GPG error: http://ppa.launchpad.net/myriadrf/drivers/ubuntu trusty InRelease: The following signatures couldnā€™t be verified because the public key is not available: NO_PUBKEY 22C627172ECB91FE\nW: The repository ā€˜http://ppa.launchpad.net/myriadrf/drivers/ubuntu trusty InReleaseā€™ is not signed.\nE: Failed to fetch http://ppa.launchpad.net/myriadrf/gnuradio/ubuntu/dists/disco/main/binary-i386/Packages 404 Not Found\nE: Some index files failed to download. They have been ignored, or old ones used instead.\nW: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/ansible-ubuntu-ansible-2_7-disco.list:5\nW: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/ansible-ubuntu-ansible-2_7-disco.list:5\nW: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/ansible-ubuntu-ansible-2_7-disco.list:5\nW: Target Translations (main/i18n/Translation-tr) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/ansible-ubuntu-ansible-2_7-disco.list:5\nW: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/ansible-ubuntu-ansible-2_7-disco.list:12\nW: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/ansible-ubuntu-ansible-2_7-disco.list:12\nW: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/ansible-ubuntu-ansible-2_7-disco.list:12\nW: Target Translations (main/i18n/Translation-tr) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/ansible-ubuntu-ansible-2_7-disco.list:12ā€, ā€œrcā€: 100, ā€œstderrā€: ā€œW: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/ansible-ubuntu-ansible-2_7-disco.list:5\nW: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/ansible-ubuntu-ansible-2_7-disco.list:5\nW: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/ansible-ubuntu-ansible-2_7-disco.list:5\nW: Target Translations (main/i18n/Translation-tr) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/ansible-ubuntu-ansible-2_7-disco.list:5\nW: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/ansible-ubuntu-ansible-2_7-disco.list:12\nW: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/ansible-ubuntu-ansible-2_7-disco.list:12\nW: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/ansible-ubuntu-ansible-2_7-disco.list:12\nW: Target Translations (main/i18n/Translation-tr) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/ansible-ubuntu-ansible-2_7-disco.list:12\nW: The repository ā€˜http://ppa.launchpad.net/myriadrf/gnuradio/ubuntu disco Releaseā€™ does not have a Release file.\nW: GPG error: http://ppa.launchpad.net/myriadrf/drivers/ubuntu trusty InRelease: The following signatures couldnā€™t be verified because the public key is not available: NO_PUBKEY 22C627172ECB91FE\nW: The repository ā€˜http://ppa.launchpad.net/myriadrf/drivers/ubuntu trusty InReleaseā€™ is not signed.\nE: Failed to fetch http://ppa.launchpad.net/myriadrf/gnuradio/ubuntu/dists/disco/main/binary-i386/Packages 404 Not Found\nE: Some index files failed to download. They have been ignored, or old ones used instead.\nW: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/ansible-ubuntu-ansible-2_7-disco.list:5\nW: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/ansible-ubuntu-ansible-2_7-disco.list:5\nW: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/ansible-ubuntu-ansible-2_7-disco.list:5\nW: Target Translations (main/i18n/Translation-tr) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/ansible-ubuntu-ansible-2_7-disco.list:5\nW: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/ansible-ubuntu-ansible-2_7-disco.list:12\nW: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/ansible-ubuntu-ansible-2_7-disco.list:12\nW: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/ansible-ubuntu-ansible-2_7-disco.list:12\nW: Target Translations (main/i18n/Translation-tr) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/ansible-ubuntu-ansible-2_7-disco.list:12\nā€, ā€œstderr_linesā€: [ā€œW: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/ansible-ubuntu-ansible-2_7-disco.list:5ā€, ā€œW: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/ansible-ubuntu-ansible-2_7-disco.list:5ā€, ā€œW: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/ansible-ubuntu-ansible-2_7-disco.list:5ā€, ā€œW: Target Translations (main/i18n/Translation-tr) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/ansible-ubuntu-ansible-2_7-disco.list:5ā€, ā€œW: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/ansible-ubuntu-ansible-2_7-disco.list:12ā€, ā€œW: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/ansible-ubuntu-ansible-2_7-disco.list:12ā€, ā€œW: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/ansible-ubuntu-ansible-2_7-disco.list:12ā€, ā€œW: Target Translations (main/i18n/Translation-tr) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/ansible-ubuntu-ansible-2_7-disco.list:12ā€, ā€œW: The repository ā€˜http://ppa.launchpad.net/myriadrf/gnuradio/ubuntu disco Releaseā€™ does not have a Release file.ā€, ā€œW: GPG error: http://ppa.launchpad.net/myriadrf/drivers/ubuntu trusty InRelease: The following signatures couldnā€™t be verified because the public key is not available: NO_PUBKEY 22C627172ECB91FEā€, ā€œW: The repository ā€˜http://ppa.launchpad.net/myriadrf/drivers/ubuntu trusty InReleaseā€™ is not signed.ā€, ā€œE: Failed to fetch http://ppa.launchpad.net/myriadrf/gnuradio/ubuntu/dists/disco/main/binary-i386/Packages 404 Not Foundā€, ā€œE: Some index files failed to download. They have been ignored, or old ones used instead.ā€, ā€œW: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/ansible-ubuntu-ansible-2_7-disco.list:5ā€, ā€œW: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/ansible-ubuntu-ansible-2_7-disco.list:5ā€, ā€œW: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/ansible-ubuntu-ansible-2_7-disco.list:5ā€, ā€œW: Target Translations (main/i18n/Translation-tr) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/ansible-ubuntu-ansible-2_7-disco.list:5ā€, ā€œW: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/ansible-ubuntu-ansible-2_7-disco.list:12ā€, ā€œW: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/ansible-ubuntu-ansible-2_7-disco.list:12ā€, ā€œW: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/ansible-ubuntu-ansible-2_7-disco.list:12ā€, ā€œW: Target Translations (main/i18n/Translation-tr) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/ansible-ubuntu-ansible-2_7-disco.list:12ā€], ā€œstdoutā€: ā€œIgn:1 http://ftp.tr.debian.org/debian stretch InRelease\nHit:2 http://ppa.launchpad.net/ansible/ansible-2.7/ubuntu trusty InRelease\nHit:3 http://ftp.tr.debian.org/debian stretch-updates InRelease\nHit:4 http://ftp.tr.debian.org/debian stretch Release\nHit:5 http://security.debian.org/debian-security stretch/updates InRelease\nHit:6 http://ppa.launchpad.net/ansible/ansible/ubuntu trusty InRelease\nGet:7 http://ppa.launchpad.net/myriadrf/drivers/ubuntu trusty InRelease [15.9 kB]\nIgn:9 http://ppa.launchpad.net/myriadrf/gnuradio/ubuntu disco InRelease\nIgn:10 http://ppa.launchpad.net/myriadrf/gnuradio/ubuntu disco Release\nIgn:7 http://ppa.launchpad.net/myriadrf/drivers/ubuntu trusty InRelease\nIgn:11 http://ppa.launchpad.net/myriadrf/gnuradio/ubuntu disco/main all Packages\nIgn:12 http://ppa.launchpad.net/myriadrf/gnuradio/ubuntu disco/main i386 Packages\nIgn:13 http://ppa.launchpad.net/myriadrf/gnuradio/ubuntu disco/main Translation-tr\nIgn:14 http://ppa.launchpad.net/myriadrf/gnuradio/ubuntu disco/main Translation-en\nIgn:11 http://ppa.launchpad.net/myriadrf/gnuradio/ubuntu disco/main all Packages\nIgn:12 http://ppa.launchpad.net/myriadrf/gnuradio/ubuntu disco/main i386 Packages\nIgn:13 http://ppa.launchpad.net/myriadrf/gnuradio/ubuntu disco/main Translation-tr\nIgn:14 http://ppa.launchpad.net/myriadrf/gnuradio/ubuntu disco/main Translation-en\nIgn:11 http://ppa.launchpad.net/myriadrf/gnuradio/ubuntu disco/main all Packages\nIgn:12 http://ppa.launchpad.net/myriadrf/gnuradio/ubuntu disco/main i386 Packages\nIgn:13 http://ppa.launchpad.net/myriadrf/gnuradio/ubuntu disco/main Translation-tr\nIgn:14 http://ppa.launchpad.net/myriadrf/gnuradio/ubuntu disco/main Translation-en\nIgn:11 http://ppa.launchpad.net/myriadrf/gnuradio/ubuntu disco/main all Packages\nIgn:12 http://ppa.launchpad.net/myriadrf/gnuradio/ubuntu disco/main i386 Packages\nIgn:13 http://ppa.launchpad.net/myriadrf/gnuradio/ubuntu disco/main Translation-tr\nIgn:14 http://ppa.launchpad.net/myriadrf/gnuradio/ubuntu disco/main Translation-en\nIgn:11 http://ppa.launchpad.net/myriadrf/gnuradio/ubuntu disco/main all Packages\nIgn:12 http://ppa.launchpad.net/myriadrf/gnuradio/ubuntu disco/main i386 Packages\nIgn:13 http://ppa.launchpad.net/myriadrf/gnuradio/ubuntu disco/main Translation-tr\nIgn:14 http://ppa.launchpad.net/myriadrf/gnuradio/ubuntu disco/main Translation-en\nIgn:11 http://ppa.launchpad.net/myriadrf/gnuradio/ubuntu disco/main all Packages\nErr:12 http://ppa.launchpad.net/myriadrf/gnuradio/ubuntu disco/main i386 Packages\n 404 Not Found\nIgn:13 http://ppa.launchpad.net/myriadrf/gnuradio/ubuntu disco/main Translation-tr\nIgn:14 http://ppa.launchpad.net/myriadrf/gnuradio/ubuntu disco/main Translation-en\nFetched 15.9 kB in 4s (3883 B/s)\nReading package listsā€¦\nā€, ā€œstdout_linesā€: [ā€œIgn:1 http://ftp.tr.debian.org/debian stretch InReleaseā€, ā€œHit:2 http://ppa.launchpad.net/ansible/ansible-2.7/ubuntu trusty InReleaseā€, ā€œHit:3 http://ftp.tr.debian.org/debian stretch-updates InReleaseā€, ā€œHit:4 http://ftp.tr.debian.org/debian stretch Releaseā€, ā€œHit:5 http://security.debian.org/debian-security stretch/updates InReleaseā€, ā€œHit:6 http://ppa.launchpad.net/ansible/ansible/ubuntu trusty InReleaseā€, ā€œGet:7 http://ppa.launchpad.net/myriadrf/drivers/ubuntu trusty InRelease [15.9 kB]ā€, ā€œIgn:9 http://ppa.launchpad.net/myriadrf/gnuradio/ubuntu disco InReleaseā€, ā€œIgn:10 http://ppa.launchpad.net/myriadrf/gnuradio/ubuntu disco Releaseā€, ā€œIgn:7 http://ppa.launchpad.net/myriadrf/drivers/ubuntu trusty InReleaseā€, ā€œIgn:11 http://ppa.launchpad.net/myriadrf/gnuradio/ubuntu disco/main all Packagesā€, ā€œIgn:12 http://ppa.launchpad.net/myriadrf/gnuradio/ubuntu disco/main i386 Packagesā€, ā€œIgn:13 http://ppa.launchpad.net/myriadrf/gnuradio/ubuntu disco/main Translation-trā€, ā€œIgn:14 http://ppa.launchpad.net/myriadrf/gnuradio/ubuntu disco/main Translation-enā€, ā€œIgn:11 http://ppa.launchpad.net/myriadrf/gnuradio/ubuntu disco/main all Packagesā€, ā€œIgn:12 http://ppa.launchpad.net/myriadrf/gnuradio/ubuntu disco/main i386 Packagesā€, ā€œIgn:13 http://ppa.launchpad.net/myriadrf/gnuradio/ubuntu disco/main Translation-trā€, ā€œIgn:14 http://ppa.launchpad.net/myriadrf/gnuradio/ubuntu disco/main Translation-enā€, ā€œIgn:11 http://ppa.launchpad.net/myriadrf/gnuradio/ubuntu disco/main all Packagesā€, ā€œIgn:12 http://ppa.launchpad.net/myriadrf/gnuradio/ubuntu disco/main i386 Packagesā€, ā€œIgn:13 http://ppa.launchpad.net/myriadrf/gnuradio/ubuntu disco/main Translation-trā€, ā€œIgn:14 http://ppa.launchpad.net/myriadrf/gnuradio/ubuntu disco/main Translation-enā€, ā€œIgn:11 http://ppa.launchpad.net/myriadrf/gnuradio/ubuntu disco/main all Packagesā€, ā€œIgn:12 http://ppa.launchpad.net/myriadrf/gnuradio/ubuntu disco/main i386 Packagesā€, ā€œIgn:13 http://ppa.launchpad.net/myriadrf/gnuradio/ubuntu disco/main Translation-trā€, ā€œIgn:14 http://ppa.launchpad.net/myriadrf/gnuradio/ubuntu disco/main Translation-enā€, ā€œIgn:11 http://ppa.launchpad.net/myriadrf/gnuradio/ubuntu disco/main all Packagesā€, ā€œIgn:12 http://ppa.launchpad.net/myriadrf/gnuradio/ubuntu disco/main i386 Packagesā€, ā€œIgn:13 http://ppa.launchpad.net/myriadrf/gnuradio/ubuntu disco/main Translation-trā€, ā€œIgn:14 http://ppa.launchpad.net/myriadrf/gnuradio/ubuntu disco/main Translation-enā€, ā€œIgn:11 http://ppa.launchpad.net/myriadrf/gnuradio/ubuntu disco/main all Packagesā€, ā€œErr:12 http://ppa.launchpad.net/myriadrf/gnuradio/ubuntu disco/main i386 Packagesā€, " 404 Not Found", ā€œIgn:13 http://ppa.launchpad.net/myriadrf/gnuradio/ubuntu disco/main Translation-trā€, ā€œIgn:14 http://ppa.launchpad.net/myriadrf/gnuradio/ubuntu disco/main Translation-enā€, ā€œFetched 15.9 kB in 4s (3883 B/s)ā€, ā€œReading package listsā€¦ā€]}
to retry, use: --limit @/home/asthku/satnogs-client-ansible/site.retry

PLAY RECAP *********************************************************************
satnogs : ok=3 changed=0 unreachable=0 failed=1

Purge your current gnuradio setup, remove the ppa if you installed it like that and retry the ansible. Good Luck!

sudo apt purge gnuradio

Also, I am curious how you got the ā€˜check distributionā€™ task to pass. I am trying to install on ubuntu and that fails for me every time.

I followed your suggestion, but nothing changed. Actually, ppa command always works with below lines. I also tried some solutions from internet. They didnā€™t change anything.

**Ppa->OpenPGP Error**

asthku@asthku:~/satnogs-client-ansible$ sudo add-apt-repository -y ppa:ansible/ansible
gpg: keybox ā€˜/tmp/tmp2cw75c6s/pubring.gpgā€™ created
gpg: /tmp/tmp2cw75c6s/trustdb.gpg: trustdb created
gpg: key 93C4A3FD7BB9C367: public key ā€œLaunchpad PPA for Ansible, Inc.ā€ imported
gpg: Total number processed: 1
gpg: imported: 1
gpg: no valid OpenPGP data found.

For ā€œcheck distributionā€ I just install Debian, then I can pass that fail.

Alright, I think you might be using the wrong version of ansible. Can you now try to remove the ansible ppa and install it through apt on both the target and host?

I reinstalled it several times. Actualy, when I delete everything on the source.list.d file, it works. Now, I can reach the interface. Another different error occured, but is seems like solvable.

Thanks for your interest.