Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ubuntu : dpkg --add-architecture i386 throwing error --add-architecture unknown option

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

like image 570
nerdiplayboy Avatar asked Oct 22 '25 08:10

nerdiplayboy


2 Answers

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
like image 142
Avinash Raj Avatar answered Oct 24 '25 20:10

Avinash Raj


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

like image 43
Shuduo Avatar answered Oct 24 '25 22:10

Shuduo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!