d2iq-archive / marathon

Deploy and manage containers (including Docker) on top of Apache Mesos at scale.
https://mesosphere.github.io/marathon/
Apache License 2.0
4.07k stars 843 forks source link

Issue with ubuntu package 1.3.0-1.0.499.ubuntu1404 #4221

Closed philwinder closed 8 years ago

philwinder commented 8 years ago

I am unable to use the latests ubuntu package because of a binary extraction error.

To recreate, obtain a clean 14.04 Ubuntu and:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv E56151BF
. /etc/lsb-release
DISTRO=$(echo $DISTRIB_ID | tr '[:upper:]' '[:lower:]')
CODENAME=$(echo $DISTRIB_CODENAME)
# Add the repository
echo "deb http://repos.mesosphere.io/${DISTRO} ${CODENAME} main" | sudo tee /etc/apt/sources.list.d/mesosphere.list
echo "deb http://repos.mesosphere.io/${DISTRO} ${CODENAME}-testing main" | sudo tee -a /etc/apt/sources.list.d/mesosphere.list
sudo add-apt-repository -y ppa:openjdk-r/ppa
sudo apt-get -y update
# Install
sudo apt-get -y install openjdk-8-jre
sudo update-alternatives --config java
# Install mesos and marathon
sudo apt-get -y install mesos=1.0.0-2.0.89.ubuntu1404 marathon=1.3.0-1.0.499.ubuntu1404

The error:

aws_instance.mesos-master (remote-exec): Unpacking marathon (1.3.0-1.0.499.ubuntu1404) ...
aws_instance.mesos-master (remote-exec): dpkg-deb (subprocess): cannot copy archive member from '/var/cache/apt/archives/marathon_1.3.0-1.0.499.ubuntu1404_amd64.deb' to decompressor pipe: unexpected end of file or stream
aws_instance.mesos-master (remote-exec): dpkg-deb: error: subprocess paste returned error exit status 2
aws_instance.mesos-master (remote-exec): dpkg: error processing archive /var/cache/apt/archives/marathon_1.3.0-1.0.499.ubuntu1404_amd64.deb (--unpack):
aws_instance.mesos-master (remote-exec):  cannot copy extracted data for './usr/bin/marathon' to '/usr/bin/marathon.dpkg-new': unexpected end of file or stream

As a workaround, revert to an older version of marathon. E.g. 1.2.0-1.0.491.ubuntu1404

aquamatthias commented 8 years ago

Our package system is broken for this last release. We are replacing the wrong packages. Please see #4182