IBM Support

QRadar :手動RPMインストールでエラー「cp: cannot create regular file '/templates/': Not a directory」が発生する

Troubleshooting


Problem

手動でDSMまたはプロトコルRPMをインストールするコマンドを実行すると、次のようなエラーが発生します:
cp: cannot create regular file ‘/templates/’: Not a directory
Error: "Execution Failed of :cp iteam_functions.sh /templates/:", exiting
warning: %post(DSM-xxxx-0:7.5-20230xxxx.noarch) scriptlet failed, exit status 255
インストールは失敗する場合と失敗しない場合があります。ただし、エラーが発生した場合は、RPMのインストールに修正が必要な問題があることになります。

Cause

この問題は、誤ったアクセス権を指定して「yum -y install xxx.rpm」コマンドを実行したことが原因で発生します。

Diagnosing The Problem

rpmファイルがインストールされているかどうかを確認するには、次のコマンドを実行します:
rpm -qa | grep -i <RPM name without the date>
例:
 rpm -qa | grep -i DSM-VmWareVCenter
1つのエントリーが返された場合は、次のコマンドを使用してDSMを削除します:
yum erase <DSM full name.noarch>
例:
yum erase DSM-VmWareVCenter-7.5-20230802094710.noarch
2つ以上のエントリーが返された場合は、次のコマンドを使用してDSMを削除します:
rpm -e --allmatches --nodeps --noscripts --notriggers <RPM name without the date>
例:
rpm -e --allmatches --nodeps --noscripts --notriggers DSM-VmWareVCenter

Resolving The Problem

1. RPMを再インストールする前に、次のコマンドを実行してrootユーザーに切り替えます:
sudo su -
2. RPMインストール・ファイルのあるディレクトリーに移動します。例えば:
cd /storetmp
3.次に、RPMをインストールします:
yum -y install <RPM name>.rpm
さらにサポートが必要な場合は、サポートにお問い合わせください。

Document Location

Worldwide

[{"Type":"MASTER","Line of Business":{"code":"LOB24","label":"Security Software"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSV4BL","label":"IBM QRadar"},"ARM Category":[{"code":"a8m0z000000cwtDAAQ","label":"Auto Update"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Versions"}]

Document Information

Modified date:
14 May 2024

UID

ibm17043457