Announcement

Collapse
No announcement yet.

can't install wine

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    can't install wine

    sudo apt-get install wine returns the following error message

    Code:
    [sudo] password for sam: 
    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 but it is not going to be installed
    E: Unable to correct problems, you have held broken packages.
    I don't know what this means.
    I run Kubuntu 18.04 LTS.

    #2
    try this and see if you get more info on what held packages
    Code:
    sudo apt-get update && sudo apt-get dist-upgrade
    if this completes with some upgrades then try installing wine again

    VINNY
    i7 4core HT 8MB L3 2.9GHz
    16GB RAM
    Nvidia GTX 860M 4GB RAM 1152 cuda cores

    Comment


      #3
      I ran the commands you gave, and then I again ran sudo apt-get install wine which, this time, returned the following.

      Code:
      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 but it is not going to be installed
      E: Unable to correct problems, you have held broken packages.
      (same error message as before)
      I run Kubuntu 18.04 LTS.

      Comment


        #4
        and if you
        Code:
        sudo apt-get -f install
        ?

        VINNY
        i7 4core HT 8MB L3 2.9GHz
        16GB RAM
        Nvidia GTX 860M 4GB RAM 1152 cuda cores

        Comment


          #5
          What's the output of these:

          Code:
          apt-cache policy wine
          and
          Code:
          apt-cache policy wine1.6

          Comment


            #6
            Originally posted by rybnik View Post
            I ran the commands you gave, and then I again ran sudo apt-get install wine which, this time, returned the following.

            Code:
            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 but it is not going to be installed
            E: Unable to correct problems, you have held broken packages.
            (same error message as before)
            Did you use sudo apt-get install wine or sudo apt-get install wine1.7?
            The first would usually produce an error about not being found unless some previous install (or piece of install) exists. Before anything else
            Code:
            sudo apt-get remove -purge wine*
            Then run

            Code:
            sudo dpkg --configure -a && sudo apt-get install -f'
            This fixes most problems. I actually created an alias in .bashrc

            Code:
            alias fixbroken='sudo dpkg --configure -a && sudo apt-get install -f'
            Followed by
            Code:
            sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade
            Reboot for good luck and then try install again. If that fails, threaten the computer. Tell it you'll turn it into Hillary Clinton's curling iron..

            Question: Why are you installing wine1.6 when 1.7 is the current?
            Last edited by vsreeser; Nov 30, 2015, 07:06 PM.

            Comment


              #7
              Originally posted by vsreeser View Post
              Did you use sudo apt-get install wine or sudo apt-get install wine1.7?
              The first would usually produce an error about not being found unless some previous install (or piece of install) exists. Before anything else
              Code:
              sudo apt-get remove -purge wine*
              Then run

              Code:
              sudo dpkg --configure -a && sudo apt-get install -f'
              This fixes most problems. I actually created an alias in .bashrc

              Code:
              alias fixbroken='sudo dpkg --configure -a && sudo apt-get install -f'
              Followed by
              Code:
              sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade
              Reboot for good luck and then try install again. If that fails, threaten the computer. Tell it you'll turn it into Hillary Clinton's curling iron..

              Question: Why are you installing wine1.6 when 1.7 is the current?
              OP is likely having a package conflict issue, which probably will not be solved by the usual apt commands.
              wine1.7 isn't even in the Wily repos, let alone in previous releases. Installing the 'wine' metapackage pulls in wine1.6 and all the other bits needed to have a running Wine, but here for some reason that wine1.6 being called won't install - probably due to a conflict down the chain. Finding the versions of what's available in the OP's package database will help start figuring out what's going on.

              Comment


                #8
                Originally posted by vinny
                and if you
                Code:

                sudo apt-get -f install

                ?

                VINNY
                That returns:

                Code:
                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 but it is not going to be installed or
                                 wine1.7 but it is not going to be installed
                E: Unable to correct problems, you have held broken packages.
                I run Kubuntu 18.04 LTS.

                Comment


                  #9
                  Again:

                  Originally posted by claydoh View Post
                  What's the output of these:

                  Code:
                  apt-cache policy wine
                  and
                  Code:
                  apt-cache policy wine1.6

                  Comment


                    #10
                    Originally posted by claydoh
                    What's the output of these:

                    Code:

                    apt-cache policy wine
                    wine:
                    Installed: (none)
                    Candidate: 1:1.7.55-0ubuntu1
                    Version table:
                    1:1.7.55-0ubuntu1 0
                    500 http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu/ trusty/main amd64 Packages
                    1:1.6.2-0ubuntu4 0
                    500 http://us.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages

                    Originally posted by claydoh

                    and
                    Code:

                    apt-cache policy wine1.6
                    wine1.6:
                    Installed: (none)
                    Candidate: 1:1.6.2-0ubuntu4
                    Version table:
                    1:1.6.2-0ubuntu4 0
                    500 http://us.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages
                    I run Kubuntu 18.04 LTS.

                    Comment


                      #11
                      @vsreeser

                      Right, after some googling I tried apt-get install wine1.6 (and 1.7)

                      same errors as just using wine in the command
                      I run Kubuntu 18.04 LTS.

                      Comment


                        #12
                        you will need to find the held or broken package that is holding you up you might be able to find it using muon (package manager) or synaptic
                        if not try this https://www.kubuntuforums.net/showth...ailed-Upgrades
                        Mark Your Solved Issues [SOLVED]
                        (top of thread: thread tools)

                        Comment


                          #13
                          what do you get with
                          Code:
                          sudo apt-get check
                          VINNY
                          i7 4core HT 8MB L3 2.9GHz
                          16GB RAM
                          Nvidia GTX 860M 4GB RAM 1152 cuda cores

                          Comment


                            #14
                            Originally posted by rybnik View Post
                            wine:
                            Installed: (none)
                            Candidate: 1:1.7.55-0ubuntu1
                            Version table:
                            1:1.7.55-0ubuntu1 0
                            500 http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu/ trusty/main amd64 Packages
                            1:1.6.2-0ubuntu4 0
                            500 http://us.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages


                            wine1.6:
                            Installed: (none)
                            Candidate: 1:1.6.2-0ubuntu4
                            Version table:
                            1:1.6.2-0ubuntu4 0
                            500 http://us.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages
                            You didn't mention the ppa.
                            If nothing else works, I'd suggest removing it using ppa-purge, and then seeing if the problems are solved without it.

                            sudo ppa-purge ppa:ubuntu-wine/ppa

                            Comment


                              #15
                              Originally posted by vinny
                              what do you get with
                              Code:

                              sudo apt-get check

                              VINNY
                              Code:
                              Reading package lists... Done
                              Building dependency tree       
                              Reading state information... Done
                              I run Kubuntu 18.04 LTS.

                              Comment

                              Working...
                              X