I was trying to install wine-stable and followed the steps given on the website. Here's what I did -
sudo dpkg --add-architecture i386
wget -nc https://dl.winehq.org/wine-builds/winehq.key
sudo apt-key add winehq.key
sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'
After step 4 I get the following error -
Traceback (most recent call last): File "/usr/bin/apt-add-repository", line 11, in <module> from softwareproperties.SoftwareProperties import SoftwareProperties, shortcut_handler File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 63, in <module> from . import shortcuts File "/usr/lib/python3/dist-packages/softwareproperties/shortcuts.py", line 23, in <module> _DEF_CODENAME = aptsources.distro.get_distro().codename File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 576, in get_distro os_release = _OSRelease() File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 529, in __init__ self.inject_lsb_compat() File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 532, in inject_lsb_compat self.result['Distributor ID'] = self.result['ID'] KeyError: 'ID'
I can't understand why i get this error and how to fix this. Thanks in advance.