首页 文章

如何安装Jenkins的旧版本?

提问于
浏览
10

我在Ubuntu 12.04上安装Jenkins 1.532-1.1,我需要使用 apt-get repo安装它 . 我运行了以下三个命令,安装最新的Jenkins就好了:

  • wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | apt-key add -

  • echo "deb http://pkg.jenkins-ci.org/debian binary/" >> /etc/apt/sources.list

  • apt-get update

但我需要安装此特定版本1.532-1.1(出于我无法控制的原因) . 我试过 apt-get install jenkins=1.532-1.1 ,这给了版本找不到错误 .

我已经看过这个链接http://pkg.jenkins-ci.org/debian/但是安装* .deb不是我的选择 .

知道如何使用apt-get安装jenkins 1.532-1.1吗?

2 回答

  • 2

    从你提到的版本1.532-1.1,我猜你真的想要使用LTS版本库(我只能看到1.532.1):http://pkg.jenkins-ci.org/debian-stable/

    但是gareht_bowles是正确的,它不再存在于apt存储库中 . 你可以通过检查

    apt-cache policy jenkins
    

    你应该继续使用deb文件 .

  • 7

    不使用此命令 apt-get install jenkins 安装jenkins特定版本 .

    解决方案:运行以下命令(例如1.652是您需要安装的jenkins版本)

    $ wget "http://pkg.jenkins-ci.org/debian/binary/jenkins_1.652_all.deb"  
    $ dpkg -i jenkins_1.652_all.deb
    

    During the installation dpkg fails with the following error:

    dpkg: error processing package jenkins (--install):
     dependency problems - leaving unconfigured
    Processing triggers for ureadahead (0.100.0-16) ...
    Errors were encountered while processing:
     jenkins
    

    Soultion: This will install the dependencies

    $ apt-get -y install -f
    

    包下载地点:http://pkg.jenkins-ci.org/debian/

相关问题