当前位置:   article > 正文

Linux系统安装dpkg命令详细过程(sudo: dpkg: command not found的解决)_dpkg安装

dpkg安装

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

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/我家自动化/article/detail/195826
推荐阅读
相关标签
  

闽ICP备14008679号