Wine install "you have held broken packages" [SOLVED]

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Post Reply
User avatar
peyrol
Level 2
Level 2
Posts: 97
Joined: Sun Nov 25, 2012 1:51 am

Wine install "you have held broken packages" [SOLVED]

Post by peyrol » Tue Jul 05, 2016 1:38 pm

Here is the output from inxi -Sr:

Code: Select all

david@Epicurus ~ $ inxi -Sr
System:    Host: Epicurus Kernel: 3.16.0-38-generic x86_64 (64 bit) Desktop: MATE 1.10.2  Distro: Linux Mint 17.2 Rafaela
Repos:     Active apt sources in file: /etc/apt/sources.list.d/google-chrome.list
           deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
           Active apt sources in file: /etc/apt/sources.list.d/official-package-repositories.list
           deb http://packages.linuxmint.com rafaela main upstream import #id:linuxmint_main
           deb http://extra.linuxmint.com rafaela main #id:linuxmint_extra
           deb http://archive.ubuntu.com/ubuntu trusty main restricted universe multiverse
           deb http://archive.ubuntu.com/ubuntu trusty-updates main restricted universe multiverse
           deb http://security.ubuntu.com/ubuntu/ trusty-security main restricted universe multiverse
           deb http://archive.canonical.com/ubuntu/ trusty partner
           Active apt sources in file: /etc/apt/sources.list.d/steam.list
           deb [arch=amd64,i386] http://repo.steampowered.com/steam/ precise steam
           deb-src [arch=amd64,i386] http://repo.steampowered.com/steam/ precise steam
           Active apt sources in file: /etc/apt/sources.list.d/wine-wine-builds-trusty.list
           deb http://ppa.launchpad.net/wine/wine-builds/ubuntu trusty main
           deb-src http://ppa.launchpad.net/wine/wine-builds/ubuntu trusty main
When I try sudo apt-get install wine:

Code: Select all

david@Epicurus ~ $ sudo apt-get install wine
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 : Depends: wine1.6
E: Unable to correct problems, you have held broken packages.
I must have installed something I should not have. I removed the package "play on Linux" but I still get the same error.

Please how do I fix this issue and install Wine? What more information should I provide? TIA
Last edited by peyrol on Tue Jul 05, 2016 2:54 pm, edited 1 time in total.

User avatar
Flemur
Level 17
Level 17
Posts: 7238
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: Wine install "you have held broken packages"

Post by Flemur » Tue Jul 05, 2016 1:47 pm

Try this to see what's 'held':

Code: Select all

dpkg --get-selections | grep hold
Try this to fix it:

Code: Select all

sudo apt-get install -f
Then see if you have any 'wine' stuff installed:

Code: Select all

dpkg -l *wine*
("ii" = installed; "un"=not installed).
If any installed, uninstall it/them and start over...
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
Mint 19.1 Xfce/fluxbox
Manjaro openbox/fluxbox

User avatar
peyrol
Level 2
Level 2
Posts: 97
Joined: Sun Nov 25, 2012 1:51 am

Re: Wine install "you have held broken packages"

Post by peyrol » Tue Jul 05, 2016 2:00 pm

OK here is what happened. Your first suggestion returned a null list.

Code: Select all

david@Epicurus ~ $ dpkg --get-selections | grep hold
david@Epicurus ~ $ sudo apt-get install -f
[sudo] password for david: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following package was automatically installed and is no longer required:
  icoutils
Use 'apt-get autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 65 not upgraded.
david@Epicurus ~ $ sudo apt-get autoremove
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  icoutils
0 upgraded, 0 newly installed, 1 to remove and 65 not upgraded.
After this operation, 225 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 362765 files and directories currently installed.)
Removing icoutils (0.31.0-2) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
david@Epicurus ~ $ dpkg -l *wine*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                    Version          Architecture     Description
+++-=======================-================-================-====================================================
un  wine                    <none>           <none>           (no description available)
david@Epicurus ~ $ sudo apt-get install wine
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 : Depends: wine1.6
E: Unable to correct problems, you have held broken packages.
I don't know if icoutils had anything to do with anything, but removing it did not solve the problem. I welcome any more suggestions.

User avatar
Flemur
Level 17
Level 17
Posts: 7238
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: Wine install "you have held broken packages"

Post by Flemur » Tue Jul 05, 2016 2:28 pm

Edit: did you do

Code: Select all

sudo apt-get update
after adding the wine repos? I ask because your list from "dpkg -l *wine*" doesn't show much...

Try this

Code: Select all

sudo apt-get install wine1.7
or put in whatever version you want.

Or start synaptic, search for wine and pick the packages there.

Code: Select all

gksudo synaptic
FWIW, my "dpkg -l *wine*" shows these installed:

Code: Select all

ii  wine1.8:i386   1:1.8.0-0ubu i386         Microsoft Windows Compatibility L
ii  wine1.8-i386:i 1:1.8.0-0ubu i386         Microsoft Windows Compatibility L
("wine" package is NOT installed).

Note: I dunno if wine1.8 will install on Mint17.x; here're my repos (xenial vs trusty):

Code: Select all

Active apt sources in file: /etc/apt/sources.list.d/ubuntu-wine-ppa-xenial.list
deb http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu xenial main
deb-src http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu xenial main
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
Mint 19.1 Xfce/fluxbox
Manjaro openbox/fluxbox

User avatar
peyrol
Level 2
Level 2
Posts: 97
Joined: Sun Nov 25, 2012 1:51 am

Re: Wine install "you have held broken packages"

Post by peyrol » Tue Jul 05, 2016 2:54 pm

I was able to run "sudo apt-get install wine1.6" successfully. Thanks for your help!

Post Reply

Return to “Newbie Questions”