Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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.
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.
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.
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.
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.
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.
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.
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.
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
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.
# 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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.