unmet dependencies && broken packages [論壇 - Ubuntu安裝問題]


正在瀏覽:   1 名遊客


 到底部   前一個主題   下一個主題  [無發表權] 請登錄或者註冊

« 1 2 (3) 4 5 »


回覆: unmet dependencies && broken packages
會員五級
註冊日期:
2012/4/22 10:50
所屬群組:
已註冊使用者
等級: 34
HP : 169 / 847
MP : 574 / 18579
EXP: 90
離線
# 測試報告


我是下載下面這個檔來安裝

http://releases.ubuntu.com/14.04.4/ubuntu-14.04.4-desktop-amd64.iso

可以從下面的網址進入,找到
http://releases.ubuntu.com/
http://releases.ubuntu.com/14.04.4/

下載指令


$ wget -c http://releases.ubuntu.com/14.04.4/ubuntu-14.04.4-desktop-amd64.iso



我安裝的是英文版,我安裝在VirtualBox上測試。
也就是我裝好的系統是「Ubuntu 14.04.4 64位元 英文版」。

安裝完成後,重開機

執行


$ sudo atp-get update




然後先執行


$ sudo apt-get upgrade



會顯示一個確認訊息



...略...

127 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.

...略...



然後我先選「n」,先不執行


然後再執行


$ sudo apt-get dist-upgrade




會顯示一個確認訊息



...略...

130 upgraded, 4 newly installed, 0 to remove and 0 not upgraded

...略...




然後我先選「n」,先不執行。


於是我重新執行下面的指令


$ sudo apt-get upgrade



這次直接按下「enter」,繼續執行,
執行完畢後,

然後再次執行


$ sudo apt-get upgrade




顯示


Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
libntdb1 python-ntdb
Use 'apt-get autoremove' to remove them.
The following packages have been kept back:
linux-generic-lts-wily linux-headers-generic-lts-wily
linux-image-generic-lts-wily
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.



注意最下方的,


0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.



也就是上面一開始提到的執行「sudo apt-get upgrade」顯示「...略... and 3 not upgraded.」


然後再執行下面的指令


$ sudo apt-get dist-upgrade



顯示確認訊息


Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
libntdb1 python-ntdb
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
linux-headers-4.2.0-36 linux-headers-4.2.0-36-generic
linux-image-4.2.0-36-generic linux-image-extra-4.2.0-36-generic
The following packages will be upgraded:
linux-generic-lts-wily linux-headers-generic-lts-wily
linux-image-generic-lts-wily
3 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 66.0 MB of archives.
After this operation, 295 MB of additional disk space will be used.
Do you want to continue? [Y/n]



按下「enter」繼續執行
執行完畢後

再執行下面的指令


$ sudo apt-get dist-upgrade



顯示


Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
libntdb1 python-ntdb
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.




然後根據上面的提示,執行下面的指令


$ sudo apt-get autoremove



顯示下面的確認訊息


Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
libntdb1 python-ntdb
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
After this operation, 188 kB disk space will be freed.
Do you want to continue? [Y/n]



按下「Enter」繼續執行

然後在執行下面的指令


$ sudo apt-get dist-upgrade



顯示


Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.




以上參考,也許可以發現到什麼差異的地方,進而找到一些線索。


另外我想到一些可以跟你確認的,

就是

* 你是到那下載iso檔?
* 你是安裝英文版,還是中文版?
* 你是安裝32位元,還是64位元?

我想照你的步驟來安裝一次,看看能不能重現你說的

liuCC 寫到:
執行sudo apt-get dist-upgrade
顯示出
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
libgbm1
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
跟sudo apt-get upgrade一樣



另外我也有安裝Xubuntu來測試,是下面這個檔,結果跟我上面Ubuntu測試的一樣
http://cdimage.ubuntu.com/xubuntu/releases/14.04.4/release/xubuntu-14.04.4-desktop-amd64.iso

可以從下面的網址進入
http://cdimage.ubuntu.com/xubuntu/releases/
http://cdimage.ubuntu.com/xubuntu/releases/14.04.4/
http://cdimage.ubuntu.com/xubuntu/releases/14.04.4/release/

2016/5/21 19:39
應用擴展 工具箱
回覆: unmet dependencies && broken packages
會員一級
註冊日期:
2016/5/18 17:50
所屬群組:
已註冊使用者
等級: 3
HP : 0 / 70
MP : 8 / 709
EXP: 83
離線
我是安裝Ubuntu 14.04.4 64位元 英文版
檔案室我學長給我的 應該是ubuntu的官網

我這次有紀錄我terminal的過程
灌了軟體:chrome,gcin
自動更新一次(左邊會跳出來的那種)
指令:
sudo apt-get update
sudo apt-get upgrade(好像這時候沒有libgbm1)
------------------------
以下是處理雙顯卡的問題
------------------------
lspci -vnn | grep -i VGA -A 12
sudo add-apt-repository ppa:xorg-edgers/ppa -y
sudo apt-get update
sudo apt-get purge nvidia*
apt-get autoremove
sudo reboot
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install nvidia-361
sudo reboot
sudo apt-get install nvidia-current
lspci -vnn | grep -i VGA -A 12
之後變更顯卡為nvidia
之後執行
sudo apt-get update 跟 sudo apt-get upgrade
就開始顯示libgbm1
----------------------------------------
我再猜想是
sudo add-apt-repository ppa:xorg-edgers/ppa -y
sudo add-apt-repository ppa:graphics-drivers/ppa
這兩句的關係
-----------------------------------------
執行sudo apt-get clean 沒顯示
執行sudo apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
執行sudo apt-get install libgbm1
顯示:
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:
libgbm1 : Depends: libgl1-mesa-dri (= 11.0.4~git20151026+11.0.ec14e6f8-0ubuntu0ricotz~trusty)
E: Unable to correct problems, you have held broken packages.
就回到最一開始的問題了(unmet dependencies)

網路上搜尋跟這個很像
http://askubuntu.com/questions/140246/how-do-i-resolve-unmet-dependencies-after-adding-a-ppa

我執行到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 1 not upgraded.
後面就沒測了
--------------------
http://askubuntu.com/questions/363200/e-unable-to-correct-problems-you-have-held-broken-packages
這個沒測

https://www.quora.com/Im-trying-to-install-packages-in-Ubuntu-14-04-LTS-but-it-shows-me-error-E-Unable-to-correct-problems-you-have-held-broken-packages-How-can-I-solve-this-problem
裏面的sudo apt-get update --fix-missing 不知道可不可以測
------------------------------------
http://www.ubuntuupdates.org/ppa/xorg-edgers?dist=trusty&id=87&page=7
有提到xorg-edgers <---問題點吧
不過沒測

還有就是不知為何google搜尋
sudo apt-get -f install
只會顯示出
sudo apt-get install

2016/5/21 20:13
應用擴展 工具箱
回覆: unmet dependencies && broken packages
會員五級
註冊日期:
2012/4/22 10:50
所屬群組:
已註冊使用者
等級: 34
HP : 169 / 847
MP : 574 / 18579
EXP: 90
離線
此時此刻,我應該會先休息一下,需要把時間給家人了

可能明天才會再繼續測試了,

先跟你說一聲,


2016/5/21 20:17
應用擴展 工具箱
回覆: unmet dependencies && broken packages
會員五級
註冊日期:
2012/4/22 10:50
所屬群組:
已註冊使用者
等級: 34
HP : 169 / 847
MP : 574 / 18579
EXP: 90
離線
liuCC 寫到:

還有就是不知為何google搜尋
sudo apt-get -f install
只會顯示出
sudo apt-get install



執行「man apt-get」。

找尋「-f, --fix-broken」。




=====================================================

至於Google查詢的結果,
我猜測會拆字來查詢
而「-f」的「-」給忽略,
所以只剩「f」來查詢,這樣結果應該會很多,
所以有可能「-f」就被忽略了吧
不過這是我胡亂推敲的,聽聽就好,不懂Google查詢的策略

:p

2016/5/21 20:20
應用擴展 工具箱
回覆: unmet dependencies && broken packages
會員一級
註冊日期:
2016/5/18 17:50
所屬群組:
已註冊使用者
等級: 3
HP : 0 / 70
MP : 8 / 709
EXP: 83
離線
好的 很感謝你:D
明天就拜託了XD
晚點我再找看看有沒相關資訊可以使用

2016/5/21 20:54
應用擴展 工具箱
回覆: unmet dependencies && broken packages
會員五級
註冊日期:
2012/4/22 10:50
所屬群組:
已註冊使用者
等級: 34
HP : 169 / 847
MP : 574 / 18579
EXP: 90
離線
liuCC 寫到:
我是安裝Ubuntu 14.04.4 64位元 英文版
檔案室我學長給我的 應該是ubuntu的官網

我這次有紀錄我terminal的過程
灌了軟體:chrome,gcin
自動更新一次(左邊會跳出來的那種)
指令:
sudo apt-get update
sudo apt-get upgrade(好像這時候沒有libgbm1)
------------------------
以下是處理雙顯卡的問題
------------------------
lspci -vnn | grep -i VGA -A 12
sudo add-apt-repository ppa:xorg-edgers/ppa -y
sudo apt-get update
sudo apt-get purge nvidia*
apt-get autoremove
sudo reboot
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install nvidia-361
sudo reboot
sudo apt-get install nvidia-current
lspci -vnn | grep -i VGA -A 12
之後變更顯卡為nvidia
之後執行
sudo apt-get update 跟 sudo apt-get upgrade
就開始顯示libgbm1
----------------------------------------
我再猜想是
sudo add-apt-repository ppa:xorg-edgers/ppa -y
sudo add-apt-repository ppa:graphics-drivers/ppa
這兩句的關係
-----------------------------------------
執行sudo apt-get clean 沒顯示
執行sudo apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
執行sudo apt-get install libgbm1
顯示:
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:
libgbm1 : Depends: libgl1-mesa-dri (= 11.0.4~git20151026+11.0.ec14e6f8-0ubuntu0ricotz~trusty)
E: Unable to correct problems, you have held broken packages.
就回到最一開始的問題了(unmet dependencies)

網路上搜尋跟這個很像
http://askubuntu.com/questions/140246/how-do-i-resolve-unmet-dependencies-after-adding-a-ppa

我執行到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 1 not upgraded.
後面就沒測了
--------------------
http://askubuntu.com/questions/363200/e-unable-to-correct-problems-you-have-held-broken-packages
這個沒測

https://www.quora.com/Im-trying-to-install-packages-in-Ubuntu-14-04-LTS-but-it-shows-me-error-E-Unable-to-correct-problems-you-have-held-broken-packages-How-can-I-solve-this-problem
裏面的sudo apt-get update --fix-missing 不知道可不可以測
------------------------------------
http://www.ubuntuupdates.org/ppa/xorg-edgers?dist=trusty&id=87&page=7
有提到xorg-edgers <---問題點吧
不過沒測

還有就是不知為何google搜尋
sudo apt-get -f install
只會顯示出
sudo apt-get install


經過測試後,我大概懂你誤解的點在那了,Orz...

## 釐清一

libgbm1」預設就有安裝了,你可以執行下面幾個指令來了解

### 方法一

執行


$ dpkg --get-selections | grep libgbm1



顯示


libgbm1:amd64 install
libgbm1-lts-wily:amd64 install



### 方法二

執行


$ dpkg -s libgbm1 | grep Status:



顯示


Status: install ok installed



### 方法三

執行


$ dpkg -l libgbm1



顯示


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 libgbm1:amd64 10.1.3-0ubuntu0.6 amd64 generic buffer management API -- runtime



這幾個方法,我之前有整理在這篇「如何知道某個套件是否已經安裝」。


## 釐清二

按照你給的步驟


$ sudo add-apt-repository ppa:xorg-edgers/ppa -y



這是在加入新的套件庫來源,

你可以觀察「/etc/apt/sources.list.d/」,
可以看到多了一個檔「 /etc/apt/sources.list.d/xorg-edgers-ppa-trusty.list」

觀看「/etc/apt/sources.list.d/xorg-edgers-ppa-trusty.list」的內容

執行


$ cat /etc/apt/sources.list.d/xorg-edgers-ppa-trusty.list



顯示


deb http://ppa.launchpad.net/xorg-edgers/ppa/ubuntu trusty main
# deb-src http://ppa.launchpad.net/xorg-edgers/ppa/ubuntu trusty main



然後執行


$ sudo apt-get update



更新套件庫的套件資訊

然後再執行下面的指令


$ sudo apt-get dist-upgrade



顯示下面的確認訊息


Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
libgbm1
The following packages will be upgraded:
intel-gpu-tools libdrm-amdgpu1 libdrm-intel1 libdrm-nouveau2 libdrm-radeon1
libdrm2 libwayland-client0 libwayland-cursor0 libwayland-server0
9 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Need to get 629 kB of archives.
After this operation, 2,975 kB of additional disk space will be used.
Do you want to continue? [Y/n]



這裡應該是很正常的,我先選「n」,不繼續執行。

執行下面的指令


$ apt list --upgradable



顯示


Listing...
intel-gpu-tools/trusty 1.8-1~xedgers~trusty amd64 [upgradable from: 1.3-0ubuntu2.1]
libdrm-amdgpu1/trusty 2.4.65+git20151026.c745e541-0ubuntu0ricotz~trusty amd64 [upgradable from: 2.4.64-1~ubuntu14.04.1]
libdrm-intel1/trusty 2.4.65+git20151026.c745e541-0ubuntu0ricotz~trusty amd64 [upgradable from: 2.4.64-1~ubuntu14.04.1]
libdrm-nouveau2/trusty 2.4.65+git20151026.c745e541-0ubuntu0ricotz~trusty amd64 [upgradable from: 2.4.64-1~ubuntu14.04.1]
libdrm-radeon1/trusty 2.4.65+git20151026.c745e541-0ubuntu0ricotz~trusty amd64 [upgradable from: 2.4.64-1~ubuntu14.04.1]
libdrm2/trusty 2.4.65+git20151026.c745e541-0ubuntu0ricotz~trusty amd64 [upgradable from: 2.4.64-1~ubuntu14.04.1]
libgbm1/trusty 11.0.4~git20151026+11.0.ec14e6f8-0ubuntu0ricotz~trusty amd64 [upgradable from: 10.1.3-0ubuntu0.6]
libwayland-client0/trusty 1.7.0-0ubuntu1~trusty1 amd64 [upgradable from: 1.4.0-1ubuntu1]
libwayland-cursor0/trusty 1.7.0-0ubuntu1~trusty1 amd64 [upgradable from: 1.4.0-1ubuntu1]



執行下面的指令


$ apt-cache policy libgbm1



顯示


libgbm1:
Installed: 10.1.3-0ubuntu0.6
Candidate: 11.0.4~git20151026+11.0.ec14e6f8-0ubuntu0ricotz~trusty
Version table:
11.0.4~git20151026+11.0.ec14e6f8-0ubuntu0ricotz~trusty 0
500 http://ppa.launchpad.net/xorg-edgers/ppa/ubuntu/ trusty/main amd64 Packages
*** 10.1.3-0ubuntu0.6 0
500 http://tw.archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
100 /var/lib/dpkg/status
10.1.0-4ubuntu5 0
500 http://tw.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages



可以看到目前「libgbm1」安裝在系統的版本是「Installed: 10.1.3-0ubuntu0.6」「 *** 10.1.3-0ubuntu0.6」

也可以執行下面的指令,剛剛上面有執行過


$ dpkg -l libgbm1



顯示


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 libgbm1:amd64 10.1.3-0ubuntu0.6 amd64 generic buffer management API -- runtime



或是執行


$ dpkg -s libgbm1 | grep Version:



顯示


Version: 10.1.3-0ubuntu0.6



最後終於要提到第二個要釐清的了

剛剛上面已經說過,「libgbm1」已經安裝在系統上了,版本是「10.1.3-0ubuntu0.6」

然後你再執行下面的指令,預計就是要安裝新的版本,
從上面的「policy」,
預計要安裝新的版本是「Candidate: 11.0.4~git20151026+11.0.ec14e6f8-0ubuntu0ricotz~trusty」


$ sudo apt-get install libgbm1



顯示


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:
libgbm1 : Depends: libgl1-mesa-dri (= 11.0.4~git20151026+11.0.ec14e6f8-0ubuntu0ricotz~trusty)
E: Unable to correct problems, you have held broken packages.


但是因為有套件相依無法滿足的問題,
所以不讓你安裝「libgbm1」新的版本,
也就是上面會這樣顯示應該是很正常的結果。

對照上面執行「sudo apt-get dist-upgrade」
出現下面的確認訊息,要表達的就是「libgbm1」是被「kept back (維持在目前的版本)」
也就是「1 not upgraded」。


...略...

The following packages have been kept back:
libgbm1

...略...

9 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

...略...




從上面的一段訊息,摘錄如下,



...略...

The following packages have unmet dependencies:
libgbm1 : Depends: libgl1-mesa-dri (= 11.0.4~git20151026+11.0.ec14e6f8-0ubuntu0ricotz~trusty)
E: Unable to correct problems, you have held broken packages.


也就是當你安裝「libgbm1」新的版本是「Candidate: 11.0.4~git20151026+11.0.ec14e6f8-0ubuntu0ricotz~trusty」
必需先安裝「libgl1-mesa-dri (= 11.0.4~git20151026+11.0.ec14e6f8-0ubuntu0ricotz~trusty)」,
但因為無法安裝「libgl1-mesa-dri (= 11.0.4~git20151026+11.0.ec14e6f8-0ubuntu0ricotz~trusty)」
所以也就無法安裝「libgbm1 (= 11.0.4~git20151026+11.0.ec14e6f8-0ubuntu0ricotz~trusty)」


你可以執行


$ apt-cache policy libgl1-mesa-dri



顯示


libgl1-mesa-dri:
Installed: (none)
Candidate: 11.0.4~git20151026+11.0.ec14e6f8-0ubuntu0ricotz~trusty
Version table:
11.0.4~git20151026+11.0.ec14e6f8-0ubuntu0ricotz~trusty 0
500 http://ppa.launchpad.net/xorg-edgers/ppa/ubuntu/ trusty/main amd64 Packages
10.1.3-0ubuntu0.6 0
500 http://tw.archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
10.1.0-4ubuntu5 0



「Installed: (none)」,也就是目前系統沒有安裝任何版本的「libgl1-mesa-dri」。

然後再執行下面指令安裝「libgl1-mesa-dri」


$ sudo apt-get install libgl1-mesa-dri



顯示


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:
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.



也就是無法安裝「libgl1-mesa-dri (Candidate: 11.0.4~git20151026+11.0.ec14e6f8-0ubuntu0ricotz~trusty)」

至於為啥無法安裝,後面就不追下去了

先報告到這,愛睏了,頭腦不清楚了,要來去睡覺了,zZZ...



2016/5/22 5:15
應用擴展 工具箱
回覆: unmet dependencies && broken packages
會員一級
註冊日期:
2016/5/18 17:50
所屬群組:
已註冊使用者
等級: 3
HP : 0 / 70
MP : 8 / 709
EXP: 83
離線
所以說...
我目前的狀況式正常的嗎?
因為我還有兩個東西還沒裝
不確定裝下去會不會有問題

2016/5/22 11:59
應用擴展 工具箱
回覆: unmet dependencies && broken packages
會員五級
註冊日期:
2012/4/22 10:50
所屬群組:
已註冊使用者
等級: 34
HP : 169 / 847
MP : 574 / 18579
EXP: 90
離線
liuCC 寫到:
所以說...
我目前的狀況式正常的嗎?
因為我還有兩個東西還沒裝
不確定裝下去會不會有問題



目前是正常的,你可以執行


$ dpkg -s libgbm1




看看目前「libgbm1」的狀態,系統應該已經有安裝一個版本了,
應該不需要特別再安裝


或是執行


$ apt-cache policy libgbm1




另外我上面的回覆,最後面有再補充一些,你可以再看看,


你另外要再安裝的套件是?

若新安裝的套件,不是相依需要「libgm1 (= 11.0.4~git20151026+11.0.ec14e6f8-0ubuntu0ricotz~trusty」

安裝上應該都不會出問題才對。

2016/5/22 12:17
應用擴展 工具箱
回覆: unmet dependencies && broken packages
會員五級
註冊日期:
2012/4/22 10:50
所屬群組:
已註冊使用者
等級: 34
HP : 169 / 847
MP : 574 / 18579
EXP: 90
離線
liuCC 寫到:
再灌好該準備的東西後
不幸的事情又發生了
sudo apt-get upgrade後
又是libgbm1無法upgrade
一樣參照
http://askubuntu.com/questions/595400/unmet-dependencies-cannot-remove-package-libgbm1
用sudo dpkg --force-all -P libgbm1將他移掉
再執行
sudo apt-get -f install結果顯示
----------------------
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
libcogl15 : Depends: libgbm1 (>= 8.1~0) but it is not installed
libqt5gui5 : Depends: libgbm1 (>= 8.1~0) but it is not installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
他又回來了
-----------------------------
執行sudo apt-get install libgbm1
結果
-----------------------------
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
libgbm1 : Depends: libgl1-mesa-dri (= 11.0.4~git20151026+11.0.ec14e6f8-0ubuntu0ricotz~trusty)
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
又是無線循環了..
--------------------------------
執行sudo apt-get -u dist-upgrade
顯示出:
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
libcogl15 : Depends: libgbm1 (>= 8.1~0) but it is not installed
libqt5gui5 : Depends: libgbm1 (>= 8.1~0) but it is not installed
E: Unmet dependencies. Try using -f.
--------------------------------------
於是乎..
我無解了...
(右上角又出現紅色警告 內容跟前幾篇一樣...)
我來尋求幫助了...


當你執行下面指令,將「libgbm1」強制移除,


$ sudo dpkg --force-all -P libgbm1



然後根據我「前面的回覆」在「釐清二」的最後

在還沒移除「libgbm1」之前,你執行


$ apt-cache policy libgbm1



顯示


libgbm1:
Installed: 10.1.3-0ubuntu0.6
Candidate: 11.0.4~git20151026+11.0.ec14e6f8-0ubuntu0ricotz~trusty
Version table:
11.0.4~git20151026+11.0.ec14e6f8-0ubuntu0ricotz~trusty 0
500 http://ppa.launchpad.net/xorg-edgers/ppa/ubuntu/ trusty/main amd64 Packages
*** 10.1.3-0ubuntu0.6 0
500 http://tw.archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
100 /var/lib/dpkg/status
10.1.0-4ubuntu5 0
500 http://tw.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages




所以當你移除「libgbm1」後,
你再執行下面的指令,要安裝回去,


$ sudo apt-get install libgbm1



或是執行


$ sudo apt-get install -f



預計會安裝「libgbm1 (= 11.0.4~git20151026+11.0.ec14e6f8-0ubuntu0ricotz~trusty)」這個版本,
但在我「前面的回覆」,
有說明目前因為「套件相依」無法滿足,
所以就無法安裝這個版本「libgbm1 (= 11.0.4~git20151026+11.0.ec14e6f8-0ubuntu0ricotz~trusty)」,
最後無論你再怎麼執行,都會發生錯誤。


因此要回復系統正常,就要在安裝的時候,指定套件版本,也就是原先被你移除的版本

所以執行下面的指令


$ sudo apt-get install libgbm1=10.1.3-0ubuntu0.6




就可以把系統恢復正常了。

2016/5/22 12:45
應用擴展 工具箱
回覆: unmet dependencies && broken packages
會員一級
註冊日期:
2016/5/18 17:50
所屬群組:
已註冊使用者
等級: 3
HP : 0 / 70
MP : 8 / 709
EXP: 83
離線
我是打算安裝一個編譯器
目前還沒安裝 等等開始嘗試

假若安裝時產生libgbm1相依行有問題
可以藉由強制移除
再安裝符合條件的版本對吧
方式如同你所說的(以下)

預計會安裝「libgbm1 (= 11.0.4~git20151026+11.0.ec14e6f8-0ubuntu0ricotz~trusty)」這個版本,
但在我「前面的回覆」,
有說明目前因為「套件相依」無法滿足,
所以就無法安裝這個版本「libgbm1 (= 11.0.4~git20151026+11.0.ec14e6f8-0ubuntu0ricotz~trusty)」,
最後無論你再怎麼執行,都會發生錯誤。

因此要回復系統正常,就要在安裝的時候,指定套件版本,也就是原先被你移除的版本

所以執行下面的指令

$ sudo apt-get install libgbm1=10.1.3-0ubuntu0.6

我先嘗試安裝 並將結果貼上來
辛苦你了 謝謝

2016/5/22 13:53
應用擴展 工具箱

« 1 2 (3) 4 5 »

 [無發表權] 請登錄或者註冊


可以查看帖子.
不可發帖.
不可回覆.
不可編輯自己的帖子.
不可刪除自己的帖子.
不可發起投票調查.
不可在投票調查中投票.
不可上傳附件.
不可不經審核直接發帖.