apt - Ubuntu unable to install any packages, held broken packages - Ask Ubuntu
i know not new question , many have answered before. have tried lot of solutions , didn't work me.
i want install wine on ubuntu 16.04 lts ued following command
sudo apt-get install wine reading package lists... done building dependency tree reading state information... done packages not installed. may mean have requested impossible situation or if using unstable distribution required packages have not yet been created or been moved out of incoming. following information may resolve situation: following packages have unmet dependencies: wine : depends: wine1.6 or wine1.8 not going installed e: unable correct problems, have held broken packages.
also tried this:
sudo apt-get install -f reading package lists... done building dependency tree reading state information... done 0 upgraded, 0 newly installed, 0 remove , 0 not upgraded.
so followed answers here , ran following command.
dpkg --get-selections | grep hold
but have got no response. there no packages being shown on hold. why getting error?
after tried dpkg --get-selections see packages. there "deinstall" ran following output
dpkg --get-selections | grep deinstall ca-certificates-mono deinstall libevent-2.0-5:amd64 deinstall libgdata2.1-cil deinstall libglib2.0-cil deinstall libgtk2.0-cil deinstall libmx-1.0-2:amd64 deinstall libnewtonsoft-json5.0-cil deinstall mono-runtime-common deinstall nvidia-304 deinstall nvidia-opencl-icd-304 deinstall tlp deinstall tlp-rdw deinstall transmission-gtk deinstall xserver-xorg-legacy deinstall
but these packages cannot uninstalled. have tried answers given here , this one has not resolved anything.
i have tried aptitude approach. problem still same.
also tried synaptic package manager. unable resolve dependencies. following screen shots:
i have tried following commands:
sudo aptitude -f install wine sudo apt-get dist-upgrade sudo apt-get update dpkg --get-selections | grep hold dpkg --get-selections dpkg --get-selections | grep deinstall sudo apt-get clean sudo apt-get autoclean sudo dpkg --configure -a sudo aptitude -f install wine sudo apt-get -f install wine
need help. how resolve one?
i using ubuntu 16.04 lts (64-bit) , encountered same error, "e: unable correct problems, have held broken packages." while trying install mysql-workbench.
i solved problem doing following:
- sudo apt autoremove (remove packages no longer needed)
- sudo apt-get update
- sudo apt-get install package-name (e.g. wine, mysql-workbench, etc.)
hope works you.
Comments
Post a Comment