Hi Sarjeet *Short answer* : Run rm -rf /usr/include/mesos/slave and the try to install mesos again and it should work
*Long answer *: I guess that Mesos 1.0.1 is the first post 1.0 mesos you have installed and you had a Mesos 0.2x installed before this. In Mesos 1.0 'slave' was renamed to 'agent' and hence the path /usr/include/mesos/slave was renamed to /usr/include/mesos/agent for backward compatibility Mesos 1.0 package creates a symlink /usr/include/mesos/slave to /usr/include/mesos/agent and this is the cause of the trouble because if you had older installation of mesos you already had a directory /usr/include/mesos/slave and when the postinstall of the RPM tires to do a symlink it fails because you cannot create a symlink with path same as an existing directory. Only way to get around this problem (which would only occur when upgrading your RPM from 0.2x to 1.0.x) is to delete /usr/include/mesos/slave before installing mesos 1.0.x. Greg did not run into this issue since I guess he tried to install package on a fresh Centos box which did not have an older Mesos installation Cheers Harpreet On Thu, Sep 8, 2016 at 1:02 PM, Greg Mann <[email protected]> wrote: > Hi Sarjeet, > Sorry for the delayed reply! I was just able to install Mesos 1.0.1 > successfully on CentOS 6.6 by doing the following: > > sudo rpm -Uvh http://repos.mesosphere.com/el/6/noarch/RPMS/mesosphere- > el-repo-6-0.noarch.rpm > sudo yum install mesos > > Note that this ends up installing a slightly newer artifact than the one > from your excerpt; hopefully the new artifact will solve the difficulties > you were experiencing. > > You could also download and install the RPM rather than pulling it from > the repository: https://open.mesosphere.com/downloads/mesos/ > > Cheers, > Greg > > On Fri, Sep 2, 2016 at 10:49 AM, sarjeet singh <[email protected]> > wrote: > >> I am getting this issue when installing mesos on Centos 6.6 node: >> >> [root@node1 ~]# yum install mesos >> Loaded plugins: fastestmirror, security >> Setting up Install Process >> Loading mirror speeds from cached hostfile >> * base: mirror.supremebytes.com >> * epel: linux.mirrors.es.net >> * extras: mirror.pac-12.org >> * updates: pubmirrors.dal.corespace.com >> Resolving Dependencies >> --> Running transaction check >> ---> Package mesos.x86_64 0:1.0.1-2.0.93.centos65 will be installed >> --> Finished Dependency Resolution >> >> Dependencies Resolved >> >> ============================================================ >> ============================================================ >> ====================================== >> Package Arch Version >> Repository >> Size >> ============================================================ >> ============================================================ >> ====================================== >> Installing: >> mesos x86_64 >> 1.0.1-2.0.93.centos65 mesosphere >> 3.8 M >> >> Transaction Summary >> ============================================================ >> ============================================================ >> ====================================== >> Install 1 Package(s) >> >> Total download size: 3.8 M >> Installed size: 142 M >> Is this ok [y/N]: y >> Downloading Packages: >> mesos-1.0.1-2.0.93.centos65.x86_64.rpm >> | 3.8 MB >> 00:00 >> Running rpm_check_debug >> Running Transaction Test >> Transaction Test Succeeded >> Running Transaction >> Installing : mesos-1.0.1-2.0.93.centos65.x86_64 >> >> 1/1 >> Error unpacking rpm package mesos-1.0.1-2.0.93.centos65.x86_64 >> warning: /etc/init/mesos-master.conf created as >> /etc/init/mesos-master.conf.rpmnew >> warning: /etc/init/mesos-slave.conf created as >> /etc/init/mesos-slave.conf.rpmnew >> error: unpacking of archive failed on file /usr/include/mesos/slave: cpio: >> rename >> Verifying : mesos-1.0.1-2.0.93.centos65.x86_64 >> >> 1/1 >> >> Failed: >> mesos.x86_64 0:1.0.1-2.0.93.centos65 >> >> ================== >> >> Is this a known issue? I haven't tried mesos recent version, but when >> trying to download latest version, I am hitting this issue. Any suggestion >> or workaround for this? >> >> - Sarjeet Singh >> > >

