0

I am unable to install Wine in Ubuntu 18.04.1 LTS by using terminal as dictated by many youtubers. please solve my problem beause I have to use windows application on my laptop.

Commands and errors.

Elder Geek
  • 36,752

1 Answers1

4
  1. Correct your sources.list as suggested here.

  2. Backup your existing list (not because it's useful but because it's a best practice)

    sudo mv /etc/apt/sources.list /etc/apt/sources.list.bak
    
  3. Install a correct sources.list:

    sudo cp /usr/share/doc/apt/examples/sources.list /etc/apt/sources.list
    
  4. Add the universe repository:

    sudo apt-add-repository universe
    
  5. Install wine for your architecture:

    for 32-bit:

    sudo apt install wine32
    

OR for 64-bit

    sudo apt install wine64
  1. If you are running a GUI you might wish to open Software & Updates and check that you have all your desired repositories enabled there. I usually check everything on the Ubuntu Software tab and officially supported non-free drivers as well as important security and recommended updates on the Other Software tab.

Note: Be aware that there are still some multiarch dependancy issues

Personally I'm still running wine on 16.04 as while you can install mono under 18.04 with sudo apt install mono-complete some programs I use require gecko and there's currently no gecko package available for 18.04

Sources:

How do I enable the "Universe" repository?

https://packages.ubuntu.com/search?keywords=wine&searchon=names&suite=bionic&section=all

How do I restore the sources.list file?

Elder Geek
  • 36,752