RHEL8オペレーティングシステムがインストールされているコンピュータがあります。 Linux用のDefender Endpointをインストールするには、ガイドに従う必要がありました。Linuxでのエンドポイント用のMicrosoft Defenderの手動展開
私はそのセクションに来ました:ヤム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