不可靠的安装/卸载 Puppet

不可靠的安装/卸载 Puppet

开始使用 Puppet,在 Ubuntu 上也没有太多改进。看来我在 Tahr 上安装/卸载 Puppet 时搞得一团糟。到目前为止,我的直觉是我错误地删除了它,现在我的重新安装没有按我认为应该的方式工作……有人能给我一些提示来找到我遗漏的东西吗?



尝试运行 Puppet
phil@phil-HP-xw8600-Workstation:~$ puppet The program 'puppet' is currently not installed. You can install it by typing: sudo apt-get install puppet-common

我已经安装好了 -

phil@phil-HP-xw8600-Workstation:~$ sudo apt-get install puppet-common [sudo] password for phil: Reading package lists... Done Building dependency tree
Reading state information... Done puppet-common is already the newest version. 0 to upgrade, 0 to newly install, 0 to remove and 40 not to upgrade.

哪里


我尝试通过删除我能看到的文件来手动卸载 Puppet。事情是这样的,它最初会出现在很多地方,但现在只出现在几个地方:



whereis puppet /etc/puppet /usr/bin/puppet /usr/local/bin/puppet /usr/share/puppet /usr/share/man/man8/puppet.8.gz /usr/bin/X11/puppet



phil@phil-HP-xw8600-Workstation:~$ whereis puppet puppet: /usr/share/man/man8/puppet.8.gz


还做了:

  • apt-get --purge remove puppet[清除] 安装,重新安装(见上文)
  • 通过软件中心安装

尝试在完成所有这些操作后清除安装:
phil@phil-HP-xw8600-Workstation:~$ sudo apt-get --purge remove puppet [sudo] password for phil: Reading package lists... Done Building dependency tree
Reading state information... Done Package 'puppet' is not installed, so not removed 0 to upgrade, 0 to newly install, 0 to remove and 40 not to upgrade.

答案1

确切的原因可能略有不同,但也许我只是错过了 puppet 的 ruby​​ gem(puppet 似乎使用了相当多的 ruby​​(我对此了解不多)。我执行了以下命令:
gem install puppet


然后可以看到以下位置puppet

whereis ruby ruby: /usr/bin/ruby /usr/lib/ruby /usr/bin/X11/ruby /usr/share/man/man1/ruby.1.gz


出现这种情况后,puppet从终端进行调用会出现不同的情况:
phil@phil-HP-xw8600-Workstation:~$ puppet See 'puppet help' for help on available puppet subcommands

相关内容