0

At the WineHQ site I followed the first step to enable 32-bit architecture by entering this command sudo dpkg --add-architecture i386, but an error appeared.

dpkg: error: configuration error: /etc/dpkg/dpkg.cfg.d/multiarch:1: unknown option 'foreign-architecture'
karel
  • 114,770
Epaan
  • 5
  • 2

1 Answers1

0

Open the terminal and type:

sudo add-apt-repository --remove 'deb https://dl.winehq.org/wine-builds
/ubuntu/ focal main' 
sudo add-apt-repository universe
sudo apt update  
sudo apt install -y wine32 wine64 wine-stable 

Other suggested packages to install along with wine-stable are: dosbox playonlinux winbind wine-binfmt winetricks

karel
  • 114,770
  • still got some error

    E: Failed to fetch cdrom://Ubuntu 20.04.1 LTS Focal Fossa - Release amd64 (20200731)/dists/focal/main/binary-i386/Packages Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs

    E: Some index files failed to download. They have been ignored, or old ones used instead.

    – Epaan Sep 10 '20 at 08:13
  • Please correct the CD-ROM error with Failed to download repository information due to missing CDROM. Remove any lines in /etc/apt/sources.list that include CD-ROM. Save the file and try once more. Don't forget to run sudo apt update again after correcting the error. – karel Sep 10 '20 at 08:15
  • CD-ROM error fixed. But now when i run sudo apt install -y wine64 wine32 wine-stable an error appeared E: Unable to locate package wine64 E: Unable to locate package wine32 E: Unable to locate package wine-stable – Epaan Sep 10 '20 at 08:40
  • All the command is working fine, after that what should I do? – Epaan Sep 10 '20 at 08:57
  • There's no need to do anything else. You're done if I'm not mistaken. – karel Sep 10 '20 at 09:01