Broken Packages Fix Problem (For Wine)












0














I was trying to install Heroes of Might and Magic 3 with Play on Linux. When I start the program it gives me an error message




PlayOnLinux cannot find wine (from Wine). You should install it to use PlayOnLinux.




sudo apt-get install wine


I tried this but I got an error message:




E: Unable to correct problems, you have held broken packages.




What should I do?



Edit:



input:



sudo apt-get install wine


Output:




Reading package lists... Done
Building dependency tree

Reading state information... Done
Package wine is a virtual package provided by:
winehq-staging 4.0~rc1~cosmic
winehq-stable 3.0.4~cosmic
winehq-devel 4.0~rc1~cosmic
wine-development 3.6-1
You should explicitly select one to install.
E: Package 'wine' has no installation candidate




And when I type



sudo apt-get install winehq-stable


I get this




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:
winehq-stable : Depends: wine-stable (= 3.0.4~cosmic)
E: Unable to correct problems, you have held broken packages.




Here is my system:



lsb_release -a



No LSB modules are available.



Distributor ID: Ubuntu



Description: Ubuntu 18.04.1 LTS



Release: 18.04



Codename: bionic




Edit:



sudo apt --fix-broken install




Reading package lists... Done




Building dependency tree



Reading state information... Done



The following packages were automatically installed and are no longer
required:



linux-headers-4.15.0-38 linux-headers-4.15.0-38-generic



linux-image-4.15.0-38-generic linux-modules-4.15.0-38-generic



linux-modules-extra-4.15.0-38-generic



Use 'sudo apt autoremove' to remove them.



0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.




Edit:



sudo apt remove wine winehq-stable



Reading package lists... Done Building dependency tree Reading



state information... Done Virtual packages like 'wine' can't be



removed Package 'winehq-stable' is not installed, so not removed The



following packages were automatically installed and are no longer



required: linux-headers-4.15.0-38 linux-headers-4.15.0-38-generic



linux-image-4.15.0-38-generic linux-modules-4.15.0-38-generic



linux-modules-extra-4.15.0-38-generic Use 'sudo apt autoremove' to



remove them. 0 upgraded, 0 newly installed, 0 to remove and 0 not
upgraded.




sudo apt autoremove



Reading package lists... Done Building dependency tree Reading



state information... Done The following packages will be REMOVED:



linux-headers-4.15.0-38 linux-headers-4.15.0-38-generic



linux-image-4.15.0-38-generic linux-modules-4.15.0-38-generic



linux-modules-extra-4.15.0-38-generic 0 upgraded, 0 newly installed, 5



to remove and 0 not upgraded. After this operation, 336 MB disk space



will be freed. Do you want to continue? [Y/n] (Reading database ...



268454 files and directories currently installed.) Removing



linux-headers-4.15.0-38-generic (4.15.0-38.41) ... Removing



linux-headers-4.15.0-38 (4.15.0-38.41) ... Removing



linux-modules-extra-4.15.0-38-generic (4.15.0-38.41) ... Removing



linux-image-4.15.0-38-generic (4.15.0-38.41) ...



/etc/kernel/postrm.d/initramfs-tools: update-initramfs: Deleting



/boot/initrd.img-4.15.0-38-generic



/etc/kernel/postrm.d/zz-update-grub: Generating grub configuration



file ... Found linux image: /boot/vmlinuz-4.15.0-42-generic Found



initrd image: /boot/initrd.img-4.15.0-42-generic Found linux image:



/boot/vmlinuz-4.15.0-39-generic Found initrd image:



/boot/initrd.img-4.15.0-39-generic Adding boot menu entry for EFI



firmware configuration done Removing linux-modules-4.15.0-38-generic



(4.15.0-38.41) ...




sudo apt-add-repository --remove 'deb http://dl.winehq.org/wine-builds/ubuntu/ bionic main'


Has no output.



sudo apt update




Get:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB] Ign:2




https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Ubuntu_18.10_standard



./ InRelease Get:3 http://security.ubuntu.com/ubuntu



bionic-security/main amd64 DEP-11 Metadata [204 B] Hit:4



https://download.opensuse.org/repositories/Emulators:/Wine:/Debian
/Ubuntu_18.10_standard



./ Release Get:6 http://security.ubuntu.com/ubuntu



bionic-security/universe amd64 DEP-11 Metadata [14.5 kB] Get:7



http://security.ubuntu.com/ubuntu bionic-security/universe DEP-11



48x48 Icons [9,088 B] Get:8 http://security.ubuntu.com/ubuntu



bionic-security/universe DEP-11 64x64 Icons [36.7 kB] Get:9



http://security.ubuntu.com/ubuntu bionic-security/universe DEP-11



128x128 Icons [65.9 kB] Hit:10 http://cy.archive.ubuntu.com/ubuntu



bionic InRelease Get:11



http://cy.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]



Get:12 http://cy.archive.ubuntu.com/ubuntu bionic-backports InRelease



[74.6 kB] Get:13 http://cy.archive.ubuntu.com/ubuntu



bionic-updates/main i386 Packages [402 kB] Get:14



http://cy.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages



[459 kB] Hit:15 http://deb.playonlinux.com xenial InRelease



Ign:16 http://ppa.launchpad.net/damien-moore/codeblocks-stable/ubuntu



bionic InRelease Get:17 http://cy.archive.ubuntu.com/ubuntu



bionic-updates/main amd64 DEP-11 Metadata [245 kB] Hit:18



http://ppa.launchpad.net/deluge-team/ppa/ubuntu bionic InRelease



Hit:19 http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu bionic



InRelease Hit:20 http://ppa.launchpad.net/noobslab/themes/ubuntu



bionic InRelease Get:21 http://cy.archive.ubuntu.com/ubuntu



bionic-updates/main DEP-11 48x48 Icons [55.7 kB] Hit:22



http://ppa.launchpad.net/rikmills/latte-dock/ubuntu bionic InRelease



Get:23 http://cy.archive.ubuntu.com/ubuntu bionic-updates/main DEP-11



64x64 Icons [105 kB] Ign:24 http://ppa.launchpad.net/vcmi/ppa/ubuntu



bionic InRelease Hit:25



http://ppa.launchpad.net/webupd8team/java/ubuntu bionic InRelease



Get:26 http://cy.archive.ubuntu.com/ubuntu bionic-updates/main DEP-11



128x128 Icons [266 kB] Err:27



http://ppa.launchpad.net/damien-moore/codeblocks-stable/ubuntu bionic



Release 404 Not Found [IP: 91.189.95.83 80] Err:28



http://ppa.launchpad.net/vcmi/ppa/ubuntu bionic Release



404 Not Found [IP: 91.189.95.83 80] Get:29



http://cy.archive.ubuntu.com/ubuntu bionic-updates/universe amd64



Packages [594 kB] Get:30 http://cy.archive.ubuntu.com/ubuntu



bionic-updates/universe i386 Packages [588 kB] Get:31



http://cy.archive.ubuntu.com/ubuntu bionic-updates/universe amd64



DEP-11 Metadata [199 kB] Get:32 http://cy.archive.ubuntu.com/ubuntu



bionic-updates/universe DEP-11 48x48 Icons [186 kB] Get:33



http://cy.archive.ubuntu.com/ubuntu bionic-updates/universe DEP-11



64x64 Icons [333 kB] Get:34 http://cy.archive.ubuntu.com/ubuntu



bionic-updates/universe DEP-11 128x128 Icons [767 kB] Get:35



http://cy.archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64



DEP-11 Metadata [2,464 B] Get:36 http://cy.archive.ubuntu.com/ubuntu



bionic-backports/universe amd64 DEP-11 Metadata [5,812 B] Reading



package lists... Done



E: The repository



'http://ppa.launchpad.net/damien-moore/codeblocks-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. E: The repository



'http://ppa.launchpad.net/vcmi/ppa/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.




sudo apt upgrade



Reading package lists... Done Building dependency tree Reading



state information... Done Calculating upgrade... Done 0 upgraded, 0



newly installed, 0 to remove and 0 not upgraded.




sudo apt-get install winehq-stable



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: winehq-stable :



Depends: wine-stable (= 3.0.4~cosmic) E: Unable to correct problems,



you have held broken packages.




Edit:



 sudo apt-add-repository https://dl.winehq.org/wine-builds/ubuntu/



Hit:1 http://deb.playonlinux.com xenial InRelease
Ign:2 http://ppa.launchpad.net/damien-moore/codeblocks-stable/ubuntu
bionic
InRelease Hit:3 http://cy.archive.ubuntu.com/ubuntu bionic InRelease

Hit:4 http://security.ubuntu.com/ubuntu bionic-security InRelease

Hit:5 http://cy.archive.ubuntu.com/ubuntu bionic-updates InRelease

Hit:6 http://ppa.launchpad.net/deluge-team/ppa/ubuntu bionic InRelease
Hit:7 http://cy.archive.ubuntu.com/ubuntu bionic-backports InRelease

Hit:8 http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu bionic
InRelease Hit:9 https://dl.winehq.org/wine-builds/ubuntu bionic
InRelease Hit:10
http://ppa.launchpad.net/noobslab/themes/ubuntu bionic InRelease
Hit:11 http://ppa.launchpad.net/rikmills/latte-dock/ubuntu bionic
InRelease Ign:12 http://ppa.launchpad.net/vcmi/ppa/ubuntu bionic
InRelease Hit:13
http://ppa.launchpad.net/webupd8team/java/ubuntu bionic InRelease
Err:14 http://ppa.launchpad.net/damien-moore/codeblocks-stable/ubuntu
bionic Release 404 Not Found [IP: 91.189.95.83 80] Err:15
http://ppa.launchpad.net/vcmi/ppa/ubuntu bionic Release 404 Not
Found [IP: 91.189.95.83 80] Reading package lists... Done E: The
repository
'http://ppa.launchpad.net/damien-moore/codeblocks-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. E: The repository
'http://ppa.launchpad.net/vcmi/ppa/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.











share|improve this question
























  • @user535733 I did it.
    – sarp
    Dec 12 '18 at 16:00










  • Ubuntu 18.04 is 'Bionic'. The packages you are adding are labelled 'Cosmic' (18.10). See the problem?
    – user535733
    Dec 12 '18 at 16:03










  • Yeah I see the problem. I just don't know the solution. Which is the reason why I write here.
    – sarp
    Dec 12 '18 at 16:07










  • One easy solution is to uninstall all the non-Ubuntu Wine packages, then disable that non-Ubuntu Wine repository, and simply use wine-stable 3.0-1 that's already in the 14.04 Ubuntu repositories.
    – user535733
    Dec 12 '18 at 16:08












  • I don't know how to do those things and I'm kinda afraid damaging it more. I simply uninstalled wine and installed it again and it didn't helped me at all. What now?
    – sarp
    Dec 12 '18 at 16:15
















0














I was trying to install Heroes of Might and Magic 3 with Play on Linux. When I start the program it gives me an error message




PlayOnLinux cannot find wine (from Wine). You should install it to use PlayOnLinux.




sudo apt-get install wine


I tried this but I got an error message:




E: Unable to correct problems, you have held broken packages.




What should I do?



Edit:



input:



sudo apt-get install wine


Output:




Reading package lists... Done
Building dependency tree

Reading state information... Done
Package wine is a virtual package provided by:
winehq-staging 4.0~rc1~cosmic
winehq-stable 3.0.4~cosmic
winehq-devel 4.0~rc1~cosmic
wine-development 3.6-1
You should explicitly select one to install.
E: Package 'wine' has no installation candidate




And when I type



sudo apt-get install winehq-stable


I get this




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:
winehq-stable : Depends: wine-stable (= 3.0.4~cosmic)
E: Unable to correct problems, you have held broken packages.




Here is my system:



lsb_release -a



No LSB modules are available.



Distributor ID: Ubuntu



Description: Ubuntu 18.04.1 LTS



Release: 18.04



Codename: bionic




Edit:



sudo apt --fix-broken install




Reading package lists... Done




Building dependency tree



Reading state information... Done



The following packages were automatically installed and are no longer
required:



linux-headers-4.15.0-38 linux-headers-4.15.0-38-generic



linux-image-4.15.0-38-generic linux-modules-4.15.0-38-generic



linux-modules-extra-4.15.0-38-generic



Use 'sudo apt autoremove' to remove them.



0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.




Edit:



sudo apt remove wine winehq-stable



Reading package lists... Done Building dependency tree Reading



state information... Done Virtual packages like 'wine' can't be



removed Package 'winehq-stable' is not installed, so not removed The



following packages were automatically installed and are no longer



required: linux-headers-4.15.0-38 linux-headers-4.15.0-38-generic



linux-image-4.15.0-38-generic linux-modules-4.15.0-38-generic



linux-modules-extra-4.15.0-38-generic Use 'sudo apt autoremove' to



remove them. 0 upgraded, 0 newly installed, 0 to remove and 0 not
upgraded.




sudo apt autoremove



Reading package lists... Done Building dependency tree Reading



state information... Done The following packages will be REMOVED:



linux-headers-4.15.0-38 linux-headers-4.15.0-38-generic



linux-image-4.15.0-38-generic linux-modules-4.15.0-38-generic



linux-modules-extra-4.15.0-38-generic 0 upgraded, 0 newly installed, 5



to remove and 0 not upgraded. After this operation, 336 MB disk space



will be freed. Do you want to continue? [Y/n] (Reading database ...



268454 files and directories currently installed.) Removing



linux-headers-4.15.0-38-generic (4.15.0-38.41) ... Removing



linux-headers-4.15.0-38 (4.15.0-38.41) ... Removing



linux-modules-extra-4.15.0-38-generic (4.15.0-38.41) ... Removing



linux-image-4.15.0-38-generic (4.15.0-38.41) ...



/etc/kernel/postrm.d/initramfs-tools: update-initramfs: Deleting



/boot/initrd.img-4.15.0-38-generic



/etc/kernel/postrm.d/zz-update-grub: Generating grub configuration



file ... Found linux image: /boot/vmlinuz-4.15.0-42-generic Found



initrd image: /boot/initrd.img-4.15.0-42-generic Found linux image:



/boot/vmlinuz-4.15.0-39-generic Found initrd image:



/boot/initrd.img-4.15.0-39-generic Adding boot menu entry for EFI



firmware configuration done Removing linux-modules-4.15.0-38-generic



(4.15.0-38.41) ...




sudo apt-add-repository --remove 'deb http://dl.winehq.org/wine-builds/ubuntu/ bionic main'


Has no output.



sudo apt update




Get:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB] Ign:2




https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Ubuntu_18.10_standard



./ InRelease Get:3 http://security.ubuntu.com/ubuntu



bionic-security/main amd64 DEP-11 Metadata [204 B] Hit:4



https://download.opensuse.org/repositories/Emulators:/Wine:/Debian
/Ubuntu_18.10_standard



./ Release Get:6 http://security.ubuntu.com/ubuntu



bionic-security/universe amd64 DEP-11 Metadata [14.5 kB] Get:7



http://security.ubuntu.com/ubuntu bionic-security/universe DEP-11



48x48 Icons [9,088 B] Get:8 http://security.ubuntu.com/ubuntu



bionic-security/universe DEP-11 64x64 Icons [36.7 kB] Get:9



http://security.ubuntu.com/ubuntu bionic-security/universe DEP-11



128x128 Icons [65.9 kB] Hit:10 http://cy.archive.ubuntu.com/ubuntu



bionic InRelease Get:11



http://cy.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]



Get:12 http://cy.archive.ubuntu.com/ubuntu bionic-backports InRelease



[74.6 kB] Get:13 http://cy.archive.ubuntu.com/ubuntu



bionic-updates/main i386 Packages [402 kB] Get:14



http://cy.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages



[459 kB] Hit:15 http://deb.playonlinux.com xenial InRelease



Ign:16 http://ppa.launchpad.net/damien-moore/codeblocks-stable/ubuntu



bionic InRelease Get:17 http://cy.archive.ubuntu.com/ubuntu



bionic-updates/main amd64 DEP-11 Metadata [245 kB] Hit:18



http://ppa.launchpad.net/deluge-team/ppa/ubuntu bionic InRelease



Hit:19 http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu bionic



InRelease Hit:20 http://ppa.launchpad.net/noobslab/themes/ubuntu



bionic InRelease Get:21 http://cy.archive.ubuntu.com/ubuntu



bionic-updates/main DEP-11 48x48 Icons [55.7 kB] Hit:22



http://ppa.launchpad.net/rikmills/latte-dock/ubuntu bionic InRelease



Get:23 http://cy.archive.ubuntu.com/ubuntu bionic-updates/main DEP-11



64x64 Icons [105 kB] Ign:24 http://ppa.launchpad.net/vcmi/ppa/ubuntu



bionic InRelease Hit:25



http://ppa.launchpad.net/webupd8team/java/ubuntu bionic InRelease



Get:26 http://cy.archive.ubuntu.com/ubuntu bionic-updates/main DEP-11



128x128 Icons [266 kB] Err:27



http://ppa.launchpad.net/damien-moore/codeblocks-stable/ubuntu bionic



Release 404 Not Found [IP: 91.189.95.83 80] Err:28



http://ppa.launchpad.net/vcmi/ppa/ubuntu bionic Release



404 Not Found [IP: 91.189.95.83 80] Get:29



http://cy.archive.ubuntu.com/ubuntu bionic-updates/universe amd64



Packages [594 kB] Get:30 http://cy.archive.ubuntu.com/ubuntu



bionic-updates/universe i386 Packages [588 kB] Get:31



http://cy.archive.ubuntu.com/ubuntu bionic-updates/universe amd64



DEP-11 Metadata [199 kB] Get:32 http://cy.archive.ubuntu.com/ubuntu



bionic-updates/universe DEP-11 48x48 Icons [186 kB] Get:33



http://cy.archive.ubuntu.com/ubuntu bionic-updates/universe DEP-11



64x64 Icons [333 kB] Get:34 http://cy.archive.ubuntu.com/ubuntu



bionic-updates/universe DEP-11 128x128 Icons [767 kB] Get:35



http://cy.archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64



DEP-11 Metadata [2,464 B] Get:36 http://cy.archive.ubuntu.com/ubuntu



bionic-backports/universe amd64 DEP-11 Metadata [5,812 B] Reading



package lists... Done



E: The repository



'http://ppa.launchpad.net/damien-moore/codeblocks-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. E: The repository



'http://ppa.launchpad.net/vcmi/ppa/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.




sudo apt upgrade



Reading package lists... Done Building dependency tree Reading



state information... Done Calculating upgrade... Done 0 upgraded, 0



newly installed, 0 to remove and 0 not upgraded.




sudo apt-get install winehq-stable



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: winehq-stable :



Depends: wine-stable (= 3.0.4~cosmic) E: Unable to correct problems,



you have held broken packages.




Edit:



 sudo apt-add-repository https://dl.winehq.org/wine-builds/ubuntu/



Hit:1 http://deb.playonlinux.com xenial InRelease
Ign:2 http://ppa.launchpad.net/damien-moore/codeblocks-stable/ubuntu
bionic
InRelease Hit:3 http://cy.archive.ubuntu.com/ubuntu bionic InRelease

Hit:4 http://security.ubuntu.com/ubuntu bionic-security InRelease

Hit:5 http://cy.archive.ubuntu.com/ubuntu bionic-updates InRelease

Hit:6 http://ppa.launchpad.net/deluge-team/ppa/ubuntu bionic InRelease
Hit:7 http://cy.archive.ubuntu.com/ubuntu bionic-backports InRelease

Hit:8 http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu bionic
InRelease Hit:9 https://dl.winehq.org/wine-builds/ubuntu bionic
InRelease Hit:10
http://ppa.launchpad.net/noobslab/themes/ubuntu bionic InRelease
Hit:11 http://ppa.launchpad.net/rikmills/latte-dock/ubuntu bionic
InRelease Ign:12 http://ppa.launchpad.net/vcmi/ppa/ubuntu bionic
InRelease Hit:13
http://ppa.launchpad.net/webupd8team/java/ubuntu bionic InRelease
Err:14 http://ppa.launchpad.net/damien-moore/codeblocks-stable/ubuntu
bionic Release 404 Not Found [IP: 91.189.95.83 80] Err:15
http://ppa.launchpad.net/vcmi/ppa/ubuntu bionic Release 404 Not
Found [IP: 91.189.95.83 80] Reading package lists... Done E: The
repository
'http://ppa.launchpad.net/damien-moore/codeblocks-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. E: The repository
'http://ppa.launchpad.net/vcmi/ppa/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.











share|improve this question
























  • @user535733 I did it.
    – sarp
    Dec 12 '18 at 16:00










  • Ubuntu 18.04 is 'Bionic'. The packages you are adding are labelled 'Cosmic' (18.10). See the problem?
    – user535733
    Dec 12 '18 at 16:03










  • Yeah I see the problem. I just don't know the solution. Which is the reason why I write here.
    – sarp
    Dec 12 '18 at 16:07










  • One easy solution is to uninstall all the non-Ubuntu Wine packages, then disable that non-Ubuntu Wine repository, and simply use wine-stable 3.0-1 that's already in the 14.04 Ubuntu repositories.
    – user535733
    Dec 12 '18 at 16:08












  • I don't know how to do those things and I'm kinda afraid damaging it more. I simply uninstalled wine and installed it again and it didn't helped me at all. What now?
    – sarp
    Dec 12 '18 at 16:15














0












0








0







I was trying to install Heroes of Might and Magic 3 with Play on Linux. When I start the program it gives me an error message




PlayOnLinux cannot find wine (from Wine). You should install it to use PlayOnLinux.




sudo apt-get install wine


I tried this but I got an error message:




E: Unable to correct problems, you have held broken packages.




What should I do?



Edit:



input:



sudo apt-get install wine


Output:




Reading package lists... Done
Building dependency tree

Reading state information... Done
Package wine is a virtual package provided by:
winehq-staging 4.0~rc1~cosmic
winehq-stable 3.0.4~cosmic
winehq-devel 4.0~rc1~cosmic
wine-development 3.6-1
You should explicitly select one to install.
E: Package 'wine' has no installation candidate




And when I type



sudo apt-get install winehq-stable


I get this




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:
winehq-stable : Depends: wine-stable (= 3.0.4~cosmic)
E: Unable to correct problems, you have held broken packages.




Here is my system:



lsb_release -a



No LSB modules are available.



Distributor ID: Ubuntu



Description: Ubuntu 18.04.1 LTS



Release: 18.04



Codename: bionic




Edit:



sudo apt --fix-broken install




Reading package lists... Done




Building dependency tree



Reading state information... Done



The following packages were automatically installed and are no longer
required:



linux-headers-4.15.0-38 linux-headers-4.15.0-38-generic



linux-image-4.15.0-38-generic linux-modules-4.15.0-38-generic



linux-modules-extra-4.15.0-38-generic



Use 'sudo apt autoremove' to remove them.



0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.




Edit:



sudo apt remove wine winehq-stable



Reading package lists... Done Building dependency tree Reading



state information... Done Virtual packages like 'wine' can't be



removed Package 'winehq-stable' is not installed, so not removed The



following packages were automatically installed and are no longer



required: linux-headers-4.15.0-38 linux-headers-4.15.0-38-generic



linux-image-4.15.0-38-generic linux-modules-4.15.0-38-generic



linux-modules-extra-4.15.0-38-generic Use 'sudo apt autoremove' to



remove them. 0 upgraded, 0 newly installed, 0 to remove and 0 not
upgraded.




sudo apt autoremove



Reading package lists... Done Building dependency tree Reading



state information... Done The following packages will be REMOVED:



linux-headers-4.15.0-38 linux-headers-4.15.0-38-generic



linux-image-4.15.0-38-generic linux-modules-4.15.0-38-generic



linux-modules-extra-4.15.0-38-generic 0 upgraded, 0 newly installed, 5



to remove and 0 not upgraded. After this operation, 336 MB disk space



will be freed. Do you want to continue? [Y/n] (Reading database ...



268454 files and directories currently installed.) Removing



linux-headers-4.15.0-38-generic (4.15.0-38.41) ... Removing



linux-headers-4.15.0-38 (4.15.0-38.41) ... Removing



linux-modules-extra-4.15.0-38-generic (4.15.0-38.41) ... Removing



linux-image-4.15.0-38-generic (4.15.0-38.41) ...



/etc/kernel/postrm.d/initramfs-tools: update-initramfs: Deleting



/boot/initrd.img-4.15.0-38-generic



/etc/kernel/postrm.d/zz-update-grub: Generating grub configuration



file ... Found linux image: /boot/vmlinuz-4.15.0-42-generic Found



initrd image: /boot/initrd.img-4.15.0-42-generic Found linux image:



/boot/vmlinuz-4.15.0-39-generic Found initrd image:



/boot/initrd.img-4.15.0-39-generic Adding boot menu entry for EFI



firmware configuration done Removing linux-modules-4.15.0-38-generic



(4.15.0-38.41) ...




sudo apt-add-repository --remove 'deb http://dl.winehq.org/wine-builds/ubuntu/ bionic main'


Has no output.



sudo apt update




Get:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB] Ign:2




https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Ubuntu_18.10_standard



./ InRelease Get:3 http://security.ubuntu.com/ubuntu



bionic-security/main amd64 DEP-11 Metadata [204 B] Hit:4



https://download.opensuse.org/repositories/Emulators:/Wine:/Debian
/Ubuntu_18.10_standard



./ Release Get:6 http://security.ubuntu.com/ubuntu



bionic-security/universe amd64 DEP-11 Metadata [14.5 kB] Get:7



http://security.ubuntu.com/ubuntu bionic-security/universe DEP-11



48x48 Icons [9,088 B] Get:8 http://security.ubuntu.com/ubuntu



bionic-security/universe DEP-11 64x64 Icons [36.7 kB] Get:9



http://security.ubuntu.com/ubuntu bionic-security/universe DEP-11



128x128 Icons [65.9 kB] Hit:10 http://cy.archive.ubuntu.com/ubuntu



bionic InRelease Get:11



http://cy.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]



Get:12 http://cy.archive.ubuntu.com/ubuntu bionic-backports InRelease



[74.6 kB] Get:13 http://cy.archive.ubuntu.com/ubuntu



bionic-updates/main i386 Packages [402 kB] Get:14



http://cy.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages



[459 kB] Hit:15 http://deb.playonlinux.com xenial InRelease



Ign:16 http://ppa.launchpad.net/damien-moore/codeblocks-stable/ubuntu



bionic InRelease Get:17 http://cy.archive.ubuntu.com/ubuntu



bionic-updates/main amd64 DEP-11 Metadata [245 kB] Hit:18



http://ppa.launchpad.net/deluge-team/ppa/ubuntu bionic InRelease



Hit:19 http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu bionic



InRelease Hit:20 http://ppa.launchpad.net/noobslab/themes/ubuntu



bionic InRelease Get:21 http://cy.archive.ubuntu.com/ubuntu



bionic-updates/main DEP-11 48x48 Icons [55.7 kB] Hit:22



http://ppa.launchpad.net/rikmills/latte-dock/ubuntu bionic InRelease



Get:23 http://cy.archive.ubuntu.com/ubuntu bionic-updates/main DEP-11



64x64 Icons [105 kB] Ign:24 http://ppa.launchpad.net/vcmi/ppa/ubuntu



bionic InRelease Hit:25



http://ppa.launchpad.net/webupd8team/java/ubuntu bionic InRelease



Get:26 http://cy.archive.ubuntu.com/ubuntu bionic-updates/main DEP-11



128x128 Icons [266 kB] Err:27



http://ppa.launchpad.net/damien-moore/codeblocks-stable/ubuntu bionic



Release 404 Not Found [IP: 91.189.95.83 80] Err:28



http://ppa.launchpad.net/vcmi/ppa/ubuntu bionic Release



404 Not Found [IP: 91.189.95.83 80] Get:29



http://cy.archive.ubuntu.com/ubuntu bionic-updates/universe amd64



Packages [594 kB] Get:30 http://cy.archive.ubuntu.com/ubuntu



bionic-updates/universe i386 Packages [588 kB] Get:31



http://cy.archive.ubuntu.com/ubuntu bionic-updates/universe amd64



DEP-11 Metadata [199 kB] Get:32 http://cy.archive.ubuntu.com/ubuntu



bionic-updates/universe DEP-11 48x48 Icons [186 kB] Get:33



http://cy.archive.ubuntu.com/ubuntu bionic-updates/universe DEP-11



64x64 Icons [333 kB] Get:34 http://cy.archive.ubuntu.com/ubuntu



bionic-updates/universe DEP-11 128x128 Icons [767 kB] Get:35



http://cy.archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64



DEP-11 Metadata [2,464 B] Get:36 http://cy.archive.ubuntu.com/ubuntu



bionic-backports/universe amd64 DEP-11 Metadata [5,812 B] Reading



package lists... Done



E: The repository



'http://ppa.launchpad.net/damien-moore/codeblocks-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. E: The repository



'http://ppa.launchpad.net/vcmi/ppa/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.




sudo apt upgrade



Reading package lists... Done Building dependency tree Reading



state information... Done Calculating upgrade... Done 0 upgraded, 0



newly installed, 0 to remove and 0 not upgraded.




sudo apt-get install winehq-stable



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: winehq-stable :



Depends: wine-stable (= 3.0.4~cosmic) E: Unable to correct problems,



you have held broken packages.




Edit:



 sudo apt-add-repository https://dl.winehq.org/wine-builds/ubuntu/



Hit:1 http://deb.playonlinux.com xenial InRelease
Ign:2 http://ppa.launchpad.net/damien-moore/codeblocks-stable/ubuntu
bionic
InRelease Hit:3 http://cy.archive.ubuntu.com/ubuntu bionic InRelease

Hit:4 http://security.ubuntu.com/ubuntu bionic-security InRelease

Hit:5 http://cy.archive.ubuntu.com/ubuntu bionic-updates InRelease

Hit:6 http://ppa.launchpad.net/deluge-team/ppa/ubuntu bionic InRelease
Hit:7 http://cy.archive.ubuntu.com/ubuntu bionic-backports InRelease

Hit:8 http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu bionic
InRelease Hit:9 https://dl.winehq.org/wine-builds/ubuntu bionic
InRelease Hit:10
http://ppa.launchpad.net/noobslab/themes/ubuntu bionic InRelease
Hit:11 http://ppa.launchpad.net/rikmills/latte-dock/ubuntu bionic
InRelease Ign:12 http://ppa.launchpad.net/vcmi/ppa/ubuntu bionic
InRelease Hit:13
http://ppa.launchpad.net/webupd8team/java/ubuntu bionic InRelease
Err:14 http://ppa.launchpad.net/damien-moore/codeblocks-stable/ubuntu
bionic Release 404 Not Found [IP: 91.189.95.83 80] Err:15
http://ppa.launchpad.net/vcmi/ppa/ubuntu bionic Release 404 Not
Found [IP: 91.189.95.83 80] Reading package lists... Done E: The
repository
'http://ppa.launchpad.net/damien-moore/codeblocks-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. E: The repository
'http://ppa.launchpad.net/vcmi/ppa/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.











share|improve this question















I was trying to install Heroes of Might and Magic 3 with Play on Linux. When I start the program it gives me an error message




PlayOnLinux cannot find wine (from Wine). You should install it to use PlayOnLinux.




sudo apt-get install wine


I tried this but I got an error message:




E: Unable to correct problems, you have held broken packages.




What should I do?



Edit:



input:



sudo apt-get install wine


Output:




Reading package lists... Done
Building dependency tree

Reading state information... Done
Package wine is a virtual package provided by:
winehq-staging 4.0~rc1~cosmic
winehq-stable 3.0.4~cosmic
winehq-devel 4.0~rc1~cosmic
wine-development 3.6-1
You should explicitly select one to install.
E: Package 'wine' has no installation candidate




And when I type



sudo apt-get install winehq-stable


I get this




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:
winehq-stable : Depends: wine-stable (= 3.0.4~cosmic)
E: Unable to correct problems, you have held broken packages.




Here is my system:



lsb_release -a



No LSB modules are available.



Distributor ID: Ubuntu



Description: Ubuntu 18.04.1 LTS



Release: 18.04



Codename: bionic




Edit:



sudo apt --fix-broken install




Reading package lists... Done




Building dependency tree



Reading state information... Done



The following packages were automatically installed and are no longer
required:



linux-headers-4.15.0-38 linux-headers-4.15.0-38-generic



linux-image-4.15.0-38-generic linux-modules-4.15.0-38-generic



linux-modules-extra-4.15.0-38-generic



Use 'sudo apt autoremove' to remove them.



0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.




Edit:



sudo apt remove wine winehq-stable



Reading package lists... Done Building dependency tree Reading



state information... Done Virtual packages like 'wine' can't be



removed Package 'winehq-stable' is not installed, so not removed The



following packages were automatically installed and are no longer



required: linux-headers-4.15.0-38 linux-headers-4.15.0-38-generic



linux-image-4.15.0-38-generic linux-modules-4.15.0-38-generic



linux-modules-extra-4.15.0-38-generic Use 'sudo apt autoremove' to



remove them. 0 upgraded, 0 newly installed, 0 to remove and 0 not
upgraded.




sudo apt autoremove



Reading package lists... Done Building dependency tree Reading



state information... Done The following packages will be REMOVED:



linux-headers-4.15.0-38 linux-headers-4.15.0-38-generic



linux-image-4.15.0-38-generic linux-modules-4.15.0-38-generic



linux-modules-extra-4.15.0-38-generic 0 upgraded, 0 newly installed, 5



to remove and 0 not upgraded. After this operation, 336 MB disk space



will be freed. Do you want to continue? [Y/n] (Reading database ...



268454 files and directories currently installed.) Removing



linux-headers-4.15.0-38-generic (4.15.0-38.41) ... Removing



linux-headers-4.15.0-38 (4.15.0-38.41) ... Removing



linux-modules-extra-4.15.0-38-generic (4.15.0-38.41) ... Removing



linux-image-4.15.0-38-generic (4.15.0-38.41) ...



/etc/kernel/postrm.d/initramfs-tools: update-initramfs: Deleting



/boot/initrd.img-4.15.0-38-generic



/etc/kernel/postrm.d/zz-update-grub: Generating grub configuration



file ... Found linux image: /boot/vmlinuz-4.15.0-42-generic Found



initrd image: /boot/initrd.img-4.15.0-42-generic Found linux image:



/boot/vmlinuz-4.15.0-39-generic Found initrd image:



/boot/initrd.img-4.15.0-39-generic Adding boot menu entry for EFI



firmware configuration done Removing linux-modules-4.15.0-38-generic



(4.15.0-38.41) ...




sudo apt-add-repository --remove 'deb http://dl.winehq.org/wine-builds/ubuntu/ bionic main'


Has no output.



sudo apt update




Get:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB] Ign:2




https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Ubuntu_18.10_standard



./ InRelease Get:3 http://security.ubuntu.com/ubuntu



bionic-security/main amd64 DEP-11 Metadata [204 B] Hit:4



https://download.opensuse.org/repositories/Emulators:/Wine:/Debian
/Ubuntu_18.10_standard



./ Release Get:6 http://security.ubuntu.com/ubuntu



bionic-security/universe amd64 DEP-11 Metadata [14.5 kB] Get:7



http://security.ubuntu.com/ubuntu bionic-security/universe DEP-11



48x48 Icons [9,088 B] Get:8 http://security.ubuntu.com/ubuntu



bionic-security/universe DEP-11 64x64 Icons [36.7 kB] Get:9



http://security.ubuntu.com/ubuntu bionic-security/universe DEP-11



128x128 Icons [65.9 kB] Hit:10 http://cy.archive.ubuntu.com/ubuntu



bionic InRelease Get:11



http://cy.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]



Get:12 http://cy.archive.ubuntu.com/ubuntu bionic-backports InRelease



[74.6 kB] Get:13 http://cy.archive.ubuntu.com/ubuntu



bionic-updates/main i386 Packages [402 kB] Get:14



http://cy.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages



[459 kB] Hit:15 http://deb.playonlinux.com xenial InRelease



Ign:16 http://ppa.launchpad.net/damien-moore/codeblocks-stable/ubuntu



bionic InRelease Get:17 http://cy.archive.ubuntu.com/ubuntu



bionic-updates/main amd64 DEP-11 Metadata [245 kB] Hit:18



http://ppa.launchpad.net/deluge-team/ppa/ubuntu bionic InRelease



Hit:19 http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu bionic



InRelease Hit:20 http://ppa.launchpad.net/noobslab/themes/ubuntu



bionic InRelease Get:21 http://cy.archive.ubuntu.com/ubuntu



bionic-updates/main DEP-11 48x48 Icons [55.7 kB] Hit:22



http://ppa.launchpad.net/rikmills/latte-dock/ubuntu bionic InRelease



Get:23 http://cy.archive.ubuntu.com/ubuntu bionic-updates/main DEP-11



64x64 Icons [105 kB] Ign:24 http://ppa.launchpad.net/vcmi/ppa/ubuntu



bionic InRelease Hit:25



http://ppa.launchpad.net/webupd8team/java/ubuntu bionic InRelease



Get:26 http://cy.archive.ubuntu.com/ubuntu bionic-updates/main DEP-11



128x128 Icons [266 kB] Err:27



http://ppa.launchpad.net/damien-moore/codeblocks-stable/ubuntu bionic



Release 404 Not Found [IP: 91.189.95.83 80] Err:28



http://ppa.launchpad.net/vcmi/ppa/ubuntu bionic Release



404 Not Found [IP: 91.189.95.83 80] Get:29



http://cy.archive.ubuntu.com/ubuntu bionic-updates/universe amd64



Packages [594 kB] Get:30 http://cy.archive.ubuntu.com/ubuntu



bionic-updates/universe i386 Packages [588 kB] Get:31



http://cy.archive.ubuntu.com/ubuntu bionic-updates/universe amd64



DEP-11 Metadata [199 kB] Get:32 http://cy.archive.ubuntu.com/ubuntu



bionic-updates/universe DEP-11 48x48 Icons [186 kB] Get:33



http://cy.archive.ubuntu.com/ubuntu bionic-updates/universe DEP-11



64x64 Icons [333 kB] Get:34 http://cy.archive.ubuntu.com/ubuntu



bionic-updates/universe DEP-11 128x128 Icons [767 kB] Get:35



http://cy.archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64



DEP-11 Metadata [2,464 B] Get:36 http://cy.archive.ubuntu.com/ubuntu



bionic-backports/universe amd64 DEP-11 Metadata [5,812 B] Reading



package lists... Done



E: The repository



'http://ppa.launchpad.net/damien-moore/codeblocks-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. E: The repository



'http://ppa.launchpad.net/vcmi/ppa/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.




sudo apt upgrade



Reading package lists... Done Building dependency tree Reading



state information... Done Calculating upgrade... Done 0 upgraded, 0



newly installed, 0 to remove and 0 not upgraded.




sudo apt-get install winehq-stable



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: winehq-stable :



Depends: wine-stable (= 3.0.4~cosmic) E: Unable to correct problems,



you have held broken packages.




Edit:



 sudo apt-add-repository https://dl.winehq.org/wine-builds/ubuntu/



Hit:1 http://deb.playonlinux.com xenial InRelease
Ign:2 http://ppa.launchpad.net/damien-moore/codeblocks-stable/ubuntu
bionic
InRelease Hit:3 http://cy.archive.ubuntu.com/ubuntu bionic InRelease

Hit:4 http://security.ubuntu.com/ubuntu bionic-security InRelease

Hit:5 http://cy.archive.ubuntu.com/ubuntu bionic-updates InRelease

Hit:6 http://ppa.launchpad.net/deluge-team/ppa/ubuntu bionic InRelease
Hit:7 http://cy.archive.ubuntu.com/ubuntu bionic-backports InRelease

Hit:8 http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu bionic
InRelease Hit:9 https://dl.winehq.org/wine-builds/ubuntu bionic
InRelease Hit:10
http://ppa.launchpad.net/noobslab/themes/ubuntu bionic InRelease
Hit:11 http://ppa.launchpad.net/rikmills/latte-dock/ubuntu bionic
InRelease Ign:12 http://ppa.launchpad.net/vcmi/ppa/ubuntu bionic
InRelease Hit:13
http://ppa.launchpad.net/webupd8team/java/ubuntu bionic InRelease
Err:14 http://ppa.launchpad.net/damien-moore/codeblocks-stable/ubuntu
bionic Release 404 Not Found [IP: 91.189.95.83 80] Err:15
http://ppa.launchpad.net/vcmi/ppa/ubuntu bionic Release 404 Not
Found [IP: 91.189.95.83 80] Reading package lists... Done E: The
repository
'http://ppa.launchpad.net/damien-moore/codeblocks-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. E: The repository
'http://ppa.launchpad.net/vcmi/ppa/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.








package-management wine playonlinux






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 15 '18 at 15:20

























asked Dec 12 '18 at 15:08









sarp

3016




3016












  • @user535733 I did it.
    – sarp
    Dec 12 '18 at 16:00










  • Ubuntu 18.04 is 'Bionic'. The packages you are adding are labelled 'Cosmic' (18.10). See the problem?
    – user535733
    Dec 12 '18 at 16:03










  • Yeah I see the problem. I just don't know the solution. Which is the reason why I write here.
    – sarp
    Dec 12 '18 at 16:07










  • One easy solution is to uninstall all the non-Ubuntu Wine packages, then disable that non-Ubuntu Wine repository, and simply use wine-stable 3.0-1 that's already in the 14.04 Ubuntu repositories.
    – user535733
    Dec 12 '18 at 16:08












  • I don't know how to do those things and I'm kinda afraid damaging it more. I simply uninstalled wine and installed it again and it didn't helped me at all. What now?
    – sarp
    Dec 12 '18 at 16:15


















  • @user535733 I did it.
    – sarp
    Dec 12 '18 at 16:00










  • Ubuntu 18.04 is 'Bionic'. The packages you are adding are labelled 'Cosmic' (18.10). See the problem?
    – user535733
    Dec 12 '18 at 16:03










  • Yeah I see the problem. I just don't know the solution. Which is the reason why I write here.
    – sarp
    Dec 12 '18 at 16:07










  • One easy solution is to uninstall all the non-Ubuntu Wine packages, then disable that non-Ubuntu Wine repository, and simply use wine-stable 3.0-1 that's already in the 14.04 Ubuntu repositories.
    – user535733
    Dec 12 '18 at 16:08












  • I don't know how to do those things and I'm kinda afraid damaging it more. I simply uninstalled wine and installed it again and it didn't helped me at all. What now?
    – sarp
    Dec 12 '18 at 16:15
















@user535733 I did it.
– sarp
Dec 12 '18 at 16:00




@user535733 I did it.
– sarp
Dec 12 '18 at 16:00












Ubuntu 18.04 is 'Bionic'. The packages you are adding are labelled 'Cosmic' (18.10). See the problem?
– user535733
Dec 12 '18 at 16:03




Ubuntu 18.04 is 'Bionic'. The packages you are adding are labelled 'Cosmic' (18.10). See the problem?
– user535733
Dec 12 '18 at 16:03












Yeah I see the problem. I just don't know the solution. Which is the reason why I write here.
– sarp
Dec 12 '18 at 16:07




Yeah I see the problem. I just don't know the solution. Which is the reason why I write here.
– sarp
Dec 12 '18 at 16:07












One easy solution is to uninstall all the non-Ubuntu Wine packages, then disable that non-Ubuntu Wine repository, and simply use wine-stable 3.0-1 that's already in the 14.04 Ubuntu repositories.
– user535733
Dec 12 '18 at 16:08






One easy solution is to uninstall all the non-Ubuntu Wine packages, then disable that non-Ubuntu Wine repository, and simply use wine-stable 3.0-1 that's already in the 14.04 Ubuntu repositories.
– user535733
Dec 12 '18 at 16:08














I don't know how to do those things and I'm kinda afraid damaging it more. I simply uninstalled wine and installed it again and it didn't helped me at all. What now?
– sarp
Dec 12 '18 at 16:15




I don't know how to do those things and I'm kinda afraid damaging it more. I simply uninstalled wine and installed it again and it didn't helped me at all. What now?
– sarp
Dec 12 '18 at 16:15










2 Answers
2






active

oldest

votes


















3














Do 1:



 sudo apt-add-repository --remove 'deb https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Ubuntu_18.10_standard ./'


Do 2:



 wget -nc https://dl.winehq.org/wine-builds/Release.key

sudo apt-key add Release.key

sudo apt-add-repository https://dl.winehq.org/wine-builds/ubuntu/


3:apt-get update



4:Then install your preferred wine



sudo apt-get install --install-recommends winehq-stable

sudo apt-get install --install-recommends winehq-devel

sudo apt-get install --install-recommends winehq-staging


Tell me if it works!






share|improve this answer























  • Yes, this did it. Thank you very much.
    – sarp
    Dec 15 '18 at 15:21



















0














From the error you're getting, looks like you have configured the whinehq repository.



As the very same error is telling you, you have to choose which branch of wine you'd like to install, as wine is just a virtual package and it has no installation candidates so apt cannot choose by itself what to install.



As indicated here, you can install a stable version (winehq-stable), a development version (winehq-devel) or a staging version (winehq-staging).



While I'm pretty happy on my systems with winehq-staging, I suggest you install the winehq-stable branch that (as the name implies) should be the "most stable" branch of wine.



As suggested on the official WineHQ documentation, make sure to install it with the flag --install-recommends



sudo apt-get install --install-recommends winehq-stable





share|improve this answer























  • 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: winehq-stable : Depends: wine-stable (= 3.0.4~cosmic) E: Unable to correct problems, you have held broken packages. This is what I get
    – sarp
    Dec 12 '18 at 15:43










  • @sarp I've updated my answer. Make sure you use --install-recommends.
    – Mr Shunz
    Dec 12 '18 at 15:45










  • Thank you for your effort and time but I still have the same error: The following packages have unmet dependencies: winehq-stable : Depends: wine-stable (= 3.0.4~cosmic) E: Unable to correct problems, you have held broken packages.
    – sarp
    Dec 12 '18 at 15:49










  • @sarp If you're still getting errors, try sudo apt --fix-broken install. Please don't post errors in comments, edit instead your answer with the results of the above comment.
    – Mr Shunz
    Dec 12 '18 at 15:52











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1100351%2fbroken-packages-fix-problem-for-wine%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes









3














Do 1:



 sudo apt-add-repository --remove 'deb https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Ubuntu_18.10_standard ./'


Do 2:



 wget -nc https://dl.winehq.org/wine-builds/Release.key

sudo apt-key add Release.key

sudo apt-add-repository https://dl.winehq.org/wine-builds/ubuntu/


3:apt-get update



4:Then install your preferred wine



sudo apt-get install --install-recommends winehq-stable

sudo apt-get install --install-recommends winehq-devel

sudo apt-get install --install-recommends winehq-staging


Tell me if it works!






share|improve this answer























  • Yes, this did it. Thank you very much.
    – sarp
    Dec 15 '18 at 15:21
















3














Do 1:



 sudo apt-add-repository --remove 'deb https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Ubuntu_18.10_standard ./'


Do 2:



 wget -nc https://dl.winehq.org/wine-builds/Release.key

sudo apt-key add Release.key

sudo apt-add-repository https://dl.winehq.org/wine-builds/ubuntu/


3:apt-get update



4:Then install your preferred wine



sudo apt-get install --install-recommends winehq-stable

sudo apt-get install --install-recommends winehq-devel

sudo apt-get install --install-recommends winehq-staging


Tell me if it works!






share|improve this answer























  • Yes, this did it. Thank you very much.
    – sarp
    Dec 15 '18 at 15:21














3












3








3






Do 1:



 sudo apt-add-repository --remove 'deb https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Ubuntu_18.10_standard ./'


Do 2:



 wget -nc https://dl.winehq.org/wine-builds/Release.key

sudo apt-key add Release.key

sudo apt-add-repository https://dl.winehq.org/wine-builds/ubuntu/


3:apt-get update



4:Then install your preferred wine



sudo apt-get install --install-recommends winehq-stable

sudo apt-get install --install-recommends winehq-devel

sudo apt-get install --install-recommends winehq-staging


Tell me if it works!






share|improve this answer














Do 1:



 sudo apt-add-repository --remove 'deb https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Ubuntu_18.10_standard ./'


Do 2:



 wget -nc https://dl.winehq.org/wine-builds/Release.key

sudo apt-key add Release.key

sudo apt-add-repository https://dl.winehq.org/wine-builds/ubuntu/


3:apt-get update



4:Then install your preferred wine



sudo apt-get install --install-recommends winehq-stable

sudo apt-get install --install-recommends winehq-devel

sudo apt-get install --install-recommends winehq-staging


Tell me if it works!







share|improve this answer














share|improve this answer



share|improve this answer








edited Dec 14 '18 at 14:22

























answered Dec 14 '18 at 14:17









AashifProXD

462




462












  • Yes, this did it. Thank you very much.
    – sarp
    Dec 15 '18 at 15:21


















  • Yes, this did it. Thank you very much.
    – sarp
    Dec 15 '18 at 15:21
















Yes, this did it. Thank you very much.
– sarp
Dec 15 '18 at 15:21




Yes, this did it. Thank you very much.
– sarp
Dec 15 '18 at 15:21













0














From the error you're getting, looks like you have configured the whinehq repository.



As the very same error is telling you, you have to choose which branch of wine you'd like to install, as wine is just a virtual package and it has no installation candidates so apt cannot choose by itself what to install.



As indicated here, you can install a stable version (winehq-stable), a development version (winehq-devel) or a staging version (winehq-staging).



While I'm pretty happy on my systems with winehq-staging, I suggest you install the winehq-stable branch that (as the name implies) should be the "most stable" branch of wine.



As suggested on the official WineHQ documentation, make sure to install it with the flag --install-recommends



sudo apt-get install --install-recommends winehq-stable





share|improve this answer























  • 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: winehq-stable : Depends: wine-stable (= 3.0.4~cosmic) E: Unable to correct problems, you have held broken packages. This is what I get
    – sarp
    Dec 12 '18 at 15:43










  • @sarp I've updated my answer. Make sure you use --install-recommends.
    – Mr Shunz
    Dec 12 '18 at 15:45










  • Thank you for your effort and time but I still have the same error: The following packages have unmet dependencies: winehq-stable : Depends: wine-stable (= 3.0.4~cosmic) E: Unable to correct problems, you have held broken packages.
    – sarp
    Dec 12 '18 at 15:49










  • @sarp If you're still getting errors, try sudo apt --fix-broken install. Please don't post errors in comments, edit instead your answer with the results of the above comment.
    – Mr Shunz
    Dec 12 '18 at 15:52
















0














From the error you're getting, looks like you have configured the whinehq repository.



As the very same error is telling you, you have to choose which branch of wine you'd like to install, as wine is just a virtual package and it has no installation candidates so apt cannot choose by itself what to install.



As indicated here, you can install a stable version (winehq-stable), a development version (winehq-devel) or a staging version (winehq-staging).



While I'm pretty happy on my systems with winehq-staging, I suggest you install the winehq-stable branch that (as the name implies) should be the "most stable" branch of wine.



As suggested on the official WineHQ documentation, make sure to install it with the flag --install-recommends



sudo apt-get install --install-recommends winehq-stable





share|improve this answer























  • 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: winehq-stable : Depends: wine-stable (= 3.0.4~cosmic) E: Unable to correct problems, you have held broken packages. This is what I get
    – sarp
    Dec 12 '18 at 15:43










  • @sarp I've updated my answer. Make sure you use --install-recommends.
    – Mr Shunz
    Dec 12 '18 at 15:45










  • Thank you for your effort and time but I still have the same error: The following packages have unmet dependencies: winehq-stable : Depends: wine-stable (= 3.0.4~cosmic) E: Unable to correct problems, you have held broken packages.
    – sarp
    Dec 12 '18 at 15:49










  • @sarp If you're still getting errors, try sudo apt --fix-broken install. Please don't post errors in comments, edit instead your answer with the results of the above comment.
    – Mr Shunz
    Dec 12 '18 at 15:52














0












0








0






From the error you're getting, looks like you have configured the whinehq repository.



As the very same error is telling you, you have to choose which branch of wine you'd like to install, as wine is just a virtual package and it has no installation candidates so apt cannot choose by itself what to install.



As indicated here, you can install a stable version (winehq-stable), a development version (winehq-devel) or a staging version (winehq-staging).



While I'm pretty happy on my systems with winehq-staging, I suggest you install the winehq-stable branch that (as the name implies) should be the "most stable" branch of wine.



As suggested on the official WineHQ documentation, make sure to install it with the flag --install-recommends



sudo apt-get install --install-recommends winehq-stable





share|improve this answer














From the error you're getting, looks like you have configured the whinehq repository.



As the very same error is telling you, you have to choose which branch of wine you'd like to install, as wine is just a virtual package and it has no installation candidates so apt cannot choose by itself what to install.



As indicated here, you can install a stable version (winehq-stable), a development version (winehq-devel) or a staging version (winehq-staging).



While I'm pretty happy on my systems with winehq-staging, I suggest you install the winehq-stable branch that (as the name implies) should be the "most stable" branch of wine.



As suggested on the official WineHQ documentation, make sure to install it with the flag --install-recommends



sudo apt-get install --install-recommends winehq-stable






share|improve this answer














share|improve this answer



share|improve this answer








edited Dec 12 '18 at 15:45

























answered Dec 12 '18 at 15:37









Mr Shunz

2,1901922




2,1901922












  • 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: winehq-stable : Depends: wine-stable (= 3.0.4~cosmic) E: Unable to correct problems, you have held broken packages. This is what I get
    – sarp
    Dec 12 '18 at 15:43










  • @sarp I've updated my answer. Make sure you use --install-recommends.
    – Mr Shunz
    Dec 12 '18 at 15:45










  • Thank you for your effort and time but I still have the same error: The following packages have unmet dependencies: winehq-stable : Depends: wine-stable (= 3.0.4~cosmic) E: Unable to correct problems, you have held broken packages.
    – sarp
    Dec 12 '18 at 15:49










  • @sarp If you're still getting errors, try sudo apt --fix-broken install. Please don't post errors in comments, edit instead your answer with the results of the above comment.
    – Mr Shunz
    Dec 12 '18 at 15:52


















  • 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: winehq-stable : Depends: wine-stable (= 3.0.4~cosmic) E: Unable to correct problems, you have held broken packages. This is what I get
    – sarp
    Dec 12 '18 at 15:43










  • @sarp I've updated my answer. Make sure you use --install-recommends.
    – Mr Shunz
    Dec 12 '18 at 15:45










  • Thank you for your effort and time but I still have the same error: The following packages have unmet dependencies: winehq-stable : Depends: wine-stable (= 3.0.4~cosmic) E: Unable to correct problems, you have held broken packages.
    – sarp
    Dec 12 '18 at 15:49










  • @sarp If you're still getting errors, try sudo apt --fix-broken install. Please don't post errors in comments, edit instead your answer with the results of the above comment.
    – Mr Shunz
    Dec 12 '18 at 15:52
















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: winehq-stable : Depends: wine-stable (= 3.0.4~cosmic) E: Unable to correct problems, you have held broken packages. This is what I get
– sarp
Dec 12 '18 at 15:43




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: winehq-stable : Depends: wine-stable (= 3.0.4~cosmic) E: Unable to correct problems, you have held broken packages. This is what I get
– sarp
Dec 12 '18 at 15:43












@sarp I've updated my answer. Make sure you use --install-recommends.
– Mr Shunz
Dec 12 '18 at 15:45




@sarp I've updated my answer. Make sure you use --install-recommends.
– Mr Shunz
Dec 12 '18 at 15:45












Thank you for your effort and time but I still have the same error: The following packages have unmet dependencies: winehq-stable : Depends: wine-stable (= 3.0.4~cosmic) E: Unable to correct problems, you have held broken packages.
– sarp
Dec 12 '18 at 15:49




Thank you for your effort and time but I still have the same error: The following packages have unmet dependencies: winehq-stable : Depends: wine-stable (= 3.0.4~cosmic) E: Unable to correct problems, you have held broken packages.
– sarp
Dec 12 '18 at 15:49












@sarp If you're still getting errors, try sudo apt --fix-broken install. Please don't post errors in comments, edit instead your answer with the results of the above comment.
– Mr Shunz
Dec 12 '18 at 15:52




@sarp If you're still getting errors, try sudo apt --fix-broken install. Please don't post errors in comments, edit instead your answer with the results of the above comment.
– Mr Shunz
Dec 12 '18 at 15:52


















draft saved

draft discarded




















































Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1100351%2fbroken-packages-fix-problem-for-wine%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Quarter-circle Tiles

build a pushdown automaton that recognizes the reverse language of a given pushdown automaton?

Mont Emei