0


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

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

标签: linux 运维 服务器

本文转载自: https://blog.csdn.net/hjxloveqsx/article/details/127388552
版权归原作者 勇敢的_小小邱 所有, 如有侵权,请联系我们删除。

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

还没有评论