apt-get says that there are 'held broken' packages when there are no held packages

Bug #1322382 reported by jerrry94087@yahoo.com
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
apt (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

While attempting to install some package, apt-get tells me:
E: Unable to correct problems, you have held broken packages.
But looking for the held packages returns nothing.
Hence, an obvious contradiction.

This problem is important because this message obscures the real reasons behind the failure of the often used 'apt-get install' command.

The message produced is absolutely not helpful for understanding of what is actually wrong.

--- console log showing a problem ---
$ sudo apt-get install libqt4-dev
[sudo] password for xxx:
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:
 libqt4-dev : Depends: libqt4-dbus (= 4:4.8.1-0ubuntu4) but 4:4.8.1-0ubuntu4.1 is to be installed
              Depends: libqt4-declarative (= 4:4.8.1-0ubuntu4) but 4:4.8.1-0ubuntu4.1 is to be installed
              Depends: libqt4-designer (= 4:4.8.1-0ubuntu4) but 4:4.8.1-0ubuntu4.1 is to be installed
              Depends: libqt4-help (= 4:4.8.1-0ubuntu4) but 4:4.8.1-0ubuntu4.1 is to be installed
              Depends: libqt4-network (= 4:4.8.1-0ubuntu4) but 4:4.8.1-0ubuntu4.1 is to be installed
              Depends: libqt4-qt3support (= 4:4.8.1-0ubuntu4) but it is not going to be installed
              Depends: libqt4-script (= 4:4.8.1-0ubuntu4) but 4:4.8.1-0ubuntu4.1 is to be installed
              Depends: libqt4-scripttools (= 4:4.8.1-0ubuntu4) but 4:4.8.1-0ubuntu4.1 is to be installed
              Depends: libqt4-sql (= 4:4.8.1-0ubuntu4) but 4:4.8.1-0ubuntu4.1 is to be installed
              Depends: libqt4-svg (= 4:4.8.1-0ubuntu4) but 4:4.8.1-0ubuntu4.1 is to be installed
              Depends: libqt4-test (= 4:4.8.1-0ubuntu4) but 4:4.8.1-0ubuntu4.1 is to be installed
              Depends: libqt4-xml (= 4:4.8.1-0ubuntu4) but 4:4.8.1-0ubuntu4.1 is to be installed
              Depends: libqt4-xmlpatterns (= 4:4.8.1-0ubuntu4) but 4:4.8.1-0ubuntu4.1 is to be installed
              Depends: libqtcore4 (= 4:4.8.1-0ubuntu4) but 4:4.8.1-0ubuntu4.1 is to be installed
              Depends: libqtgui4 (= 4:4.8.1-0ubuntu4) but 4:4.8.1-0ubuntu4.1 is to be installed
              Depends: qt4-linguist-tools (= 4:4.8.1-0ubuntu4) but it is not going to be installed
              Recommends: libqt4-opengl-dev (= 4:4.8.1-0ubuntu4) but it is not going to be installed
              Recommends: libqtwebkit-dev (>= 2.0~) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

$ dpkg --get-selections | awk '{if ($2 == "hold") print $0;}'
<... no output ...>

Revision history for this message
Mohamed Samy (mohamed-samy-k) wrote :

I had the same error, and I solved it by checking the first two items in the screenshot. You can open it by opening system settings ====> software & updates =====> updates tab. After closing the window, type 'sudo apt-get update' in the terminal.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in apt (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.