NetWorker:錯誤「/usr/sbin/nsrd 是連結或啟動指令檔嗎?請檢查!二進位可執行檔需要作為引數」以執行Linux_pkgcore.sh指令檔
Summary: /usr/sbin/nsrd 版本 19.12.0.1 的 NetWorker 問題,由於位置無關的程式碼設定,linux_pkgcore.sh指令檔識別為共用物件而非可執行檔,將檔案升級至版本 5.39 或更新版本可解決問題。
This article applies to
This article does not apply to
This article is not tied to any specific product.
Not all product versions are identified in this article.
Symptoms
指令檔執行失敗
可使用 linux_pkgcore.sh 指令檔無法正確執行。
指令檔傳回訊息,指出無法判斷 /usr/sbin/nsrd 是連結或啟動指令檔。
訊息詳細資料
顯示的訊息為:「/usr/sbin/nsrd 是連結或啟動指令檔嗎?請檢查!需要二進位可執行檔作為引數」
file /usr/sbin/nsrd-19.12.0.1 | grep 'ELF' /usr/sbin/nsrd-19.12.0.1: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=500dfce10db947d45391e7eb5e7eb8f850815f10, stripped
Cause
問題的根本原因
此問題的根本原因是 file 命令將 nsrd 可執行檔錯誤識別為共用物件。
這種錯誤識別是由於使用了與位置無關的代碼相關的某些設置,這有時可以被視為額外的安全功能。
特定條件
導致此問題的特定條件包括使用 file 命令,這可能會導致 file 命令錯誤地將 nsrd 可執行檔識別為共用物件。
- 目前使用的 file 命令版本比 5.39 舊,無法正確識別 nsrd 可執行檔。
- nsrd 可執行檔是使用獨立於位置的代碼構建的,這可能會導致識別錯誤。
錯誤訊息
file /usr/sbin/nsrd-19.12.0.1 | grep 'ELF' /usr/sbin/nsrd-19.12.0.1: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=500dfce10db947d45391e7eb5e7eb8f850815f10, stripped
注意:問題不在於 nsrd 可執行檔本身,而在於檔命令無法正確識別它。
Resolution
升級檔案指令
要解決此問題,請升級”file命令更新至 5.39 版或更新版本。這應能為 pkgcore 腳本。
升級步驟
請按照以下步驟升級”file' 命令:
- 檢查目前版本的”
file命令。 - 下載並安裝最新版本的”
file命令 (版本 5.39 或更新版本)。
驗證解決方案
升級後”file命令,請執行「linux_pkgcore.sh'再次腳本。
# Run the linux_pkgcore.sh script to verify the resolution $ ./linux_pkgcore.sh
注意:NetWorker 工程部門正在設法解決。
Article Properties
Article Number: 000329028
Article Type: Solution
Last Modified: 08 ذو الحجة 1447
Version: 4
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.