如何安裝rpm包而不轉換成deb

如何安裝rpm包而不轉換成deb

當我嘗試將 rpm 轉換為 deb 時,出現以下警告:

warning: libgmt-devel-4.5.9-3.mga4.i586.rpm: Header V3 RSA/SHA1 Signature, key ID 80420f66: NOKEY
warning: libgmt-devel-4.5.9-3.mga4.i586.rpm: Header V3 RSA/SHA1 Signature, key ID 80420f66: NOKEY
warning: libgmt-devel-4.5.9-3.mga4.i586.rpm: Header V3 RSA/SHA1 Signature, key ID 80420f66: NOKEY
warning: libgmt-devel-4.5.9-3.mga4.i586.rpm: Header V3 RSA/SHA1 Signature, key ID 80420f66: NOKEY
warning: libgmt-devel-4.5.9-3.mga4.i586.rpm: Header V3 RSA/SHA1 Signature, key ID 80420f66: NOKEY
warning: libgmt-devel-4.5.9-3.mga4.i586.rpm: Header V3 RSA/SHA1 Signature, key ID 80420f66: NOKEY
warning: libgmt-devel-4.5.9-3.mga4.i586.rpm: Header V3 RSA/SHA1 Signature, key ID 80420f66: NOKEY
warning: libgmt-devel-4.5.9-3.mga4.i586.rpm: Header V3 RSA/SHA1 Signature, key ID 80420f66: NOKEY
warning: libgmt-devel-4.5.9-3.mga4.i586.rpm: Header V3 RSA/SHA1 Signature, key ID 80420f66: NOKEY
warning: libgmt-devel-4.5.9-3.mga4.i586.rpm: Header V3 RSA/SHA1 Signature, key ID 80420f66: NOKEY
warning: libgmt-devel-4.5.9-3.mga4.i586.rpm: Header V3 RSA/SHA1 Signature, key ID 80420f66: NOKEY
warning: libgmt-devel-4.5.9-3.mga4.i586.rpm: Header V3 RSA/SHA1 Signature, key ID 80420f66: NOKEY
warning: libgmt-devel-4.5.9-3.mga4.i586.rpm: Header V3 RSA/SHA1 Signature, key ID 80420f66: NOKEY
warning: libgmt-devel-4.5.9-3.mga4.i586.rpm: Header V3 RSA/SHA1 Signature, key ID 80420f66: NOKEY
warning: libgmt-devel-4.5.9-3.mga4.i586.rpm: Header V3 RSA/SHA1 Signature, key ID 80420f66: NOKEY
warning: libgmt-devel-4.5.9-3.mga4.i586.rpm: Header V3 RSA/SHA1 Signature, key ID 80420f66: NOKEY
warning: libgmt-devel-4.5.9-3.mga4.i586.rpm: Header V3 RSA/SHA1 Signature, key ID 80420f66: NOKEY
libgmt-devel-4.5.9-3.mga4.i586.rpm is for architecture i386 ; the package cannot be built on this system

怎麼解決這個問題呢?

答案1

在網路連線正常的情況下,請開啟終端並執行以下操作:

sudo apt-get update
sudo apt-get install libgmt-dev

將正確安裝正確 (.deb) 格式的套件及其所有相依性。

答案2

請使用 Ubuntu 儲存庫,或者如果您確實需要該軟體的最新版本(Ubuntu 儲存庫中可能不存在),請從原始程式碼建置它。

有些軟體包可以從 rpm 轉換為 deb,但是的 - 這可能會帶來一些麻煩。

答案3

您似乎正在嘗試在 64 位元系統上建立 32 位元套件 (i386),如最後一條日誌行所示:

libgmt-devel-4.5.9-3.mga4.i586.rpm is for architecture i386 ; the package cannot be built on this system

您是否嘗試過 64 位元版本的軟體包? (這似乎是lib64gmt-devel-4.5.9-3.mga4.x86_64.rpm

相關內容