[問題]執行 apt-get dist-upgrade 所產生的問題~~

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

版主: mufa

[問題]執行 apt-get dist-upgrade 所產生的問題~~

文章Lost-Angel » 週五 2月 04, 2005 5:39 pm

請教一下各位前輩們,小生的系統是 Debian Linux 3.0 R2 ,核心已經更新到 2.4.29,起先在系統啟動時可以順利地進入 kdm 並登入 KDE 桌面環境當中,然而後來小生以 APT 進行系統大更新,先是執行 apt-get update 的時候都很正常,但是到了執行 apt-get dist-upgrade 的時候就會出現如下的訊息:

Reading Package Lists...
Building Dependency Tree...
The following packages will be REMOVED:
gnome-core kdelibs3 kdelibs3-bin kdict kfract kghostview kiconedit kjots
knode knotes korn kpackage kpm kruler ksnapshot ktimer kuser kview libfam0
libkdenetwork1 libkmid libkonq3 liblcms libpth14 lincity lincity-x
wxwin2.2-i18n
The following NEW packages will be installed:
aptitude atlas3-base bug-buddy capplets capplets-data circuslinux-data
desktop-base desktop-file-utils dictionaries-common docbook-dsssl
emacs21-bin-common emacs21-common emacs21-nox eog freeciv-client-gtk
freeciv-data freeciv-server g3.3 g77-3.3 gcc-3.3 gconf2 gimp gimp-data
gksu gnome-applets-data gnome-desktop-data gnome-doc-tools gnome-icon-theme
gnome-keyring gnuplot-nox gnuplot-x11 gs-gpl gstreamer0.8-oss
hicolor-icon-theme imlib11 kdelibs-data lbreakout2-data lesstif2
liballegro4.1 libapm1 libart-2.0-2 libatk1.0-0 libbonobo2-0 libbonobo2-common
libbonoboui2-0 libbonoboui2-common libcroco3 libcupsys2-gnutls10 libdb4.1
libdb4.2 libdevmapper1.00 libdns16 libecal6 libedataserver3 libeel2-2
libeel2-data libelfg0 libfam0c102 libg2c0-dev libgail-common libgail17
libgal23 libgconf2-4 libgd2-noxpm libgii0-target-x libgimp2.0 libgksu1.2-0
libgksuui1.0-0 libglade2-0 libgnome-desktop-2 libgnome-keyring0 libgnome2-0
libgnome2-common libgnomecanvas2-0 libgnomecanvas2-common libgnomecups1.0-1
libgnomeprint2.2-0 libgnomeprint2.2-data libgnomeprintui2.2-0
libgnomeprintui2.2-common libgnomeui-0 libgnomeui-common libgnomevfs2-0
libgnomevfs2-common libgsf-1 libgstreamer-plugins0.8-0 libgstreamer0.8-0
libgtk2.0-0 libgtk2.0-bin libgtk2.0-common libgtkhtml2-0
libgtksourceview-common libgtksourceview1.0-0 libgtop2-2 libhowl0
libid3-3.8.3 libidl0 libisc7 libjasper-1.701-1 liblcms1 libmetacity0
libnautilus2-2 libopenexr2 liborbit2 libosp4 libostyle1 libpanel-applet2-0
libpaper-utils libpaper1 libpth2 libreadline5 librecode0 librsvg2-2
librsvg2-common libsdl-ttf2.0-0 libselinux1 libsigc1.2-5c102 libslp1
libsmbclient libstartup-notification0 libstdc3.3-dev libsvga1 libt1-5
libvte-common libvte4 libwmf0.2-7 libwnck-common libwnck4 libwnn0
libwvstreams4.0-base libwvstreams4.0-extras libwww0 libwxgtk2.4 libxklavier8
libxplc0.3.10 libxslt1.1 menu-xdg nautilus nautilus-data netpbm openjade
plib1.8.3 powermgmt-base python2.3-doc r-cran-boot r-cran-cluster
r-cran-foreign r-cran-kernsmooth r-cran-lattice r-cran-mgcv r-cran-nlme
r-cran-rpart r-cran-survival r-cran-vr r-recommended sawfish shared-mime-info
tk8.4 toppler tuxkart tuxkart-data tuxpaint tuxpaint-data
tuxpaint-stamps-default wamerican wing wing-data wxwin2.4-i18n xblast-data
xml-core yelp
The following packages have been kept back
cuyo fetchmail junior-system plotutils
407 packages upgraded, 171 newly installed, 27 to remove and 4 not upgraded.
148 packages not fully installed or removed.
Need to get 0B/404MB of archives. After unpacking 408MB will be used.
Do you want to continue? [Y/n] y
debconf: unable to initialize frontend: Kde
debconf: (Can't locate Qt.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.4 /usr/local/share/perl/5.8.4 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /usr/share/perl5/Debconf/FrontEnd/Kde/Wizard.pm line 7, <> line 578.)
debconf: falling back to frontend: Dialog
Preconfiguring packages ...
Info: dictionaries-common/default-ispell is already set to
american (American English). Preserving it.
Info: dictionaries-common/default-wordlist is already set to
american (American English). Preserving it.
Checking for htdig package...
(Reading database ... 79551 files and directories currently installed.)
Preparing to replace login 20000902-12 (using .../login_1%3a4.0.3-30.8_i386.deb) ...
Unpacking replacement login ...
Replacing files in old package manpages-ja ...
dpkg: error processing /var/cache/apt/archives/login_1%3a4.0.3-30.8_i386.deb (--unpack):
trying to overwrite `/usr/share/man/ko/man1/login.1.gz', which is also in package manpages-ko
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/login_1%3a4.0.3-30.8_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

這好像是個錯誤訊息,且小生的系統在啟動後無法自動登入 kdm 的 X Window 登入畫面了,好像是預設不啟動 X 的樣子,但是小生並沒有去動 /etc/inittab 檔案說,而且若在 consol 下執行 startx 就會直接進入 Gnome 而無法進到 KDE 中,且執行 startkde 也會出現無此指令的錯誤訊息,而若執行 dpkg-reconfigur kdm 的話則出現下面的訊息:

The error messages while performing "dpkg-reconfigure kdm" :
debconf: unable to initialize frontend: Kde
debconf: (Can't locate Qt.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.4 /usr/local/share/perl/5.8.4 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /usr/share/perl5/Debconf/FrontEnd/Kde/Wizard.pm line 7.)
debconf: falling back to frontend: Dialog
/usr/sbin/dpkg-reconfigure: kdm is broken or not fully installed

請教一下各位前輩這到底是怎麼一回事呢??? 能否煩請指點一下小生迷津呢??? 非常的感謝各位!!!
The most beautiful thing we can experience is mysterious.
It is the source of all true art and science.

--- Albert Einstein, 1930
頭像
Lost-Angel
活潑的高中生
活潑的高中生
 
文章: 265
註冊時間: 週二 1月 25, 2005 1:29 am
來自: 臺灣民國高雄縣

re:[問題]執行 apt-get dist-upgrade 所產生的問題~~

文章caosheng » 週五 2月 04, 2005 6:12 pm

您的版本看起來像sarge的
sarge 的kde 幾個月前我從頭試裝的時候好像有點問題,相依性做的不是很好

給你幾個意見

檢察一下,x-window-system-core 請裝完整,不要只裝xserver-xfree86之類的

x 的設定再檢察一下,確定其他輕巧的WM沒問題

請用aptitude 升級,如果用apt-get 的話,先apt-get upgrade 然後再apt-get dist-upgrade
caosheng
懵懂的國中生
懵懂的國中生
 
文章: 222
註冊時間: 週一 12月 27, 2004 2:27 pm

re:[問題]執行 apt-get dist-upgrade 所產生的問題~~

文章Lost-Angel » 週五 2月 04, 2005 9:13 pm

感謝前輩指點,小生原先是要把它以 APT 更新到 Etch(testing) 版本的,因為出了這個問題,想說改更新到 Sid(unstable) 看看是否問題能夠解決,結果看來是依舊。他好像每次到要更新 login 這個套件的時候就會出這個問題,小生也不知道該怎麼辦。
小生試過以 apt-get upgrade 來更新結果還是一樣,可否煩請前輩指點一下您所謂的檢查 X-window-system-core 的完整性該怎麼做??? 因為小生也不太清楚到底 X Window 系統包含了哪些相關套件,可否煩請前輩指點一下不才的小生好嗎??? 非常的感謝!!!
The most beautiful thing we can experience is mysterious.
It is the source of all true art and science.

--- Albert Einstein, 1930
頭像
Lost-Angel
活潑的高中生
活潑的高中生
 
文章: 265
註冊時間: 週二 1月 25, 2005 1:29 am
來自: 臺灣民國高雄縣

re:[問題]執行 apt-get dist-upgrade 所產生的問題~~

文章訪客 » 週五 2月 04, 2005 11:27 pm

簡單解決法:
1. 換個 apt list 試試看, 有時 mirror site 在更新時會有點問題, 我都是把下面兩個輪流用:
 deb http://debian.linux.org.tw/debian/ unstable main contrib
 deb http://ftp.jp.debian.org/debian/ unstable main contrib

如果確定 sources.list 沒問題:
1. 先把不相干的東西全拿掉, 留基本的 Required、Important、Standard 套件, 再做 apt-get upgrade, 成功後再裝你要的東西
2. 先把 login 的套件抓回來, 用 dpkg -i --force-overwrite 安裝, 搞定後再繼續

我前陣子無聊從 sid 降級成 sarge, 又降級成 woody...不過因為某些原因要用 kernel 2.6, 所以現在我是 sarge 和 sid 輪流用(多重開機)
降級一切順利, 升級一切正常...不過我沒用 KDE 就是了...
訪客
 


回到 debian misc

誰在線上

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