I used the command
apt-get install wine-stable
to install wine. But i am getting errors as follows:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
wine-stable : Depends: wine-stable-i386 (= 5.0.0~bionic)
Depends: wine-stable-amd64 (= 5.0.0~bionic) but it is not going to be installed
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:50 and /etc/apt/sources.list:54
W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:50 and /etc/apt/sources.list:54
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:50 and /etc/apt/sources.list:54
W: Target Translations (main/i18n/Translation-en_IN) is configured multiple times in /etc/apt/sources.list:50 and /etc/apt/sources.list:54
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:50 and /etc/apt/sources.list:54
W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:50 and /etc/apt/sources.list:54
W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:50 and /etc/apt/sources.list:54
W: Target DEP-11-icons-small (main/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:50 and /etc/apt/sources.list:54
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:50 and /etc/apt/sources.list:54
W: Target CNF (main/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list:50 and /etc/apt/sources.list:54
W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:50 and /etc/apt/sources.list:54
E: Unable to correct problems, you have held broken packages.
Thanks in advance.
Edit 1:
I get the following output when trying to update
Ign:1 cdrom://Ubuntu 18.04.1 LTS _Bionic Beaver_ - Release amd64 (20180725) bionic InRelease
Err:2 cdrom://Ubuntu 18.04.1 LTS _Bionic Beaver_ - Release amd64 (20180725) bionic Release
Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Hit:3 http://dl.winehq.org/wine-builds/ubuntu bionic InRelease
Hit:4 http://linux.teamviewer.com/deb stable InRelease
Hit:5 http://dl.winehq.org/wine-builds/ubuntu artful InRelease
Hit:6 http://in.archive.ubuntu.com/ubuntu bionic InRelease
Ign:7 http://ppa.launchpad.net/ehoover/compholio/ubuntu bionic InRelease
Hit:8 http://in.archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:9 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:10 http://in.archive.ubuntu.com/ubuntu bionic-backports InRelease
Ign:11 https://pkg.jenkins.io/debian-stable binary/ InRelease
Hit:12 http://archive.ubuntu.com/ubuntu bionic InRelease
Hit:13 http://ppa.launchpad.net/gnome3-team/gnome3/ubuntu bionic InRelease
Hit:14 https://pkg.jenkins.io/debian-stable binary/ Release
Ign:15 https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/4.2 InRelease
Hit:16 http://security.ubuntu.com/ubuntu bionic-security InRelease
Hit:18 https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/4.2 Release
Get:17 https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04 ./ InRelease [1,565 B]
Err:17 https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04 ./ InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY DFA175A75104960E
Hit:21 http://ppa.launchpad.net/linuxuprising/java/ubuntu bionic InRelease
Ign:22 http://ppa.launchpad.net/mc3man/xerus-media/ubuntu bionic InRelease
Hit:23 http://ppa.launchpad.net/ondrej/apache2/ubuntu bionic InRelease
Hit:24 http://ppa.launchpad.net/openjdk-r/ppa/ubuntu bionic InRelease
Ign:25 http://ppa.launchpad.net/pipelight/stable/ubuntu bionic InRelease
Hit:26 http://ppa.launchpad.net/webupd8team/java/ubuntu bionic InRelease
Err:27 http://ppa.launchpad.net/ehoover/compholio/ubuntu bionic Release
404 Not Found [IP: 2001:67c:1560:8008::15 80]
Err:28 http://ppa.launchpad.net/mc3man/xerus-media/ubuntu bionic Release
404 Not Found [IP: 2001:67c:1560:8008::15 80]
Err:29 http://ppa.launchpad.net/pipelight/stable/ubuntu bionic Release
404 Not Found [IP: 2001:67c:1560:8008::15 80]
Reading package lists... Done
E: The repository 'cdrom://Ubuntu 18.04.1 LTS _Bionic Beaver_ - Release amd64 (20180725) bionic Release' does not have a Release file.
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.
W: GPG error: https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04 ./ InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY DFA175A75104960E
E: The repository 'https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04 ./ 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.
E: The repository 'http://ppa.launchpad.net/ehoover/compholio/ubuntu bionic Release' does not have a Release file.
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.
E: The repository 'http://ppa.launchpad.net/mc3man/xerus-media/ubuntu bionic Release' does not have a Release file.
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.
E: The repository 'http://ppa.launchpad.net/pipelight/stable/ubuntu bionic Release' does not have a Release file.
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.
W: Target Packages....
and dependency issues are two different errors. What is the output ofapt-cache policy wine-stable
? – Kulfy May 18 '20 at 08:11