LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   apt-get install errors (https://www.linuxquestions.org/questions/linux-software-2/apt-get-install-errors-4175611333/)

TBotNik 08-04-2017 05:27 PM

apt-get install errors
 
All,

I run:

Code:

apt-get install wine winetricks
I get msg:

Code:

E: Unable to correct problems, you have held broken packages.
But when I run:

Code:

dpkg --get-selections | grep hold
No packages are shown held. Have not been able to figure out how to clear this.

I have tried several reboots but nothing clears! I've also edited the:

Code:

/etc/apt/sources.list
file to clear errors from running:

Code:

apt-get update && apt-get upgrade
Oh

Code:

apt-get -f install or apt-get -f install wine winetricks
Does nothing except give the error message!

Need help resolving this so I can finish my installs.

Thanks!

TBNK

TheEzekielProject 08-04-2017 05:31 PM

Can you post the entire output of the apt-get command which gives you the "E: Unable to correct problems, you have held broken packages." message? Also, have you tried
Code:

apt-get install -f

TBotNik 08-04-2017 05:56 PM

CMD
 
cmd with results follows:

Code:

apt-get install wine winetricks
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.8 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.


TheEzekielProject 08-04-2017 06:02 PM

Have you tried to manually install either of those wine versions to see if it gives you any more info on why it won't install?

Code:

apt-get install wine1.8

Shadow_7 08-04-2017 08:58 PM

Do you have multiple PPAs or mixed sources.list that is seeing two wine versions? Like mixing debian stable and testing, or backports? Or PPAs for ubuntu flavors. Could be flat packs, app armor, snaps, or other from source methods (although the package manager normally doesn't see or gripe about those).

# apt-get -f install

will clean up stuff (normally) so that you can install other stuff.

# apt-get remove wine1.6 wine1.8

Might help clear it up to install one of the other. Otherwise there's more brutal and less advised ways to make it work with dpkg.

hydrurga 08-05-2017 04:49 AM

In order to check your software sources, could you please paste the output from:

Code:

cat /etc/apt/sources.list{,.d/*}

TBotNik 08-15-2017 10:29 AM

Quote:

Originally Posted by Shadow_7 (Post 5744643)
Do you have multiple PPAs or mixed sources.list that is seeing two wine versions? Like mixing debian stable and testing, or backports? Or PPAs for ubuntu flavors. Could be flat packs, app armor, snaps, or other from source methods (although the package manager normally doesn't see or gripe about those).

# apt-get -f install

will clean up stuff (normally) so that you can install other stuff.

# apt-get remove wine1.6 wine1.8

Might help clear it up to install one of the other. Otherwise there's more brutal and less advised ways to make it work with dpkg.

Shadow_7,

If you read carefully you would have seen I tried everything you suggested multiple times, with nothing changed. Always get the "files open/locked" error but the cmd to show locked files says nothing locked. This is not an easy fix issue, using the default fixes, or would not have posted.

Cheers!

TBNK

TBotNik 08-15-2017 10:34 AM

Quote:

Originally Posted by hydrurga (Post 5744730)
In order to check your software sources, could you please paste the output from:

Code:

cat /etc/apt/sources.list{,.d/*}

hydrurga,

I've both done the autoremove and edited the sources.list file after running:

Code:

apt-get update && apt-get dist-upgrade
And cleared all repos showing errors from these commands, but still have the same install error on WINE.

So tried other installs and they also have the same errors, so from the kernel, locked files (not showing any) or some other unknown reason. Just trying to find the reason, so I know where to go to fix this.

Cheers!

TBNK

Shadow_7 08-15-2017 12:22 PM

It is an easy fix if you know the magic words.

# dpkg --force-all -i /var/cache/apt/archives/sheriffofnottingham.deb
# dpkg --force-all -i /var/cache/apt/archives/robinhood.deb

Replace with the package names in question. To overcome an issue where two packages depend on the other being installed / configured first. One other hack is to change the status file to show installed (even though it's not) and --reinstall later. Not normally an issue baring ppa's, long overdue updates, poorly maintained non-mainstream distros. Or running the development branch of a distro.

# cp /var/lib/dpkg/status $HOME/justincase.txt
# nano /var/lib/dpkg/status

It should have a Status: line below the Package: line, adjust it to match the other "installed" packages. Which tricks it into thinking the dependency is met and it carries on. Just be sure to --reinstall the fudged package(s) so it actually IS installed when the time comes to use it.

Habitual 08-15-2017 12:37 PM

Quote:

Originally Posted by hydrurga (Post 5744730)
In order to check your software sources, could you please paste the output from:

Code:

cat /etc/apt/sources.list{,.d/*}

Quote:

Originally Posted by TBotNik (Post 5748527)
hydrurga,

I've both done the autoremove and edited the sources.list file

Don't see them?
It would be helpful to see the output of your sources.

TBotNik 08-15-2017 02:20 PM

Quote:

Originally Posted by Shadow_7 (Post 5748579)
It is an easy fix if you know the magic words.

# dpkg --force-all -i /var/cache/apt/archives/sheriffofnottingham.deb
# dpkg --force-all -i /var/cache/apt/archives/robinhood.deb

Replace with the package names in question. To overcome an issue where two packages depend on the other being installed / configured first. One other hack is to change the status file to show installed (even though it's not) and --reinstall later. Not normally an issue baring ppa's, long overdue updates, poorly maintained non-mainstream distros. Or running the development branch of a distro.

# cp /var/lib/dpkg/status $HOME/justincase.txt
# nano /var/lib/dpkg/status

It should have a Status: line below the Package: line, adjust it to match the other "installed" packages. Which tricks it into thinking the dependency is met and it carries on. Just be sure to --reinstall the fudged package(s) so it actually IS installed when the time comes to use it.

I appreciate the commands, but you assumed I knew which package are at fault and there is nothing showing that, so till I can find them these commands are useless.

Thanks!

TBNK

TBotNik 08-15-2017 02:23 PM

Quote:

Originally Posted by Habitual (Post 5748585)
Don't see them?
It would be helpful to see the output of your sources.

Here is list:

Code:

# Uncomment the following line to load from liveCD/DVD
# deb cdrom:[Kubuntu 12.04 LTS _Precise Pangolin_ - Release amd64 (20120423)]/ dists/precise/main/binary-i386/

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://us.archive.ubuntu.com/ubuntu/ trusty main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ trusty-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ trusty universe
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty universe
deb http://us.archive.ubuntu.com/ubuntu/ trusty-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-updates universe

deb http://us.archive.ubuntu.com/ubuntu/ trusty multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty multiverse
deb http://us.archive.ubuntu.com/ubuntu/ trusty-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-updates multiverse

deb http://us.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu trusty-security main restricted
deb-src http://security.ubuntu.com/ubuntu trusty-security main restricted
deb http://security.ubuntu.com/ubuntu trusty-security universe
deb-src http://security.ubuntu.com/ubuntu trusty-security universe
deb http://security.ubuntu.com/ubuntu trusty-security multiverse
deb-src http://security.ubuntu.com/ubuntu trusty-security multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu trusty partner
deb-src http://archive.canonical.com/ubuntu trusty partner

## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
# deb http://extras.ubuntu.com/ubuntu trusty main
# deb-src http://extras.ubuntu.com/ubuntu trusty main
# deb http://http.debian.net/debian/ wheezy main contrib non-free
# deb http://drbl.sourceforge.net/drbl-core drbl stable # disabled on upgrade to trusty
# deb http://repo.mindtouch.com xUbuntu_10.04/ # disabled on upgrade to trusty
# deb http://download.webmin.com/download/repository sarge contrib
# deb http://webmin.mirror.somersettechsolutions.co.uk/repository sarge contrib


TBotNik 08-15-2017 02:29 PM

Running Fix output results
 
Code:

apt-get -f install wine winetricks

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.8 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.


Habitual 08-15-2017 09:06 PM

Quote:

Originally Posted by TBotNik (Post 5748630)
Code:

# Uncomment the following line to load from liveCD/DVD
# deb cdrom:[Kubuntu 12.04 LTS _Precise Pangolin_ - Release amd64 (20120423)]/ dists/precise/main/binary-i386/


How old is this installation?

Let's be certain.
Code:

cat /etc/os-release
Code:

sudo apt-cache policy wine winetricks
Code:

ls -al /var/cache/apt/archives/*wine*
outputs please.

Sounds like cruft.
The option from Shadow_7 for nuking from /var/lib/dpkg/status should enable you to install, but it's a 'hack' IMO. And may have side-effects as a result.
It's what I call the "new clear" option. I didn't name it.

Just sayin'

Ztcoracat 08-15-2017 09:48 PM

Code:

# deb cdrom:[Kubuntu 12.04 LTS _Precise Pangolin_ - Release amd64 (20120423)]/ dists/precise/main/binary-i386/
12.04 reached it's end of life in 2014-
https://www.ubuntu.com/info/release-end-of-life

Interested to see what cat /etc/os-release reveals.


All times are GMT -5. The time now is 07:16 AM.