Ansible-playbook error: Update APT Cache Step


#1

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


#2

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.


#3

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.


#4

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?


#5

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.