Trouble installing in Ubuntu 13.04- Says you have held broken packages

Asked by siddharth agrawal

I followed the steps given in order to install wallch on my ubuntu 13.04 desktop. But after adding the repository and running the
sudo apt-get upgrade && sudo apt-get install wallch
an error occurs saying you have held broken packages. The follwing is the error

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:
 wallch : Depends: libkeybinder0 (>= 0.2.1) but it is not installable
          Depends: libqt5gui5 (>= 5.0.1+dfsg) but it is not going to be installed
          Depends: libqt5widgets5 (>= 5.0.1+dfsg) but it is not going to be installed
          Recommends: gnome-web-photo but it is not installable
E: Unable to correct problems, you have held broken packages.

I tried running
sudo apt-get clean
sudo apt-get update
sudo apt-get upgrade

then i repeated the process again. Still I get the same error.

Question information

Language:
English Edit question
Status:
Solved
For:
Wallch Edit question
Assignee:
No assignee Edit question
Solved by:
siddharth agrawal
Solved:
Last query:
Last reply:
Revision history for this message
Alex Solanos (hakermania) said :
#1

Hello siddharth and thanks for your question!

Which steps did you follow?

I think that you will be fine with adding this PPA to your system: https://launchpad.net/~wallch/+archive/3+

Note that Wallch 4.0 has been released and may be tested with Ubuntu 14.04 daily builds, as well.

Revision history for this message
siddharth agrawal (siddharth-agrawal18) said :
#2

I ran the following instructions:
sudo add-apt-repository ppa:wallch/3+
sudo apt-get update && sudo apt-get install wallch.

Still nothing works.

Revision history for this message
Alex Solanos (hakermania) said :
#3

Ok, try

sudo apt-get remove wallch

Try to troubleshoot the held packages. See http://askubuntu.com/questions/223237/unable-to-correct-problems-you-have-held-broken-packages

Then go to https://launchpad.net/~wallch/+archive/3+/+packages and click on the "wallch - 3.63-0ubuntu1", then click on your architecture (amd64=64bit, i386=32-bit) and click to download the deb package. Double click on it and then try to install it.

Revision history for this message
siddharth agrawal (siddharth-agrawal18) said :
#4

I ran
sudo apt-get remove wallch.
The output is:

sidd@siddl:~$ sudo apt-get remove wallch
[sudo] password for sidd:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'wallch' is not installed, so not removed
The following package was automatically installed and is no longer required:
  openjdk-7-jre-lib
Use 'apt-get autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.

Then I ran

sudo apt-get -f install
sudo --configure -a
dpkg --get-selections | grep hold

This did not return anything.

Tried downloading the deb package manually and installing it but it says you have unmet dependencies

Revision history for this message
siddharth agrawal (siddharth-agrawal18) said :
#5

hi!
I tried this today

cd /var/lib/apt
sudo mv lists lists.old
sudo mkdir -p lists/partial
sudo apt-get update
sudo apt-get install wallch.

This worked

Thans for the help. :)

Revision history for this message
Alex Solanos (hakermania) said :
#6

So, it was an update problem? Could you elaborate a bit on what caused the problem on first place so as to advice accordingly users having a similar problem?

Revision history for this message
siddharth agrawal (siddharth-agrawal18) said :
#7

Apparenty when I last updated my system, due to slow internet, few packages were partially updated. Even after running
sudo apt-get dist-upgrade
the broken packages did not resolve. Since, no packages were held back
dpkg --get-selections | grep hold
also did not return anything. Seems the apt list got corrupted due to partial update.

So, renewing the apt list seems to have done the trick.
Thanks again for help :)