1

I am trying to install Wine however when I run:

~$ sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ cosmic main'

I get:

LSB codename: 'bionic'.
This codename isn't currently supported.
Please check your LSB information with "lsb_release -a".

I've already tried (in order):

sudo apt-get install python3-software-properties
sudo apt-get install apt-file
sudo apt install python-software-properties
sudo apt-get update
sudo apt-get install --reinstall python-software-properties
sudo apt install --reinstall software-properties-common

(I followed the first two answers from How to add a PPA on a server?). When I search for add-apt-repository, I get:

~$  apt-file search add-apt-repository

software-properties-common: /usr/bin/add-apt-repository
software-properties-common: /usr/share/man/man1/add-apt-repository.1.gz

How do I get add-apt-repository to work?

Kulfy
  • 18,154
April
  • 11

1 Answers1

0

For Wine to work, you need 32-bit capability, and since you are using 18.04, you need to use bionic, not cosmic, so these commands are more appropriate:

sudo dpkg --add-architecture i386
wget -qO - https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add - 
sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'
sudo apt-get update
sudo apt-get install --install-recommends winehq-stable
K7AAY
  • 17,705