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.
Asked
Active
Viewed 1,132 times
0
-
3Either post the commands you used to install it along with the errors it produced (not some vague paraphasing of what you think it says) or solve your own problem. – j-money Feb 04 '19 at 09:05
-
Welcome to AskUbuntu! Please [edit] your post and copy and paste the terminal output rather than linking an image if at all possible. You might benefit from reviewing https://askubuntu.com/help/how-to-ask – Elder Geek Feb 06 '19 at 18:42
-
2You've got cosmic and bionic repos all mixed up in your sources.list – Organic Marble Feb 06 '19 at 18:55
-
1Close voters complete answer below. – Elder Geek Feb 07 '19 at 22:54
1 Answers
4
Correct your
sources.list
as suggested here.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
Install a correct
sources.list
:sudo cp /usr/share/doc/apt/examples/sources.list /etc/apt/sources.list
Add the universe repository:
sudo apt-add-repository universe
Install wine for your architecture:
for 32-bit:
sudo apt install wine32
OR for 64-bit
sudo apt install wine64
- 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§ion=all

Elder Geek
- 36,023
- 25
- 98
- 183
-
-
1This is a good answer; for some reason this seems to be an increasingly frequent problem with new installers who then go off to install wine and mess up their systems. I'll be sure to refer to this one in the future. – Organic Marble Feb 11 '19 at 00:03
-
2@OrganicMarble Thank you. It seems they often get into trouble trying to follow instructions from old youtube videos. – Elder Geek Feb 11 '19 at 00:31