2017-10-18 114 views
-1

安装詹金斯2.19前一段时间使用apt-get的通过将以下来源/etc/apt/sources.list.d/jenkins https://pkg.jenkins.io/debian/无法使用,以获得最新更新apt-get的更新

源列表文件安装.LIST有以下内容

deb http://pkg.jenkins.io/debian-stable binary/ 

的apt-缓存策略詹金斯输出类似

Installed: 2.19.3 
    Candidate: 2.73.2 
    Version table: 
    2.73.2 0 
     500 http://pkg.jenkins.io/debian-stable/ binary/ Packages 
    2.73.1 0 
     500 http://pkg.jenkins.io/debian-stable/ binary/ Packages 
    2.60.3 0 
     500 http://pkg.jenkins.io/debian-stable/ binary/ Packages 
     500 http://pkg.jenkins.io/debian-stable/ binary/ Packages 
    2.60.2 0 
     500 http://pkg.jenkins.io/debian-stable/ binary/ Packages 
    2.60.1-1 0 
     500 http://pkg.jenkins.io/debian-stable/ binary/ Packages 
    2.60.1 0 
     500 http://pkg.jenkins.io/debian-stable/ binary/ Packages 
    2.46.2 0 
     500 http://pkg.jenkins.io/debian-stable/ binary/ Packages 
    2.46.1 0 
     500 http://pkg.jenkins.io/debian-stable/ binary/ Packages 
    2.32.3 0 
     500 http://pkg.jenkins.io/debian-stable/ binary/ Packages 
    2.32.2 0 
     500 http://pkg.jenkins.io/debian-stable/ binary/ Packages 
    2.32.1 0 
     500 http://pkg.jenkins.io/debian-stable/ binary/ Packages 
    2.19.4 0 
     500 http://pkg.jenkins.io/debian-stable/ binary/ Packages 
*** 2.19.3 0 
     100 /var/lib/dpkg/status 

这意味着有更多的更新版本安装,所以如果我做一个apt-get更新我应该期望我的詹金斯版本是2.73.2,但它不是,为什么不会发生这种情况。

+1

Stack Overflow是编程和开发问题的网站。这个问题似乎与题目无关,因为它不涉及编程或开发。请参阅帮助中心的[我可以询问哪些主题](http://stackoverflow.com/help/on-topic)。也许[超级用户](http://superuser.com/)或[Unix&Linux堆栈交换](http://unix.stackexchange.com/)会是一个更好的地方。 – jww

回答

0

首次运行apt-get update,然后运行apt-get upgrade

  • apt-get的更新与所有可用的软件包及其版本的列表更新您的包管理器,但它并没有安装或升级包。
  • apt-get upgrade实际上安装了较新的版本。更新列表后,您的软件包管理员知道可用更新,然后可以升级。

希望有帮助。