Debian – Wine install on Jessie: “E: Unable to locate package winehq-devel”

debianwine

I am trying to install Wine on Debian 8 using these instructions:

 sudo dpkg --add-architecture i386

This works.

wget https://dl.winehq.org/wine-builds/Release.key
sudo apt-key add Release.key

This works.

deb https://dl.winehq.org/wine-builds/debian/ JESSIE  main

This gives me:

-su: deb: command not found

Then, if I try to finish install with:

sudo apt-get install winehq-devel

I get:

Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package winehq-devel

Best Answer

The deb line isn't a command, it's a configuration line you need to add, either to /etc/apt/sources.list, or better, to a new file in /etc/apt/sources.list.d (say /etc/apt/sources.list.d/winehq.list. Once you've done that,

sudo apt-get update
sudo apt-get install winehq-devel

should work.

Instead of doing that though, you could install the Debian-maintained package. To get a recent version of Wine, add deb http://http.debian.net/debian jessie-backports main to /etc/apt/sources.list, then run

sudo apt-get update

followed by either

sudo apt-get -t jessie-backports install wine

for the current stable release, 1.8.4 as of October 2016, or

sudo apt-get -t jessie-backports install wine-development

for the latest development release (after it's migrated to Debian testing), 1.9.19 as of October 2016.

Related Question