[問題]unmet dependencies

如果您覺得您的問題不屬於 debian desktop 或是 debian server 版的範圍內,請在這裡發問。

版主: mufa

[問題]unmet dependencies

文章訪客 » 週三 3月 12, 2003 9:25 pm

因為反覆安裝移除軟體,source.list也在stable和testing中換來換去.
遇在重安裝php4時無法安裝,
也用了apt-get -f install;dpkg --configure -a;還是沒法解決
顯示訊息如下:
# apt-get install php4
Reading Package Lists... Done
Building Dependency Tree... 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.

Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:

Sorry, but the following packages have unmet dependencies:
php4: Depends: libbz2-1.0 but it is not going to be installed
Depends: libc6 (>= 2.2.4-4) but it is not going to be installed
Depends: libdb2 (>= 2:2.7.7.0-7) but it is not going to be installed
Depends: libexpat1 (>= 1.95.2-6) but it is not going to be installed
Depends: libmm11 but it is not going to be installed
Depends: libpam0g (>= 0.72-1) but it is not going to be installed
Depends: libpcre3 but it is not going to be installed
Depends: zlib1g (>= 1:1.1.4) but it is not going to be installed
Depends: apache-common (>= 1.3.26) but it is not going to be installed
Depends: fileutils (>= 4.0-5)
E: Sorry, broken packages
---------------------------------
#apt-get --fix-broken install libc6 libdb2 libexpat1 libmm11 libpam0g libpcre3 zlib1g apache-common fileutils libbz2-1.0
Reading Package Lists... Done
Building Dependency Tree... Done
Sorry, libc6 is already the newest version.
Sorry, libdb2 is already the newest version.
Sorry, libexpat1 is already the newest version.
Sorry, libmm11 is already the newest version.
Sorry, libpam0g is already the newest version.
Sorry, libpcre3 is already the newest version.
Sorry, zlib1g is already the newest version.
Sorry, apache-common is already the newest version.
Sorry, fileutils is already the newest version.
Sorry, libbz2-1.0 is already the newest version.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
----------------------
又說缺少,又說已經有了,真是矛盾呀!
訪客
 

re:[問題]unmet dependencies

文章阿信 » 週三 3月 12, 2003 9:40 pm

我想因為你的系統中已經有testing的軟體版本,然後又在sources.list又換成了stable。

所以當你安裝php4(stable)時,會出現類似上面的錯誤,比較好的解決辦法是將安裝的package as testing version通通移除乾淨,或是考慮整個升到testing。
頭像
阿信
版面大總管
版面大總管
 
文章: 4756
註冊時間: 週二 9月 03, 2002 11:58 pm
來自: 台灣 - 嘉義

re:[問題]unmet dependencies

文章訪客 » 週四 3月 13, 2003 4:56 am

感謝:
我把source.list都改成testing,情形也是一樣.
但是我用下面的指令
#apt-get install php4 libbz2-1.0 libc6 libdb2 libexpat1 libmm11 libpam0g libpcre3 zlib1g apache-common fileutils

Reading Package Lists... Done
Building Dependency Tree... Done
Sorry, libbz2-1.0 is already the newest version.
Sorry, libc6 is already the newest version.
Sorry, libdb2 is already the newest version.
Sorry, libexpat1 is already the newest version.
Sorry, libmm11 is already the newest version.
Sorry, libpam0g is already the newest version.
Sorry, libpcre3 is already the newest version.
Sorry, zlib1g is already the newest version.
Sorry, apache-common is already the newest version.
Sorry, fileutils is already the newest version.
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:

Sorry, but the following packages have unmet dependencies:
libc6: Conflicts: php4 (< 4:4.2.3-5) but 4:4.1.2-4 is to be installed
E: Sorry, broken packages

----------------------------------------------------------------------------
系統檢查到有版本的衝突,也認為有php4.1.2已安裝在上面.
(php4在debain套件的版本:stable版是php4.1.2,testing版是4.2.3)
似乎正是您點出來的問題.請問要如何解決這種衝突.
因為我試著要去移除php4,都回應並未安裝.

# apt-get remove php4
Reading Package Lists... Done
Building Dependency Tree... Done
Package php4 is not installed, so not removed
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
dpkg --purge php4
dpkg - warning: ignoring request to remove php4 which isn't installed.
訪客
 

re:[問題]unmet dependencies

文章訪客 » 週四 3月 13, 2003 6:12 am

(php4在debain套件的版本:stable版是php4.1.2,testing版是4.2.3)
抱歉看錯了,stable是php4 4:4.1.2-6 ; testing是 php4 4:4.1.2-4
-----------------------------------------------------
是不是我的libc6的版本太新了
# apt-cache showpkg libc6 | more
Package: libc6
Versions:
2.3.1-14(/var/lib/apt/lists/debian.csie.ntu.edu.tw_pub_debian_dists_testing_main_binary-i386_Packages)(/var/lib/dpkg/status)
2.2.5-11.2(/var/lib/apt/lists/ftp.tku.edu.tw_OS_Linux_distributions_debian_dists_stable_main_binary-i386_Packages)
2.2.5-9.woody.3(/var/lib/apt/lists/security.debian.org_dists_testing_updates_main_binary-i386_Packages)
另一台電腦上的libc6
# apt-cache showpkg libc6 | more
Package: libc6
Versions:
2.2.5-14.3(/var/lib/apt/lists/linux.cdpa.nsysu.edu.tw_debian_dists_testing_main_binary-i386_Packages)(/var/lib/dpkg/status)
2.2.5-11.2(/var/lib/apt/lists/linux.cdpa.nsysu.edu.tw_debian_dists_stable_main_binary-i386_Packages)
2.2.5-9.woody.3(/var/lib/apt/lists/security.debian.org_dists_testing_updates_main_binary-i386_Packages)
為什麼同樣是testing,不同source來源版本會不一樣.
訪客
 

re:[問題]unmet dependencies

文章阿信 » 週四 3月 13, 2003 8:30 am

呵呵...原來問題是出在這邊,小弟都是只有japan的mirror站,所以比較沒有上面的問題,國內的mirror站時間都不太一致,選擇一個就夠了。

再試一下吧。
頭像
阿信
版面大總管
版面大總管
 
文章: 4756
註冊時間: 週二 9月 03, 2002 11:58 pm
來自: 台灣 - 嘉義

re:[問題]unmet dependencies

文章訪客 » 週四 3月 13, 2003 3:39 pm

我在3月份的testing 版maillist中有看到有人反應libc6和php4會相衝突.
ttp://lists.debian.org/debian-testing/2 ... 00019.html
那麼有辦法把新版的libc6 降下來嗎?
訪客
 

re:[問題]unmet dependencies

文章louie » 週四 3月 13, 2003 6:18 pm

首先查詢 libc6 要降為那一版本
然後參考 http://home.chuany.net/moto/viewtopic.p ... 4d1ef81a58
修改符合你要的版本即可。
louie
快樂的大學生
快樂的大學生
 
文章: 593
註冊時間: 週一 9月 09, 2002 7:58 pm

Re: re:[問題]unmet dependencies

文章訪客 » 週三 10月 18, 2006 11:09 pm

阿信 寫:我想因為你的系統中已經有testing的軟體版本,然後又在sources.list又換成了stable。

所以當你安裝php4(stable)時,會出現類似上面的錯誤,比較好的解決辦法是將安裝的package as testing version通通移除乾淨,或是考慮整個升到testing。


我覺得要作 dist-upgrade 前要考慮清楚 或是至少先備份 好.

先前兩次發生過 要 裝新軟體, 因為新的 版本(testing) 才有支援 買的相機型號. 不過 upgrade (stable to testing) 到一半 就發生 要求移除 部份軟體. 但移除後 就卡在 新的版本有unmet depandency (大部份和 x window 的軟體有關). 但 要移除又無法全部 移除.

最後只好全部重裝.

anyhow, 只是提供一下 恰好 曾經發生的不幸經驗罷了. : )
訪客
 


回到 debian misc

誰在線上

正在瀏覽這個版面的使用者:沒有註冊會員 和 1 位訪客

cron