Mam przykładowy kod C++, który odbiera zdarzenia hotplug za pomocą biblioteki udev. W Ubuntu 10.04 działało dobrze. To tylko warunek był pakiet libudev-dev: sudo apt-get install libudev-devubuntu 12.04 libudev-dev nie będzie instalowany z powodu zależności
Ale gdy 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 zdaje się sugerować, że powinienem zainstaluj 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 przejść dalej. libudev-dev zależy od libudev0, ale to już jest na miejscu, więc ... co dalej?
Należy pamiętać, że następujące repo są un-skomentował w sources.list i robiłem 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
Niektóre strony wskazały 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.
Znaleziono doskonały link tutaj: https://askubuntu.com/questions/140246/how-do-i-resolve-unmet-dependencies , ale bez radości.
Google twierdzi, że jest to slam dunk dla innych ludzi tam ...
Dzięki za wszelką pomoc w tej sprawie, John
'madison' apt-cache nie wymaga priviliges korzeniowych – Ruslan