1、下载dpkg命令的安装包epel-release-6-8.noarch.rpm
wget -c http://archives.fedoraproject.org/pub/archive/epel/6/x86_64/epel-release-6-8.noarch.rpm
2、解压安装包
rpm -ivh epel-release-6-8.noarch.rpm
3、输入yum install dpkg后出现报错(解决方法为一下几步):
Error: Package: dpkg-1.16.18-3.el6.x86_64 (epel)
Requires: liblzma.so.0()(64bit)
4、下载liblzma.so的安装包xz-compat-libs-5.2.2-1.el7.x86_64.rpm
wget -c http://mirror.centos.org/centos/7/os/x86_64/Packages/xz-compat-libs-5.2.2-1.el7.x86_64.rpm
5、解压安装包xz-compat-libs-5.2.2-1.el7.x86_64.rpm
rpm -ivh xz-compat-libs-5.2.2-1.el7.x86_64.rpm
6、重新输入yum install dpkg安装dpkg
文章来源:https://www.toymoban.com/news/detail-816399.html
文章来源地址https://www.toymoban.com/news/detail-816399.html
到了这里,关于Linux系统安装dpkg命令详细过程(sudo: dpkg: command not found的解决)的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!