I have Ubuntu 14.04, and I'm trying to install wine:i386 to use PlayOnLinux, following this article. However, when I run:
sudo echo "foreign-i386 architecture"> /etc/dpkg/dpkg.cfg.d/multiarch
I get this error
/etc/dpkg/dpkg.cfg.d/multiarch: Permission denied
Being still new to Ubuntu I don't know how safe it is (or advisable) to manually change permissions to overcome this. What should I do to solve this?
EDIT The main objective of this question is to install Wine, not the syntax itself (although the syntax was the problem), the accepted answer provided a better way of solving this.