Ubuntu 12.04 LTS 服务器木偶 3.1.1
根据 puppet 文档,安装 puppet 的最佳方法是设置一个包。
http://docs.puppetlabs.com/guides/puppetlabs_package_repositories.html#for-debian-and-ubuntu
因此对于 ubuntu 12.04,您将运行以下命令:
$ wget http://apt.puppetlabs.com/puppetlabs-release-precise.deb
$ sudo dpkg -i puppetlabs-release-precise.deb
$ sudo apt-get update
我不明白为什么即使在运行这些命令并进行 apt-get upgrade 之后,puppet 仍然是 3.1.1 版本(而不是更新的 3.3.x)。
我几乎完全使用 CentOS 服务器,而且我对 Debian 不是很熟悉。
查看http://apt.puppetlabs.com/pool/precise/main/p/的内容显示 .deb 文件最后一次更新是在 2013 年 9 月 12 日,这应该意味着该文件是最新的。[] puppet_3.3.0-1puppetlabs1_all.deb 2013 年 9 月 12 日 16:37 9.4K
- 如何判断我是否安装了最新的 ppa?
- 在不从源代码编译的情况下安装最新版本的 puppet 的正确方法是什么?
更新 我忘了提,我已经运行了 apt-get upgrade
root@gitlab:/tmp# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages have been kept back:
linux-headers-generic-lts-quantal linux-image-generic-lts-quantal
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
root@gitlab:/tmp# apt-get upgrade puppet
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages have been kept back:
linux-headers-generic-lts-quantal linux-image-generic-lts-quantal
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
更新2
木偶 3.1.1。最初是作为我正在运行的 vagrant box 的一部分安装的
root@gitlab:~# cat /etc/apt/sources.list.d/puppetlabs.list
# Puppetlabs products
deb http://apt.puppetlabs.com precise main
deb-src http://apt.puppetlabs.com precise main
# Puppetlabs dependencies
deb http://apt.puppetlabs.com precise dependencies
deb-src http://apt.puppetlabs.com precise dependencies
root@gitlab:~# puppet --version
3.1.1
更新3
root@gitlab:~# apt-cache policy puppet
puppet:
Installed: (none)
Candidate: 3.3.0-1puppetlabs1
Version table:
3.3.0-1puppetlabs1 0
500 http://apt.puppetlabs.com/ precise/main amd64 Packages
3.2.4-1puppetlabs1 0
500 http://apt.puppetlabs.com/ precise/main amd64 Packages
3.2.3-1puppetlabs1 0
500 http://apt.puppetlabs.com/ precise/main amd64 Packages
3.2.2-1puppetlabs1 0
500 http://apt.puppetlabs.com/ precise/main amd64 Packages
3.2.1-1puppetlabs1 0
500 http://apt.puppetlabs.com/ precise/main amd64 Packages
3.1.1-1puppetlabs1 0
500 http://apt.puppetlabs.com/ precise/main amd64 Packages
.... truncated for readability
500 http://apt.puppetlabs.com/ precise/main amd64 Packages
2.7.11-1ubuntu2.4 0
500 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main amd64 Packages
500 http://security.ubuntu.com/ubuntu/ precise-security/main amd64 Packages
2.7.11-1ubuntu2 0
500 http://us.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
2.7.11-1puppetlabs1 0
500 http://apt.puppetlabs.com/ precise/main amd64 Packages
2.6.18-1puppetlabs1 0
500 http://apt.puppetlabs.com/ precise/main amd64 Packages
2.6.14-1puppetlabs1 0
500 http://apt.puppetlabs.com/ precise/main amd64 Packages
root@gitlab:~# puppet --version
3.1.1
有趣的..
这表示您当前版本的 Puppet 根本没有安装 via
apt
。也许它是通过 Vagrant 配置以其他方式设置的?apt-get install puppet
应该放置当前版本,但它可能与安装的版本冲突,具体取决于它的来源。apt-get update
不等同于yum update
您习惯的;您绝对应该阅读重要系统工具的手册页。apt-get update
在基于 Debian 的系统上更新软件包元数据的索引,但不会以任何方式触及系统上安装的任何软件包。您要查找的命令是apt-get upgrade
.您可以通过运行以下命令查看已配置存储库中的所有可用版本: