Skip to content

Conversation

@thearthur
Copy link

prevent this problem:

ExceptionInfo Error prevented completion of phase: Error executing script :
:cmd echo "Update package list for repository webupd8team-java-$(lsb_release -c -s)..."
{ echo "package-manager update ..."
{ aptitude update || true; } || { echo "package-manager update " failed; exit 1; } >&2
echo "...done"; } || { echo "Update package list for repository webupd8team-java-$(lsb_release -c -s)" failed; exit 1; } >&2
echo "...done"
echo "Accept Oracle license..."
{ echo oracle-java7-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections; } || { echo "Accept Oracle license" failed; exit 1; } >&2
echo "...done"
echo "Package source..."
{ aptitude install -q -y python-software-properties && aptitude show python-software-properties && add-apt-repository -y ppa:webupd8team/java; } || { echo "Package source" failed; exit 1; } >&2
echo "...done"
echo "Packages..."
{ { debconf-set-selections <<EOF
debconf debconf/frontend select noninteractive
debconf debconf/frontend seen false
EOF
} && aptitude install -q -y curl+ git+ maven+ && aptitude install -q -y --allow-untrusted oracle-java7-installer+ && aptitude search
"?and(?installed, ?name(^curl$))" | grep "curl" && aptitude search "?and(?installed, ?name(^git$))" | grep "git" && aptitude search "
?and(?installed, ?name(^oracle-java7-installer$))" | grep "oracle-java7-installer" && aptitude search "?and(?installed, ?name(^mave
n$))" | grep "maven"; } || { echo "Packages" failed; exit 1; } >&2
echo "...done"
echo "Directory $(getent passwd ubuntu | cut -d: -f6)/.ssh/..."
{ mkdir -m "755" -p $(getent passwd ubuntu | cut -d: -f6)/.ssh/ &amp;&amp; chown --recursive ubuntu $(getent passwd ubuntu | cut -d: -f6)/.ss
h/ && chmod 755 $(getent passwd ubuntu | cut -d: -f6)/.ssh/; } || { echo "Directory $(getent passwd ubuntu | cut -d: -f6)/.ssh/" fail
ed; exit 1; } >&2
echo "...done"

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

Successfully merging this pull request may close these issues.

1 participant