ubuntu 12.04 libudev-dev nie zainstaluje się z powodu zależności

Mam przykładowy kod c ++, który odbiera zdarzenia hotplug za pomocą biblioteki udev. W Ubuntu 10.04 działało dobrze. Jedynym warunkiem wstępnym był pakiet libudev-dev: sudo apt-get zainstaluj libudev-dev

Ale kiedy próbowałem zainstalować ten pakiet w 12.04, otrzymuję:

sudo apt-get install libudev-dev
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:
libudev-dev : Depends: libudev0 (= 175-0ubuntu9) but 175-0ubuntu9.3 is to be installed
E: Unable to correct problems, you have held broken packages.

To wydaje się sugerować, że powinienem zainstalować libudev0, więc:

sudo apt-get install libudev0
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libudev0 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Nie jestem pewien, jak stąd postępować. libudev-dev zależy od libudev0, ale jest już na miejscu, więc ... co dalej?

Zauważ, że następujące repozytoria nie są komentowane w sources.list i zrobiłem aktualizację apt-get:

deb http://us.archive.ubuntu.com/ubuntu/ precise main restricted    
deb-src http://us.archive.ubuntu.com/ubuntu/ precise main restricted
deb http://us.archive.ubuntu.com/ubuntu/ precise universe
deb-src http://us.archive.ubuntu.com/ubuntu/ precise universe

Niektóre witryny wskazały, że powinienem zrobić -f:

sudo apt-get -f install 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Znalazłem doskonały link tutaj:https://askubuntu.com/questions/140246/how-do-i-resolve-unmet-dependencies ale nie ma radości.

Google twierdzi, że jest to slam dunk dla innych ludzi ...

Dziękuję za pomoc w tej sprawie, John

questionAnswers(3)

yourAnswerToTheQuestion