Red Wine in a GlassHow to Install Wine on Debian 10CSS HTML Validator Logo
HOME Tutorials & Essays About
Tutorials & Essays About

November 19, 2021

Debian 10 screen shot

How to Install Wine on Debian 10


Installing Wine

Appendix 1: Enable sudo?

Appendix 2: Disable CDROM repositories?

Installing Wine

If you find you cannot use sudo, or if you get error messages referring to a CDROM repository, see Appendix 1 or Appendix 2.

Remote file
does not exist.

Appendix 1: Enable sudo?

This appendix explains how to install sudo and grant yourself sudo privileges. To do these, you must know the root password.

Open a terminal window and issue the following command.

$ sudo echo Hello

If, after accepting your password, Hello is displayed, sudo is installed and you are authorized to use sudo, so there is nothing to do. Otherwise, continue with the following.

Login as superuser.

$ su -l

If your attempt to use sudo failed with a "sudo not found" message, use the next two commands to install sudo, but skip them if sudo is already installed.

# apt update
# apt install sudo

With sudo installed, the following enables you to use sudo. Just replace your-user-name by your own user name.

# adduser your-user-name sudo

Log out of the root account and close the Terminal window.

# exit
$ exit

Close any open apps.

In order to activate sudo for your user name, Restart your Computer.

When logged in again, continue from here to verify sudo is installed and properly configured.

-------- Waiting for computer to restart --------

To verify you can now use sudo, open a Terminal session and issue the following command.

$ sudo echo Hello

The test is successful if, after requesting and receiving your password, Hello is displayed.

Appendix 2: Disable CDROM repositories?

If you installed Debian from a disk or USB drive, your installation may have registered a CDROM drive as a repository, and, if the installation disk is not present in the CDROM drive, any attempt to update or upgrade Debian will fail with an error message referencing the CDROM repository. One way to fix this is to load the installation disk into the CDROM drive prior to update or upgrade.

If you do not have a disk (perhaps because you installed from a USB drive), or if you do not want the inconvenience of loading a disk, you can disable the CDROM repository, as described in this appendix.

Facebook Logo   Twitter Logo  Reddit Logo   Quora Logo

Consider sharing your experience

Did you find this page helpful? Have constructive feedback? Wisdom to share?

Send email to Email Address

Privacy PolicyNew Window Icon

J.M.December 24, 2020

I followed everything step by step in your webpage instructions, copying and pasting each command. When I entered this command, "sudo apt install --install-recommends winehq-stable", I was given the following error … unmet dependencies: winehq-stable : Depends: wine-stable (=5.0.3~buster) you have held broken packages

davidbDecember 24, 2020

The usual cause for this error message is that libfaudio0 is not installed. Verify (and re-do, if necessary) the two libfaudio0 downloads and then re-do the two libfaudio0 installations. If you see no error messages, then the Wine installation should proceed normally.

J.M.December 25, 2020

I think I found the error...I had downloaded the key, but missed the step of installing that key … its the little things.

davidbDecember 25, 2020

Yes, I know all about the little things. :-) Glad it works.