LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-04-2017, 05:27 PM   #1
TBotNik
Member
 
Registered: May 2016
Location: Greenville, TX
Distribution: Kubuntu 18.04
Posts: 796

Rep: Reputation: Disabled
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

Last edited by TBotNik; 08-04-2017 at 05:29 PM.
 
Old 08-04-2017, 05:31 PM   #2
TheEzekielProject
Member
 
Registered: Dec 2016
Distribution: arch
Posts: 668

Rep: Reputation: 190Reputation: 190
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
 
Old 08-04-2017, 05:56 PM   #3
TBotNik
Member
 
Registered: May 2016
Location: Greenville, TX
Distribution: Kubuntu 18.04
Posts: 796

Original Poster
Rep: Reputation: Disabled
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.
 
Old 08-04-2017, 06:02 PM   #4
TheEzekielProject
Member
 
Registered: Dec 2016
Distribution: arch
Posts: 668

Rep: Reputation: 190Reputation: 190
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
 
Old 08-04-2017, 08:58 PM   #5
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
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.
 
Old 08-05-2017, 04:49 AM   #6
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

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

Code:
cat /etc/apt/sources.list{,.d/*}
 
Old 08-15-2017, 10:29 AM   #7
TBotNik
Member
 
Registered: May 2016
Location: Greenville, TX
Distribution: Kubuntu 18.04
Posts: 796

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Shadow_7 View Post
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
 
Old 08-15-2017, 10:34 AM   #8
TBotNik
Member
 
Registered: May 2016
Location: Greenville, TX
Distribution: Kubuntu 18.04
Posts: 796

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hydrurga View Post
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
 
Old 08-15-2017, 12:22 PM   #9
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
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.
 
Old 08-15-2017, 12:37 PM   #10
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by hydrurga View Post
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 View Post
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.
 
Old 08-15-2017, 02:20 PM   #11
TBotNik
Member
 
Registered: May 2016
Location: Greenville, TX
Distribution: Kubuntu 18.04
Posts: 796

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Shadow_7 View Post
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
 
Old 08-15-2017, 02:23 PM   #12
TBotNik
Member
 
Registered: May 2016
Location: Greenville, TX
Distribution: Kubuntu 18.04
Posts: 796

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Habitual View Post
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
 
1 members found this post helpful.
Old 08-15-2017, 02:29 PM   #13
TBotNik
Member
 
Registered: May 2016
Location: Greenville, TX
Distribution: Kubuntu 18.04
Posts: 796

Original Poster
Rep: Reputation: Disabled
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.

Last edited by TBotNik; 08-22-2017 at 10:00 AM.
 
Old 08-15-2017, 09:06 PM   #14
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by TBotNik View Post
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'

Last edited by Habitual; 08-15-2017 at 09:08 PM.
 
Old 08-15-2017, 09:48 PM   #15
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
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.
 
  


Reply

Tags
apt-get, errors, install



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
apt-get install -f Errors passegua Ubuntu 4 11-30-2011 06:10 PM
[SOLVED] depedencies in apt-get install results in errors ted_chou12 Linux - Software 4 11-17-2011 03:41 PM
Are you capable to install Freevo through apt-get (without dependencies errors)? frenchn00b Debian 4 07-01-2009 01:20 AM
Etch apt-get install errors kmoffat Debian 2 11-27-2006 09:26 PM
apt-get install errors cnastiuk Linux - Software 13 02-21-2005 04:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration