Я обновил Ubuntu до 15.10, затем попытался скомпилировать приложение gtk и обнаружил, что у меня не установлен GTK.
Итак, я запустил
sudo apt-get install libgtk-3-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:
libgtk-3-dev : Depends: libegl1-mesa-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Как я могу это исправить? Я понятия не имею, почему существуют эти "неудовлетворенные зависимости" ... что-то не так со стороны ppa?
Поскольку Вы получаете you have held broken packages
, сообщение об ошибке,
выполняются sudo apt-get install -f
, который зафиксирует его.
-f, --fix-broken
Fix; attempt to correct a system with broken dependencies in place.
This option, when used with install/remove, can omit any packages
to permit APT to deduce a likely solution. If packages are
specified, these have to completely correct the problem. The option
is sometimes necessary when running APT for the first time; APT
itself does not allow broken package dependencies to exist on a
system. It is possible that a system's dependency structure can be
so corrupt as to require manual intervention (which usually means
using dpkg --remove to eliminate some of the offending packages).
Use of this option together with -m may produce an error in some
situations. Configuration Item: APT::Get::Fix-Broken.