本文介绍了Ubuntu:dpkg --add-architecture i386 抛出错误 --add-architecture 未知选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的 64 位机器中启用额外的架构(32 位).我做了 dpkg --print-architecture 来了解已知的架构,即 amd64 .之后我做了 dpkg --print--foreign-architectures 并得到结果为 i386(I want to enable this) .但是当我输入 dpkg --add-architecture i386 时,它抛出一个错误,说未知选项 -add-architecture ?请为此提出一些解决方案.

I want to enable extra architecture (of 32-bit) in my 64 bit machine . I did dpkg --print-architecture to know the already known architecture i.e.amd64 . After that I did dpkg --print--foreign-architectures and got the result as i386(I want to enable this) . But when i typed dpkg --add-architecture i386 , it is throwing an error saying that unknown option -add-architecture ? Please suggest some solutions for this .

顺便提一下这个链接:https://wiki.debian.org/Multiarch/HOWTO

推荐答案

Ubuntu 12.04 中没有 /etc/dpkg/dpkg.cfg.d/architectures 文件.所以下面的命令可以工作,

There is no /etc/dpkg/dpkg.cfg.d/architectures file in Ubuntu 12.04.So the below command will works,

echo "foreign-architecture i386" > /etc/dpkg/dpkg.cfg.d/multiarch

sudo dpkg --foreign-architecture i386

这篇关于Ubuntu:dpkg --add-architecture i386 抛出错误 --add-architecture 未知选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-15 06:50