Issues installing Microsoft Defender for Endpoint (mdatp) on Debian 12 (Bookworm)

Anonymous
2025-01-20T11:32:46+00:00

Hi,

I have two Debian 12 VMs running in Azure which I would like to install Defender for Endpoint (mdatp) on, but I am having issues with the Linux Software Repository for Microsoft products.

I am following the instructions here: Deploy Microsoft Defender for Endpoint on Linux manually - Microsoft Defender for Endpoint | Microsoft Learn

But the mdatp package can't be found. I believe this is because of an issue with the Repository for Debian 12.

When I run apt-get update I get the following:

W: Failed to fetch https://packages.microsoft.com/debian/12/prod/dists/bookworm/InRelease Bad header line Bad header data

I've run through the Debian instructions on Linux Software Repository for Microsoft Products | Microsoft Learn, downloading the config from Microsoft and installing it. I've also made sure the public keys are in the right place by running:

curl -fsSL https://packages.microsoft.com/keys/microsoft.asc | sudo gpg --dearmor -o /usr/share/keyrings/microsoft-prod.gpg

After apt-get update when I check the contents of /var/lib/apt/lists there is nothing Microsoft related in there, which is why I believe it can't find mdatp.

Any assistance appreciated!

Thanks,

Mark

Windows for business | Windows Server | Networking | Other

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question. To protect privacy, user profiles for migrated questions are anonymized.

0 comments No comments
{count} vote

5 answers

Sort by: Most helpful
  1. Anonymous
    2025-01-21T06:39:30+00:00

    Hello

    Thank you for posting in Microsoft Community forum.

    Based on the description, I understand your question is related to Microsoft Defender for Endpoint.

    Since there are no engineers dedicated to this topic in this forum. in order to be able to get a quick and effective handling of your issue, I recommend that you repost your question in the Q&A forum, where there will be a dedicated engineer to give you a professional and effective reply.

    Here is the link for Q&A forum.

    Questions - Microsoft Q&A

    Click the "Ask a Question" button in the upper right corner to post your question and select any tags related to your productions.

    Thank you for your understanding and support. If you have any question or concern, please feel free to let us know.

    Have a nice day.

    Best Regards,

    Molly

    0 comments No comments
  2. Anonymous
    2025-01-27T13:41:05+00:00

    Hi Mark,

    I have the same issues with Ubuntu 22.04.5 LTS.

    Did you managed to find out what could be the problem?

    apt update Ign:1 https://packages.microsoft.com/ubuntu/22.04/prod jammy InRelease Hit:2 http://security.ubuntu.com/ubuntu jammy-security InRelease Hit:3 http://archive.ubuntu.com/ubuntu jammy InRelease Hit:4 http://archive.ubuntu.com/ubuntu jammy-updates InRelease Hit:5 http://archive.ubuntu.com/ubuntu jammy-backports InRelease Ign:1 https://packages.microsoft.com/ubuntu/22.04/prod jammy InRelease Ign:1 https://packages.microsoft.com/ubuntu/22.04/prod jammy InRelease Err:1 https://packages.microsoft.com/ubuntu/22.04/prod jammy InRelease Bad header line Bad header data [IP: 13.107.246.44 443] Reading package lists... Done Building dependency tree... Done Reading state information... Done All packages are up to date. W: Failed to fetch https://packages.microsoft.com/ubuntu/22.04/prod/dists/jammy/InRelease Bad header line Bad header data [IP: 13.107.246.44 443] W: Some index files failed to download. They have been ignored, or old ones used instead.

    1 person found this answer helpful.
    0 comments No comments
  3. Anonymous
    2025-01-27T13:50:40+00:00

    No, I'm afraid not. You've just reminded me that I hadn't got around to posting it the Q&A yet, so U have just done so: Issues installing Microsoft Defender for Endpoint (mdatp) on Debian 12 (Bookworm) - Microsoft Q&A

    I resorted to installing and running clamav on our server for now.

    1 person found this answer helpful.
    0 comments No comments
  4. Anonymous
    2025-01-27T13:51:02+00:00

    Thank you. One day I will figure out what all these forums are for!

    0 comments No comments
  5. Anonymous
    2025-01-31T06:25:25+00:00

    You're welcome!

    0 comments No comments