问题描述
我想在我的64位计算机上启用额外的架构(32位)。我做了 dpkg --print-architecture 来了解已知的架构,即amd64。之后,我做了 dpkg --print--foreign-architectures ,得到的结果是i386(我想启用它)。但是,当我键入 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 .
我通过以下方式引用此链接:
I refer this link by the way : 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
OR
sudo dpkg --foreign-architecture i386
这篇关于Ubuntu:dpkg --add-architecture i386引发错误--add-architecture未知选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!