[HOME] [DOWNLOAD] [DOCS] [NEWS] [SUPPORT] [TIPS] [ISSUES] [DONATE]

How to install wine?

So i tried both of these guides because they were for debian


however when i enter: sudo apt-add-repository https://dl.winehq.org/wine-builds/debian/
i get:
sudo: apt-add-repository: command not found

and on sudo apt-get install --install-recommends winehq-stable
i get:
Unable to locate package winehq-stable

I know i’m missing some whonix specific step, help would be much apreciated.

dnull from the forum helped me so for the future generations:

we open the foulder sources.list.d with the command :
sudo nano /etc/apt/sources.list.d/wine.list
we type in or copy paste: deb https://dl.winehq.org/wine-builds/debian/ stretch main
ctrl+x to exit Y to save
sudo apt-get update
sudo apt-get install wine

No extra repositories should be required.

sudo apt-get install wine without any other commands should install it.

See also:

1 Like

Hi want2know

FYI

When a command throws an error you can usually find an solution by searching for the error with a search engine.

For example, searching for keywords (in duckduckgo):

“sudo: apt-add-repository: command not found”

Returns this answer.

https://unix.stackexchange.com/questions/45879/how-to-add-repository-from-shell-in-debian

sudo apt-get install software-properties-common

2 Likes

You can use apt search to search for a specific package name if you didn’t get it exactly right.

For example, in your usecase, you can look for packages with “wine” in the name by running sudo apt search wine. This helps when you don’t know the exact name of the package.

1 Like
[Imprint] [Privacy Policy] [Cookie Policy] [Terms of Use] [E-Sign Consent] [DMCA] [Investors] [Priority Support] [Professional Support]