I am trying to install wine to Ubuntu 18.04, but I get the error:
The following packages have unmet dependencies:
wine32:i386 : Depends: libwine:i386 (= 3.0-1ubuntu1) but it is not going to be installed
wine64 : Depends: libwine (= 3.0-1ubuntu1) but it is not going to be installed
Even when I try to build it, I get a warning that says I need flex and when I try to install flex, I get the exact same error again.
I saw online that a couple people mentioned that I might have messed up the update repositories, with either a wrong Ubuntu version or a third party, and I need to find it and then clean it. However, I am not familiar with this at all, I listed all repositories but I don't know which one I should delete and how I can delete it.
this output is removed due to character length limit
EDIT: As requested, grep -v ^# /etc/apt/sources.list
deb http://tr.archive.ubuntu.com/ubuntu/ bionic main restricted
deb http://tr.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
deb http://tr.archive.ubuntu.com/ubuntu/ bionic universe
deb http://tr.archive.ubuntu.com/ubuntu/ bionic-updates universe
deb http://tr.archive.ubuntu.com/ubuntu/ bionic multiverse
deb http://tr.archive.ubuntu.com/ubuntu/ bionic-updates multiverse
deb http://tr.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
deb http://archive.canonical.com/ubuntu bionic partner
deb http://security.ubuntu.com/ubuntu bionic-security main restricted
deb http://security.ubuntu.com/ubuntu bionic-security universe
deb http://security.ubuntu.com/ubuntu bionic-security multiverse
deb http://archive.canonical.com/ bionic partner
deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main
grep -v ^# /etc/apt/sources.list.d/*.list
/etc/apt/sources.list.d/google-chrome.list:deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
/etc/apt/sources.list.d/teamviewer.list:
/etc/apt/sources.list.d/teamviewer.list:
/etc/apt/sources.list.d/teamviewer.list:
/etc/apt/sources.list.d/teamviewer.list:
/etc/apt/sources.list.d/teamviewer.list:
/etc/apt/sources.list.d/teamviewer.list:
/etc/apt/sources.list.d/teamviewer.list:
apt-cache policy wine32:i386 wine64 libwine:i386 wine32:i386:
Installed: 3.0-1ubuntu1
Candidate: 3.0-1ubuntu1
Version table:
*** 3.0-1ubuntu1 500
500 http://tr.archive.ubuntu.com/ubuntu bionic/universe i386 Packages
100 /var/lib/dpkg/status
wine64:
Installed: 3.0-1ubuntu1
Candidate: 3.0-1ubuntu1
Version table:
*** 3.0-1ubuntu1 500
500 http://tr.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
100 /var/lib/dpkg/status
libwine:i386:
Installed: (none)
Candidate: 3.0-1ubuntu1
Version table:
3.0-1ubuntu1 500
500 http://tr.archive.ubuntu.com/ubuntu bionic/universe i386 Packages
Firstly, I tried to install iced tea
by:
sudo apt-get install icedtea-plugin
I tried installing Wine by:
sudo apt install wine-stable wine32
build by:
git clone git://source.winehq.org/git/wine.git ~/wine-dirs/wine-source
cd ~/wine-dirs/wine-source/
../wine-source/configure --enable-win64
EDIT 2:
~$ apt-cache policy wine-stable
wine-stable:
Installed: 3.0-1ubuntu1
Candidate: 3.0-1ubuntu1
Version table:
*** 3.0-1ubuntu1 500
500 http://tr.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
500 http://tr.archive.ubuntu.com/ubuntu bionic/universe i386 Packages
100 /var/lib/dpkg/status
~$ dpkg -l | grep -i wine
ii q4wine 1.3.6-2 amd64 Qt GUI for wine (WINE)
iU wine-stable 3.0-1ubuntu1 all Windows API implementation - standard suite
rc wine1.6 1:1.6.2-0ubuntu14.2 amd64 Microsoft Windows Compatibility Layer (Binary Emulator and Library)
ii wine1.8 1:1.8.0-0ubuntu1~ubuntu15.10.1~ppa1 amd64 Microsoft Windows Compatibility Layer (Binary Emulator and Library)
ii wine1.8-amd64 1:1.8.0-0ubuntu1~ubuntu15.10.1~ppa1 amd64 Microsoft Windows Compatibility Layer (64-bit support)
ii wine1.8-i386:i386 1:1.8.0-0ubuntu1~ubuntu15.10.1~ppa1 i386 Microsoft Windows Compatibility Layer (32-bit support)
iU wine32:i386 3.0-1ubuntu1 i386 Windows API implementation - 32-bit binary loader
iU wine64 3.0-1ubuntu1 amd64 Windows API implementation - 64-bit binary loader
ii winetricks 0.0+20180217-1 all package manager for Wine to install software easily
EDIT 3:
$ sudo dpkg --add-architecture i386
$ sudo apt update
Ign:1 http://dl.google.com/linux/chrome/deb stable InRelease
Get:2 http://security.ubuntu.com/ubuntu bionic-security InRelease [88,7 kB]
Hit:3 http://archive.canonical.com/ubuntu bionic InRelease
Hit:4 http://dl.google.com/linux/chrome/deb stable Release
Hit:5 http://archive.canonical.com bionic InRelease
Get:6 https://dl.winehq.org/wine-builds/ubuntu bionic InRelease [6.259 B]
Err:6 https://dl.winehq.org/wine-builds/ubuntu bionic InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 76F1A20FF987672F
Get:8 http://security.ubuntu.com/ubuntu bionic-security/main amd64 DEP-11 Metadata [38,5 kB]
Get:9 http://security.ubuntu.com/ubuntu bionic-security/main DEP-11 48x48 Icons [17,6 kB]
Get:10 http://security.ubuntu.com/ubuntu bionic-security/main DEP-11 64x64 Icons [41,5 kB]
Get:11 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 DEP-11 Metadata [42,1 kB]
Get:12 http://security.ubuntu.com/ubuntu bionic-security/universe DEP-11 48x48 Icons [16,4 kB]
Get:13 http://security.ubuntu.com/ubuntu bionic-security/universe DEP-11 64x64 Icons [111 kB]
Get:14 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 DEP-11 Metadata [2.464 B]
Hit:15 http://tr.archive.ubuntu.com/ubuntu bionic InRelease
Hit:16 http://tr.archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:17 http://tr.archive.ubuntu.com/ubuntu bionic-backports InRelease
Reading package lists... Done
W: GPG error: https://dl.winehq.org/wine-builds/ubuntu bionic InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 76F1A20FF987672F
E: The repository 'https://dl.winehq.org/wine-builds/ubuntu bionic InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
~$ sudo apt install wine-stable wine64 wine32:i386
wine64Reading package lists... Done
Building dependency tree
Reading state information... Done
wine-stable is already the newest version (3.0-1ubuntu1).
wine64 is already the newest version (3.0-1ubuntu1).
wine64 set to manually installed.
wine32:i386 is already the newest version (3.0-1ubuntu1).
wine32:i386 set to manually installed.
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
wine32:i386 : Depends: libwine:i386 (= 3.0-1ubuntu1) but it is not going to be installed
wine64 : Depends: libwine (= 3.0-1ubuntu1) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
sudo apt purge wine1.6 wine1.8 wine1.8-amd64 wine1.8-i386:i386
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
wine32:i386 : Depends: libwine:i386 (= 3.0-1ubuntu1) but it is not going to be installed
wine64 : Depends: libwine (= 3.0-1ubuntu1) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
grep -v ^# /etc/apt/sources.list /etc/apt/sources.list.d/*.list
and add output ofapt-cache policy wine32:i386 wine64 libwine:i386
to the question. Also add the full command which you used for Wine installation.checkinstall
to create local deb-packages from the compiled source? What is the output ofapt-cache policy wine-stable
? How many Wine-related packages do you have? Please add output ofdpkg -l | grep -i wine
.