在Rhel8上安装MDATP但失败

在Rhel8上安装MDATP但失败


我有一台装有 RHEL8 操作系统的机器。我必须按照指南安装适用于 Linux 的 Defender Endpoint:在 Linux 上手动部署 Microsoft Defender for Endpoint

我来到了那一段:百胜安装 mdatp
但我收到这个错误

[root@rhel8]#yum install mdatp
Updating Subscription Management repositories.
Unable to read consumer identity

This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.

Kubernetes                                                                                                                                                   0.0  B/s |   0  B     02:00
Errors during downloading metadata for repository 'kubernetes':
  - Curl error (28): Timeout was reached for https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64/repodata/repomd.xml [Connection timed out after 30001 milliseconds]
Error: Failed to download metadata for repo 'kubernetes': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried

我尝试禁用 kubernetes 的存储库/etc/yum.repos.d/kubernetes.repo。重新启动命令“yum install mdatp”,我得到:

[root@rhel8]# yum install mdatp
Updating Subscription Management repositories.
Unable to read consumer identity

This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.

packages-microsoft-com-prod                                                                                                                                  9.7 MB/s | 7.9 MB     00:00
Last metadata expiration check: 0:00:15 ago on Thu 14 Oct 2021 10:54:14 AM CEST.
Dependencies resolved.
=============================================================================================================================================================================================
 Package                                     Architecture                         Version                                    Repository                                                 Size
=============================================================================================================================================================================================
Installing:
 mdatp                                       x86_64                               101.45.00-1                                packages-microsoft-com-prod                                44 M
Installing dependencies:
 libatomic                                   x86_64                               8.4.1-1.el8                                InstallMedia                                               23 k
 mde-netfilter                               x86_64                               100.69.32-1                                packages-microsoft-com-prod                                36 k

Transaction Summary
=============================================================================================================================================================================================
Install  3 Packages

Total download size: 44 M
Installed size: 157 M
Is this ok [y/N]: y
Downloading Packages:
Error opening file for checksum: /run/media/root/RHEL-8-4-0-BaseOS-x86_64/BaseOS/Packages/libatomic-8.4.1-1.el8.x86_64.rpm
Package "libatomic-8.4.1-1.el8.x86_64" from local repository "InstallMedia" has incorrect checksum
Error: Some packages from local repository have incorrect checksum

使用命令:

[root@rhel8]# dnf repolist
Updating Subscription Management repositories.
Unable to read consumer identity

This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.

repo id                                                                                      repo name
InstallMedia                                                                                 Red Hat Enterprise Linux 8.4.0
docker-ce-stable                                                                             Docker CE Stable - x86_64
kubernetes                                                                                   Kubernetes
packages-microsoft-com-prod                                                                  packages-microsoft-com-prod

如果我安装该软件包自由原子的从这个链接自由原子的和包裹mdatp从这个链接mdatp,我会毁掉机器吗?

答案1

yum install yum-utils
yum-config-manager --add-repo=https://packages.microsoft.com/config/rhel/8/prod.repo

答案2

yum clean all
rm  -rf /var/cache/yum/*
subscription-manager refresh

sudo yum install yum-utils
sudo yum-config-manager --add-repo=https://packages.microsoft.com/config/rhel/7/prod.repo

sudo yum-config-manager --add-repo=https://packages.microsoft.com/config/rhel/8/prod.repo
sudo rpm --import http://packages.microsoft.com/keys/microsoft.asc

yum install mdatp

相关内容