apt-get install errors
All,
I run: Code:
apt-get install wine winetricks Code:
E: Unable to correct problems, you have held broken packages. Code:
dpkg --get-selections | grep hold I have tried several reboots but nothing clears! I've also edited the: Code:
/etc/apt/sources.list Code:
apt-get update && apt-get upgrade Code:
apt-get -f install or apt-get -f install wine winetricks Need help resolving this so I can finish my installs. Thanks! TBNK |
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 |
CMD
cmd with results follows:
Code:
apt-get install wine winetricks |
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 |
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. |
In order to check your software sources, could you please paste the output from:
Code:
cat /etc/apt/sources.list{,.d/*} |
Quote:
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 |
Quote:
I've both done the autoremove and edited the sources.list file after running: Code:
apt-get update && apt-get dist-upgrade 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 |
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. |
Quote:
Quote:
It would be helpful to see the output of your sources. |
Quote:
Thanks! TBNK |
Quote:
Code:
# Uncomment the following line to load from liveCD/DVD |
Running Fix output results
Code:
apt-get -f install wine winetricks |
Quote:
Let's be certain. Code:
cat /etc/os-release Code:
sudo apt-cache policy wine winetricks Code:
ls -al /var/cache/apt/archives/*wine* 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' |
Code:
# deb cdrom:[Kubuntu 12.04 LTS _Precise Pangolin_ - Release amd64 (20120423)]/ dists/precise/main/binary-i386/ 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. |