Ubuntu : dpkg --add-architecture i386 throwing error --add-architecture unknown option
14,243
Solution 1
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
Solution 2
echo "foreign-architecture i386" > /etc/dpkg/dpkg.cfg.d/architectures
Related videos on Youtube
Author by
nerdiplayboy
Updated on September 18, 2022Comments
-
nerdiplayboy almost 2 years
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