How to fix the moby engine package installation error in linux.

Pelapkar, Amruta (Cognizant) 5 Reputation points
2023-06-14T16:49:17.66+00:00

While installing the Moby engine package, getting error as "You have held the broken packages moby cli is not going to be installed"

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

2 answers

Sort by: Most helpful
  1. deherman-MSFT 38,021 Reputation points Microsoft Employee Moderator
    2023-06-14T19:01:43.38+00:00

    This error usually occurs when there are some missing or broken dependencies on your system. Here are some possible ways to fix it:

    I hope this helps you resolve the issue. If you have any other questions, please feel free to ask.


    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

    0 comments No comments

  2. Dillon Silzer 57,831 Reputation points Volunteer Moderator
    2023-11-04T22:15:45.31+00:00

    Hello Pelapkar,

    Try the following from a similar thread:

    sudo apt-get remove runc
    

    Then try:

    sudo apt-get install moby-runc
    sudo apt-get install moby-containerd
    sudo apt-get install moby-engine
    

    Cited from https://github.com/Azure/iotedge/issues/5011


    If this is helpful please accept answer.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.