Debian 升級問題

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

版主: mufa

Debian 升級問題

文章kali » 週二 3月 03, 2009 3:00 am

各位大大:
我目前遇到一個問題,我安裝 debian 31r4 (核心:2.4.27-3-386)這版的 linux 完成後,在要進行套件更新升級時出了問題,
以 apt-get update 更新 ok
再以 apt-get -y dist-upgrade 進行到套件都下載完成後,準備進行安裝置換時,就出現以下錯誤了:

Reading Package Lists... Done
Building Dependency Tree... Done
Correcting dependencies... Done
The following extra packages will be installed:
libc6
Suggested packages:
glibc-doc libc6-i686
The following packages will be upgraded:
libc6
1 upgraded, 0 newly installed, 0 to remove and 145 not upgraded.
2 not fully installed or removed.
Need to get 4438kB of archives.
After unpacking 303kB disk space will be freed.
Do you want to continue? [Y/n] y
Get:1 http://debian.linux.org.tw stable/main libc6 2.7-18 [4438kB]
Fetched 4438kB in 24s (179kB/s)
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "zh_TW:zh:en_US:en",
LC_ALL = (unset),
LANG = "en"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Preconfiguring packages ...
(Reading database ... 13077 files and directories currently installed.)
Preparing to replace libc6 2.3.6.ds1-13etch4 (using .../archives/libc6_2.7-18_i386.deb) ...
Checking for services that may need to be restarted...
Checking init scripts...
WARNING: POSIX threads library NPTL requires kernel version
2.6.8 or later. If you use a kernel 2.4, please upgrade it
before installing glibc.

The installation of a 2.6 kernel _could_ ask you to install a new libc
first, this is NOT a bug, and should *NOT* be reported. In that case,
please add etch sources to your /etc/apt/sources.list and run:
apt-get install -t etch linux-image-2.6
Then reboot into this new kernel, and proceed with your upgrade
dpkg: error processing /var/cache/apt/archives/libc6_2.7-18_i386.deb (--unpack):
subprocess pre-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/libc6_2.7-18_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


對於 新版的libc6_2.7-18 這支程式,我只知道是很多套件會呼叫使用到的共享函式庫,上面訊息看起來像似,我必須先更換成2.6的核心,才能正常安裝這新版的函式庫,對嗎?這是不是 也意謂著 我2.4的核心不換,就不能使用較新版本的 stable 套件呢?
ps:以31r4來看,是否有,以不更換核心,但可以正常更新目前套件到新版的方式呢?
懇請哪位大大可以幫解一下這個問題?,感激不盡 !!!

以下是目前小弟使用的 source list ,很少吧 = ="

cat /etc/apt/sources.list
#deb file:///cdrom/ sarge main
deb http://debian.linux.org.tw/debian/ stable main
deb-src http://debian.linux.org.tw/debian/ stable main
deb http://security.debian.org/ stable/updates main
kali
 

文章訪客 » 週二 3月 03, 2009 4:54 am

deb http://debian.linux.org.tw/debian/ stable main
deb-src http://debian.linux.org.tw/debian/ stable main
deb http://security.debian.org/ stable/updates main

這樣應該會把系統對映到現在發行的stable版本lenny
應該是用code name才不會變動

deb file:///cdrom/ sarge main
sarge和lenny 差距很大吧中間少了一版

說了這麼多好像沒說到您要的 :ooops:
訪客
 

文章legnaleurc » 週二 3月 03, 2009 11:58 am

沒有吧....
kernel不提供的功能莫強求

話說真的有強烈理由停在己經停止支援的sarge上的話
就不需要更新了吧
legnaleurc
可愛的小學生
可愛的小學生
 
文章: 62
註冊時間: 週四 6月 21, 2007 10:36 am

文章kali » 週二 3月 03, 2009 3:45 pm

感謝樓上2位大大的提醒,也許是我的 source list 中的 link 有問題,去參考到了 2.6 的核心了, 那如果我要維持 31r4 這版的正常 更新,不知有沒有大大可以提供幾個穩定的 link 給小弟呢? 我找了好久,都沒有找到 = =? 再次感謝 !!
kali
 

文章legnaleurc » 週二 3月 03, 2009 9:26 pm

把stable改成sarge就好了
legnaleurc
可愛的小學生
可愛的小學生
 
文章: 62
註冊時間: 週四 6月 21, 2007 10:36 am


回到 debian misc

誰在線上

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