allure-framework / allure-debian

Debian (Ubuntu) package configuration for Allure Framework parts
7 stars 8 forks source link

Failed installation on Ubuntu 17.10 #7

Open kulla opened 6 years ago

kulla commented 6 years ago

I tried to follow the installation process mentioned at https://docs.qameta.io/allure/#_installing_a_commandline with the commands

sudo apt-add-repository ppa:qameta/allure
sudo apt-get update 
sudo apt-get install allure

However, after sudo apt-get update I get the following error:

....
Err:6 http://ppa.launchpad.net/qameta/allure/ubuntu artful Release                                                                                                                             
     404  Not Found
....
Reading package lists... Done                     
 E: The repository 'http://ppa.launchpad.net/qameta/allure/ubuntu artful Release' does not have a Release file.
 N: Updating from such a repository can't be done securely, and is therefore disabled by default.
 N: See apt-secure(8) manpage for repository creation and user configuration details.

Thus, I cannot install allure at Ubuntu 17.10.

kulla commented 6 years ago

I just see, that allure is only available on the LTS versions of Ubuntu. Is this intentional?

aligin commented 6 years ago

The same with Debian Stretch.

d-kay23 commented 6 years ago

They don't support unstable ubuntu versions, but you can workaround this if you don't care, just change line in repo lists: sudo vim /etc/apt/sources.list.d/qameta-ubuntu-allure-artful.list instead of: deb http://ppa.launchpad.net/qameta/allure/ubuntu artful main paste: deb http://ppa.launchpad.net/qameta/allure/ubuntu xenial main

aligin commented 6 years ago

Eventually I installed it manually by command (its docker)

RUN apt-get update && apt-get install -y default-jre

RUN curl -o allure-2.6.0.tgz -Ls https://dl.bintray.com/qameta/generic/io/qameta/allure/allure/2.6.0/allure-2.6.0.tgz && tar -zxvf allure-2.6.0.tgz -C /opt/ && ln -s /opt/allure-2.6.0/bin/allure /usr/bin/allure && allure --version

jyotsanam commented 5 years ago

Unable to resolve this issue. Tried workaround suggested: the file is empty and second command did not run on my terminal. Please help.

dudziakm commented 5 years ago

Eventually I installed it manually by command (its docker)

RUN apt-get update && apt-get install -y default-jre

RUN curl -o allure-2.6.0.tgz -Ls https://dl.bintray.com/qameta/generic/io/qameta/allure/allure/2.6.0/allure-2.6.0.tgz && tar -zxvf allure-2.6.0.tgz -C /opt/ && ln -s /opt/allure-2.6.0/bin/allure /usr/bin/allure && allure --version

wow, perfect! Thank you! working so good :)

I am trying to do the same thing for the newer version but it is not so easy ;)

The following command installs Allure but now I am struggling with adding allure to PATH.

RUN curl -o allure-commandline-2.12.0.tgz -Ls http://repo.maven.apache.org/maven2/io/qameta/allure/allure-commandline/2.12.0/allure-commandline-2.12.0.tgz && \ tar -zxvf allure-commandline-2.12.0.tgz -C /opt/ && ln -s /opt/allure-commandline-2.12.0/bin/allure /usr/bin/allure

dudziakm commented 5 years ago

I made something like that:

RUN curl -o allure-commandline-2.12.0.tgz -Ls http://repo.maven.apache.org/maven2/io/qameta/allure/allure-commandline/2.12.0/allure-commandline-2.12.0.tgz && \ tar -zxvf allure-commandline-2.12.0.tgz -C /opt/ && ln -s /opt/allure-commandline-2.12.0/bin/allure /usr/bin/allure

ENV PATH="$PATH:/opt/allure-2.12.0/bin"

RUN allure --version

Works perfectly :)

snez commented 3 years ago

The following worked for me on Debian 10

RUN apt update && \
    mkdir -p /usr/share/man/man1 && \
    apt install -y default-jre && \
    dpkg --configure -a
RUN curl -o allure-2.7.0.tgz -Ls https://dl.bintray.com/qameta/generic/io/qameta/allure/allure/2.7.0/allure-2.7.0.tgz && \
    tar -zxvf allure-2.7.0.tgz -C /opt/ && \
    ln -s /opt/allure-2.7.0/bin/allure /usr/bin/allure && \
    allure --version
exustash commented 3 years ago

The following worked for me on Debian 10

RUN apt update && \
    mkdir -p /usr/share/man/man1 && \
    apt install -y default-jre && \
    dpkg --configure -a
RUN curl -o allure-2.7.0.tgz -Ls https://dl.bintray.com/qameta/generic/io/qameta/allure/allure/2.7.0/allure-2.7.0.tgz && \
    tar -zxvf allure-2.7.0.tgz -C /opt/ && \
    ln -s /opt/allure-2.7.0/bin/allure /usr/bin/allure && \
    allure --version

I get this error message

tar: Error opening archive: Unrecognized archive format on debian buster

dy21335 commented 3 years ago

Eventually I installed it manually by command (its docker) RUN apt-get update && apt-get install -y default-jre RUN curl -o allure-2.6.0.tgz -Ls https://dl.bintray.com/qameta/generic/io/qameta/allure/allure/2.6.0/allure-2.6.0.tgz && tar -zxvf allure-2.6.0.tgz -C /opt/ && ln -s /opt/allure-2.6.0/bin/allure /usr/bin/allure && allure --version

wow, perfect! Thank you! working so good :)

I am trying to do the same thing for the newer version but it is not so easy ;)

The following command installs Allure but now I am struggling with adding allure to PATH.

RUN curl -o allure-commandline-2.12.0.tgz -Ls http://repo.maven.apache.org/maven2/io/qameta/allure/allure-commandline/2.12.0/allure-commandline-2.12.0.tgz && \ tar -zxvf allure-commandline-2.12.0.tgz -C /opt/ && ln -s /opt/allure-commandline-2.12.0/bin/allure /usr/bin/allure

thanks a lot. besides,i have to change http://repo.maven..... into https://repo.maven..... for Allure

trishAme commented 2 years ago

I made something like that:

RUN curl -o allure-commandline-2.12.0.tgz -Ls http://repo.maven.apache.org/maven2/io/qameta/allure/allure-commandline/2.12.0/allure-commandline-2.12.0.tgz && \ tar -zxvf allure-commandline-2.12.0.tgz -C /opt/ && ln -s /opt/allure-commandline-2.12.0/bin/allure /usr/bin/allure

ENV PATH="$PATH:/opt/allure-2.12.0/bin"

RUN allure --version

Works perfectly :) thanks a lot! It helps me with Ubuntu 20.04 and Allure 2.19 but extracting to /opt works only with sudo and looks like \ in && \ tar is is redundant.