它抱怨的软件包已经安装。我执行了“apt-get -f install”和“dpkg --configure -a”,但什么都没改变。我卸载并重新安装了依赖项。我还运行了“apt-get install --reinstall”。我用“dpkg -r --force-depends”删除了输出中的所有软件包(我正在安装的软件包、具有依赖项的其他软件包以及依赖项本身),然后再次从同一命令行安装了所有软件包。当我安装软件包时,它断言不是安装后,什么也没发生。有时 Apt 认为它们在那里,有时却不在那里。
是我忽略了什么,还是有什么事情发生了?
$ sudo apt-get install freeglut3-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:
gnome-control-center : Depends: libcheese-gtk23 (>= 3.4.0) but it is not going to be installed
Depends: libcheese7 (>= 3.0.1) but it is not going to be installed
unity-control-center : Depends: libcheese-gtk23 (>= 3.4.0) but it is not going to be installed
Depends: libcheese7 (>= 3.0.1) but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
$ dpkg -l libcheese-gtk23 libcheese7
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-=========================================-=========================-=========================-=======================================================================================
ii libcheese-gtk23:amd64 3.10.2-0ubuntu2 amd64 tool to take pictures and videos from your webcam - widgets
ii libcheese7:amd64 3.10.2-0ubuntu2 amd64 tool to take pictures and videos from your webcam - base library
答案1
它只是进入了一个糟糕的状态。我只是不断尝试运行重新安装,并不断将所有提到的软件包添加到命令行,直到它工作正常。最终,它封装了所有与freeglut3-dev包(我真正想要安装的唯一包):
apt-get install --reinstall freeglut3-dev gnome-control-center unity-control-center libcheese7 libcheese-gtk23 libclutter-1.0-0 libclutter-gtk-1.0-0 libclutter-gst-2.0-0 gstreamer1.0-clutter libcogl-pango15 libcogl15