Cant install puppet enterprise on Linux

Márk Lakatos 0 Reputation points
2024-06-20T16:02:40.15+00:00

Hello!

I have a problem with installing Puppet Enterprise on Linux vms.

Every time i get this error message after starting the installation, i also tried it on different linuxes and this message still stays:

dpkg: error processing archive /opt/puppetlabs/server/data/packages/public/2021.7.8/puppet_enterprise/./puppet-agent_7.30.0-1focal_amd64.deb (--unpack):

trying to overwrite '/lib/systemd/system/puppet.service', which is also in package puppet 5.5.10-4ubuntu3

dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)

Errors were encountered while processing:

/opt/puppetlabs/server/data/packages/public/2021.7.8/puppet_enterprise/./puppet-agent_7.30.0-1focal_amd64.deb

E: Sub-process /usr/bin/dpkg returned an error code (1)

Thank you for the help in advance!

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,562 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. deherman-MSFT 35,556 Reputation points Microsoft Employee
    2024-06-20T16:52:27+00:00

    @Márk Lakatos

    Puppet is a third-party software and installation on Azure VMs is not something that we have much knowledge about. My recommendation would be reach out to Puppet for help installing.

    That being said, I did test and was able to easily install Puppet 7 on my Ubuntu 22.04 VM without errors. Here are the commands I ran to install. I followed the documentation provided by Puppet.

    sudo wget https://apt.puppet.com/puppet7-release-jammy.deb
    sudo dpkg -i puppet7-release-jammy.deb
    sudo apt-get update
    sudo bash -l
    sudo apt-get install puppetserver
    

    User's image

    From your error message, it appears that you are utilizing Ubuntu 20.04 (focal). I recommend moving to Ubuntu 22.04 (jammy) or newer as 20.04 will be end of life in 2025.

    If you are still facing issues, please reach out to Puppet for assistance. They also do have a slack channel which might be helpful.


    If you still have questions, please let us know in the "comments" and we would be happy to help you. Comment is the fastest way of notifying the experts.

    If the answer has been helpful, we appreciate hearing from you and would love to help others who may have the same question. Accepting answers helps increase visibility of this question for other members of the Microsoft Q&A community.

    Thank you for helping to improve Microsoft Q&A!

    User's image