Apt 表示它正在停止,因為它無法安裝已安裝的軟體包/版本

Apt 表示它正在停止,因為它無法安裝已安裝的軟體包/版本

它所抱怨的軟體包已經安裝。我已經完成了“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-開發包(我真正想安裝的唯一包):

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

相關內容