前一段时间使用apt-get install安装Jenkins 2.19,添加以下来源https://pkg.jenkins.io/debian/
/etc/apt/sources.list.d/jenkins.list中的源列表文件具有以下内容
deb http://pkg.jenkins.io/debian-stable binary/
apt-cache policy jenkins 的输出类似于
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 update ,我应该期望我的Jenkins版本为2.73.2,但事实并非如此,为什么不是?发生了什么事。
答案 0 :(得分:0)
首先运行 apt-get update ,然后运行 apt-get upgrade 。
希望有所帮助。