I don't think it's the add_security_repos.sh resource - I have removed the line referring to lucid repo as per the patch but still get the same error on deployment (restarted sahara, heat, memcached) - After the latest failure I logged into the worker node to look at the script in /tmp here again is the error: RemoteCommandException: Error during command execution: "sudo -u root /tmp/8feafa4a-c2f6-4306-93c4-1f6cfb5dfd0a.sh Ubuntu" Return code: 100 STDERR: W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/lucid-security/main/binary-amd64/Packages 404 Not Found here is my add_security_repo.sh #!/bin/sh cat >> /etc/apt/sources.list.d/security_repo.list <<- EOF deb http://security.ubuntu.com/ubuntu precise-security main EOF apt-get update and here is the script in the /tmp directory ubuntu@mapper-mapr-500mr2-default-worker-1:/tmp$ ls 8feafa4a-c2f6-4306-93c4-1f6cfb5dfd0a.sh ubuntu@mapper-mapr-500mr2-default-worker-1:/tmp$ cat 8feafa4a-c2f6-4306-93c4-1f6cfb5dfd0a.sh #!/bin/sh if [ "$1" = "Ubuntu" ]; then sudo apt-get update cat >> /etc/apt/sources.list.d/maprtech.list <<- EOF deb http://package.mapr.com/releases/v5.1.0/ubuntu/ mapr optional deb http://package.mapr.com/releases/ecosystem-5.x/ubuntu binary/ EOF sudo apt-get install -y --force-yes wget wget -O - http://package.mapr.com/releases/pub/maprgpg.key | \ sudo apt-key add - sudo apt-get update elif [ "$1" = 'CentOS' -o "$1" = 'RedHatEnterpriseServer' ]; then cat >> /etc/yum.repos.d/maprtech.repo <<- EOF [maprtech] name=MapR Technologies baseurl=http://package.mapr.com/releases/v5.1.0/redhat/ enabled=1 gpgcheck=0 protect=1 [maprecosystem] name=MapR Technologies baseurl=http://package.mapr.com/releases/ecosystem-5.x/redhat enabled=1 gpgcheck=0 protect=1 EOF rpm --import http://package.mapr.com/releases/pub/maprgpg.key yum install -y wget release=`cat /etc/*-release` if [[ $release =~ 6\.[0-9] ]]; then rpm -q epel-release-6-8 || \ rpm -i http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm elif [[ $release =~ 7\.[0-9] ]]; then rpm -q epel-release-7-5 || \ rpm -i http://download.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm else echo "Unsupported distribution version" exit 1 fi else echo "Unknown distribution" exit 1 fi ----------------- If I run the script I get this: ./8feafa4a-c2f6-4306-93c4-1f6cfb5dfd0a.sh Ubuntu Ign file: binary/ InRelease Ign file: binary/ InRelease Ign file: binary/ Release.gpg Ign file: binary/ Release.gpg Ign file: binary/ Release Ign file: binary/ Release Get:1 http://security.ubuntu.com trusty-security InRelease [65.9 kB] Get:2 http://security.ubuntu.com precise-security InRelease [55.7 kB] Ign http://security.ubuntu.com lucid-security InRelease Hit http://package.mapr.com mapr InRelease Ign http://package.mapr.com binary/ InRelease Hit http://package.mapr.com mapr/optional amd64 Packages Get:3 http://security.ubuntu.com trusty-security/main Sources [122 kB] Ign http://package.mapr.com binary/ Release.gpg Ign http://package.mapr.com binary/ Release Ign http://package.mapr.com binary/ Packages/DiffIndex Hit http://package.mapr.com binary/ Packages Get:4 http://security.ubuntu.com trusty-security/universe Sources [45.8 kB] Ign http://nova.clouds.archive.ubuntu.com trusty InRelease Hit http://nova.clouds.archive.ubuntu.com trusty-updates InRelease Get:5 http://security.ubuntu.com trusty-security/main amd64 Packages [556 kB] Get:6 http://security.ubuntu.com trusty-security/universe amd64 Packages [144 kB] Hit http://nova.clouds.archive.ubuntu.com trusty-backports InRelease Hit http://nova.clouds.archive.ubuntu.com trusty Release.gpg Hit http://nova.clouds.archive.ubuntu.com trusty-updates/main Sources Get:7 http://security.ubuntu.com precise-security/main amd64 Packages [649 kB] Ign http://security.ubuntu.com lucid-security Release.gpg Ign http://security.ubuntu.com lucid-security Release Ign http://security.ubuntu.com lucid-security/main amd64 Packages/DiffIndex Err http://security.ubuntu.com lucid-security/main amd64 Packages Hit http://nova.clouds.archive.ubuntu.com trusty-updates/restricted Sources Err http://security.ubuntu.com lucid-security/main amd64 Packages Err http://security.ubuntu.com lucid-security/main amd64 Packages Err http://security.ubuntu.com lucid-security/main amd64 Packages Err http://security.ubuntu.com lucid-security/main amd64 Packages 404 Not Found [IP: 91.189.88.152 80] Hit http://nova.clouds.archive.ubuntu.com trusty-updates/universe Sources Hit http://nova.clouds.archive.ubuntu.com trusty-updates/multiverse Sources Hit http://nova.clouds.archive.ubuntu.com trusty-updates/main amd64 Packages Hit http://nova.clouds.archive.ubuntu.com trusty-updates/restricted amd64 Packages Hit http://nova.clouds.archive.ubuntu.com trusty-updates/universe amd64 Packages Hit http://nova.clouds.archive.ubuntu.com trusty-updates/multiverse amd64 Packages Hit http://nova.clouds.archive.ubuntu.com trusty-backports/main Sources Hit http://nova.clouds.archive.ubuntu.com trusty-backports/restricted Sources Hit http://nova.clouds.archive.ubuntu.com trusty-backports/universe Sources Hit http://nova.clouds.archive.ubuntu.com trusty-backports/multiverse Sources Hit http://nova.clouds.archive.ubuntu.com trusty-backports/main amd64 Packages Hit http://nova.clouds.archive.ubuntu.com trusty-backports/restricted amd64 Packages Hit http://nova.clouds.archive.ubuntu.com trusty-backports/universe amd64 Packages Hit http://nova.clouds.archive.ubuntu.com trusty-backports/multiverse amd64 Packages Hit http://nova.clouds.archive.ubuntu.com trusty Release Hit http://nova.clouds.archive.ubuntu.com trusty/main Sources Hit http://nova.clouds.archive.ubuntu.com trusty/restricted Sources Hit http://nova.clouds.archive.ubuntu.com trusty/universe Sources Hit http://nova.clouds.archive.ubuntu.com trusty/multiverse Sources Hit http://nova.clouds.archive.ubuntu.com trusty/main amd64 Packages Hit http://nova.clouds.archive.ubuntu.com trusty/restricted amd64 Packages Hit http://nova.clouds.archive.ubuntu.com trusty/universe amd64 Packages Hit http://nova.clouds.archive.ubuntu.com trusty/multiverse amd64 Packages Fetched 1,638 kB in 3s (510 kB/s) W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/lucid-security/main/binary-amd64/Packages 404 Not Found [IP: 91.189.88.152 80] E: Some index files failed to download. They have been ignored, or old ones used instead. Reading package lists... Done Building dependency tree Reading state information... Done wget is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 145 not upgraded. W: Duplicate sources.list entry http://package.mapr.com/releases/v5.1.0/ubuntu/ mapr/optional amd64 Packages (/var/lib/apt/lists/package.mapr.com_releases_v5.1.0_ubuntu_dists_mapr_optional_binary-amd64_Packages) W: Duplicate sources.list entry http://package.mapr.com/releases/ecosystem-5.x/ubuntu/ binary/ Packages (/var/lib/apt/lists/package.mapr.com_releases_ecosystem-5.x_ubuntu_binary_Packages) W: You may want to run apt-get update to correct these problems --2016-11-24 16:51:00-- http://package.mapr.com/releases/pub/maprgpg.key Resolving package.mapr.com (package.mapr.com)... 54.192.28.120, 54.192.28.198, 54.192.28.161, ... Connecting to package.mapr.com (package.mapr.com)|54.192.28.120|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 1033 (1.0K) [application/pgp-keys] Saving to: ‘STDOUT’ 100%[===================================================================================================================================================================================================>] 1,033 --.-K/s in 0s 2016-11-24 16:51:00 (311 MB/s) - written to stdout [1033/1033] OK Ign file: binary/ InRelease Ign file: binary/ InRelease Ign file: binary/ Release.gpg Ign file: binary/ Release.gpg Ign file: binary/ Release Ign file: binary/ Release Hit http://security.ubuntu.com trusty-security InRelease Hit http://security.ubuntu.com precise-security InRelease Ign http://security.ubuntu.com lucid-security InRelease Hit http://package.mapr.com mapr InRelease Ign http://nova.clouds.archive.ubuntu.com trusty InRelease Ign http://package.mapr.com binary/ InRelease Hit http://package.mapr.com mapr/optional amd64 Packages Hit http://security.ubuntu.com trusty-security/main Sources Ign http://package.mapr.com binary/ Release.gpg Ign http://package.mapr.com binary/ Release Ign http://package.mapr.com binary/ Packages/DiffIndex Hit http://package.mapr.com binary/ Packages Hit http://security.ubuntu.com trusty-security/universe Sources Hit http://security.ubuntu.com trusty-security/main amd64 Packages Hit http://security.ubuntu.com trusty-security/universe amd64 Packages Hit http://security.ubuntu.com precise-security/main amd64 Packages Ign http://security.ubuntu.com lucid-security Release.gpg Get:1 http://nova.clouds.archive.ubuntu.com trusty-updates InRelease [65.9 kB] Ign http://security.ubuntu.com lucid-security Release Hit http://nova.clouds.archive.ubuntu.com trusty-backports InRelease Ign http://security.ubuntu.com lucid-security/main amd64 Packages/DiffIndex Err http://security.ubuntu.com lucid-security/main amd64 Packages Hit http://nova.clouds.archive.ubuntu.com trusty Release.gpg Err http://security.ubuntu.com lucid-security/main amd64 Packages Err http://security.ubuntu.com lucid-security/main amd64 Packages Err http://security.ubuntu.com lucid-security/main amd64 Packages Err http://security.ubuntu.com lucid-security/main amd64 Packages 404 Not Found [IP: 91.189.88.162 80] Get:2 http://nova.clouds.archive.ubuntu.com trusty-updates/main Sources [385 kB] Get:3 http://nova.clouds.archive.ubuntu.com trusty-updates/restricted Sources [5,888 B] Get:4 http://nova.clouds.archive.ubuntu.com trusty-updates/universe Sources [169 kB] Get:5 http://nova.clouds.archive.ubuntu.com trusty-updates/multiverse Sources [7,522 B] Get:6 http://nova.clouds.archive.ubuntu.com trusty-updates/main amd64 Packages [919 kB] Get:7 http://nova.clouds.archive.ubuntu.com trusty-updates/restricted amd64 Packages [16.4 kB] Get:8 http://nova.clouds.archive.ubuntu.com trusty-updates/universe amd64 Packages [388 kB] Get:9 http://nova.clouds.archive.ubuntu.com trusty-updates/multiverse amd64 Packages [14.0 kB] Hit http://nova.clouds.archive.ubuntu.com trusty-backports/main Sources Hit http://nova.clouds.archive.ubuntu.com trusty-backports/restricted Sources Hit http://nova.clouds.archive.ubuntu.com trusty-backports/universe Sources Hit http://nova.clouds.archive.ubuntu.com trusty-backports/multiverse Sources Hit http://nova.clouds.archive.ubuntu.com trusty-backports/main amd64 Packages Hit http://nova.clouds.archive.ubuntu.com trusty-backports/restricted amd64 Packages Hit http://nova.clouds.archive.ubuntu.com trusty-backports/universe amd64 Packages Hit http://nova.clouds.archive.ubuntu.com trusty-backports/multiverse amd64 Packages Hit http://nova.clouds.archive.ubuntu.com trusty Release Hit http://nova.clouds.archive.ubuntu.com trusty/main Sources Hit http://nova.clouds.archive.ubuntu.com trusty/restricted Sources Hit http://nova.clouds.archive.ubuntu.com trusty/universe Sources Hit http://nova.clouds.archive.ubuntu.com trusty/multiverse Sources Hit http://nova.clouds.archive.ubuntu.com trusty/main amd64 Packages Hit http://nova.clouds.archive.ubuntu.com trusty/restricted amd64 Packages Hit http://nova.clouds.archive.ubuntu.com trusty/universe amd64 Packages Hit http://nova.clouds.archive.ubuntu.com trusty/multiverse amd64 Packages Fetched 1,971 kB in 2s (824 kB/s) W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/lucid-security/main/binary-amd64/Packages 404 Not Found [IP: 91.189.88.162 80] E: Some index files failed to download. They have been ignored, or old ones used instead. ubuntu@mapper-mapr-500mr2-default-worker-1:/tmp$ ------------------------------- ubuntu@mapper-mapr-500mr2-default-worker-1:/tmp$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 14.04.4 LTS Release: 14.04 Codename: trusty