我在安装 rpm 包中的笔记本电脑驱动程序时遇到了问题。我尝试使用“alien”安装它们,但不幸的是,这没有奏效。当我将 package.rpm 转换为 package.deb 时,它生成了警告:
rashid@rashid-laptop:~/Desktop$ sudo alien --script -k ras.rpm
warning: ras.rpm: Header V3 RSA/SHA256 signature: NOKEY, key ID 307e3d54<br>
warning: ras.rpm: Header V3 RSA/SHA256 signature: NOKEY, key ID 307e3d54<br>
warning: ras.rpm: Header V3 RSA/SHA256 signature: NOKEY, key ID 307e3d54 <br>
warning: ras.rpm: Header V3 RSA/SHA256 signature: NOKEY, key ID 307e3d54 <br>
warning: ras.rpm: Header V3 RSA/SHA256 signature: NOKEY, key ID 307e3d54 <br>
warning: ras.rpm: Header V3 RSA/SHA256 signature: NOKEY, key ID 307e3d54 <br>
warning: ras.rpm: Header V3 RSA/SHA256 signature: NOKEY, key ID 307e3d54 <br>
warning: ras.rpm: Header V3 RSA/SHA256 signature: NOKEY, key ID 307e3d54 <br>
warning: ras.rpm: Header V3 RSA/SHA256 signature: NOKEY, key ID 307e3d54 <br>
warning: ras.rpm: Header V3 RSA/SHA256 signature: NOKEY, key ID 307e3d54 <br>
warning: ras.rpm: Header V3 RSA/SHA256 signature: NOKEY, key ID 307e3d54 <br>
warning: ras.rpm: Header V3 RSA/SHA256 signature: NOKEY, key ID 307e3d54 <br>
warning: ras.rpm: Header V3 RSA/SHA256 signature: NOKEY, key ID 307e3d54 <br>
warning: ras.rpm: Header V3 RSA/SHA256 signature: NOKEY, key ID 307e3d54 <br>
warning: ras.rpm: Header V3 RSA/SHA256 signature: NOKEY, key ID 307e3d54 <br>
warning: ras.rpm: Header V3 RSA/SHA256 signature: NOKEY, key ID 307e3d54 <br>
Unpacking of 'ras.rpm' failed at /usr/share/perl5/Alien/Package/Rpm.pm line 153.
答案1
我继续从这里。
它看起来只是一个 python 脚本和一个自述文件。
如果您使用 alien -g,它只会生成构建目录,以便您可以检查内容。它们在 pastebin 上ras.py和自述。
即使出现关键警告,rpm 到 deb 的转换仍然成功。我会看看Debian 打包指南并使用sudo alien -g whatever.rpm
它生成构建目录。然后执行正常的包构建步骤。