I am using the version Ubuntu 18.04.4 trying to add i386. I Have tried to install it via the command:
echo "foreign-architecture i386" > /etc/dpkg/dpkg.cfg.d/multiarch
And I get the eror
bash: /etc/dpkg/dpkg.cfg.d/multiarch: Permission denied
I already tried to use the methods:
echo "foreign-architecture i386" > /etc/dpkg/dpkg.cfg.d/multiarch
and
sudo dpkg --foreign-architecture i386
I simply get no output out of any of these. I have already tried to use the command:
sudo dpkg --add-architecture i386
It puts the output:
dpkg: error: configuration error: /etc/dpkg/dpkg.cfg.d/architectures:1: unknown option 'foreign-architecture'
I have tried to check if it is already installed or not via the command:
sudo dpkg --print-foreign-architectures
which I get the same bug with the previously mentioned command. I have tried to purge it with the command:
sudo apt-get purge ".:i386"
Which returned the eror code of:
E: Sub-process dpkg --set-selections returned an error code (2)
E: Couldn't record the approved state changes as dpkg selection states
These are the references of pages I have used but couldn't get any answers from:
- How do I check the version of Ubuntu I am running?
- https://stackoverflow.com/questions/19462579/ubuntu-dpkg-add-architecture-i386-throwing-error-add-architecture-unknown
- http://ubuntuhandbook.org/index.php/2020/01/install-wine-5-0-stable-ubuntu-18-04-19-10/
- https://wiki.winehq.org/Ubuntu
- Trying to install wine32 i386 packages on Ubuntu 18.04
Thanks in advance.
dpkg --print-foreign-architectures
to the question. Do you problems installing Wine? Did you tried to use this Q&A. – N0rbert Mar 17 '20 at 18:53