Ubuntu不支持rpm格式包安装,Ubuntu的软件包格式为deb,而RPM格式的包则是Red Hat 相关系统所用的软件包。其实,在Ubuntu系统中通过一定的方法也是可以很有效的安装RPM格式包的。
具体的解决方法如下:
我们要安装alien这一软件

sudo apt-get install alien     ##alien默认没有安装,所以首先要安装它
sudo alien xxxx.rpm            ##将rpm转换为deb,完成后会生成一个xxxx.deb
sudo dpkg -i xxxx.deb          ##这样xxxx软件就可以安装完成了

注意,用alien转换deb包并不能保证完全顺利安装,所以如果能找到deb包,还是用deb包为好。
还有一种方法,直接使用alien安装rpm格式的包。

alien -i xxx.rpm

对于这个问题,官方的说法是这样的

Do not install rpm in Debian (I don't mean flash-plugin, I mean rpm package management). Debian's package management system (which makes sure everything is installed properly and with no conflicts.) is dpkg and it also includes apt-get, Synaptic and aptitude that use dpkg. RPM will bypass dpkg, so you may cause serious damage to your system.
If you need to install an rpm package, you must do it using the tool "alien". It converts RPM packages to .deb and installs them properly through dpkg.

译文

不要在Debian中安装rpm(我不是指flash-plugin,我的意思是rpm包管理)。 Debian的软件包管理系统(确保一切安装正确,没有冲突。)是dpkg,它还包括使用dpkg的apt-get,Synaptic和aptitude。 RPM将绕过dpkg,因此可能会对系统造成严重损坏。 如果需要安装rpm软件包,则必须使用“alien”工具进行安装。 它将RPM包转换为.deb并通过dpkg正确安装它们。

Last modification:October 16, 2018
If you think my article is useful to you, please feel free to appreciate