I have an example C ++ code that accepts hotplug events using the udev library. It worked great on Ubuntu 10.04. This was a prerequisite for the libudev-dev package: sudo apt-get install libudev-dev
But when I tried to install this package in 12.04, I get:
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.
This seems to imply that I should install libudev0, therefore:
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.
I am not sure how to proceed from here. libudev-dev depends on libudev0, but what's already in place, so ... what's next?
Please note that the following repositories are not commented on in sources.list, and I did apt-get update:
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
Some sites indicated that I should do -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.
Found a great link here: https://askubuntu.com/questions/140246/how-do-i-resolve-unmet-dependencies but without joy.
Google says it's a slam for other people out there ...
Thanks for any help on this, John