"Broken packages" do not let me install packages
<p>I'm having some problems trying to setup a mjpg-streamer in my raspberry pi running raspbian. When I was trying to install the package, the following error was appearing: </p>

<p><strong>sudo apt-get install libjpeg-dev</strong></p>

<pre><code>Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libjpeg8-dev' instead of 'libjpeg-dev'
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:
 libjpeg8-dev : Depends: libjpeg8 (= 8d-1+deb7u1) but 8d1-2 is to be installed
E: Unable to correct problems, you have held broken packages.
</code></pre>

<p>I've looked a lot of suggestions on google, and tried things like <strong>apt-get update</strong> and <strong>dpkg --get-selections | grep hold</strong> (nothing shows up). I really tried a lot of stuff, with no luck. </p>

<p>Do anyone have any suggestion on what to do?</p>

<p>Thanks everyone</p>