有關於 apt-get 的問題

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

版主: mufa

有關於 apt-get 的問題

文章dunst » 週六 10月 07, 2006 1:03 pm

我是用 debian 3.0 testing 的版本
今天突然發現, apache2 server 不見了
查了一下, 果然 apache2 這個套件不見了
試著用 apt-get install apache2 重新安裝

出現了錯誤狀況


root@server:/etc> apt-get install apache2
Reading package lists... Done
Building dependency tree... Done
The following extra packages will be installed:
apache2-mpm-worker apache2.2-common
The following NEW packages will be installed
apache2 apache2-mpm-worker apache2.2-common
0 upgraded, 3 newly installed, 0 to remove and 1 not pgraded.
Need to get 1373kB of archives.
After unpacking 4043kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get: 1 ftp://ftp.debian.org unstable/main apache2.2-common_2.2.3-1 [917kB]
Errftp://ftp.debian.org unstable/main apache2.2-common_2.2.3-1
Data socket timed out
Errftp://ftp.debian.org unstable/main apache2-mpm-worker 2.2.3-1
Server closed the connection
Errftp://ftp.debian.org unstable/main apache2 2.2.3-1
Server closed the connection
Failed to fetch ftp://ftp.debian.org/debian/pool/main/a ... 2.2-common
_2.2.3-1_i386.deb Data socket timed out
Failed to fetch ftp://ftp.debian.org/debian/pool/main/a ... 1_i386.deb Server closed the connection
Failed to fetch ftp://ftp.debian.org/debian/pool/main/a ... -1_all.deb Server closed the connection
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

在 apt-get update 之後, 再利用 apt-get --fix-missing install , 發現下面狀況

root@server:/etc/apt> apt-get --fix-missing install
Reading package lists... Done
Building dependency tree... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies.
apache2-mpm-worker: Depends: apache2.2-common (= 2.2.3-1) but it is not installed
E: Unmet dependencies. Try using -f.



於是再依照指示, 下了 apt-get -f install 的指令

root@server:/etc/apt> apt-get -f install
Reading package lists... Done
Building dependency tree... Done
Correcting dependencies...Done
The following extra packages will be installed:
apache2.2-common
The following NEW packages will be installed
apache2.2-common
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
2 not fully installed or removed.
Need to get 0B/917kB of archives.
After unpacking 3314kB of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database ... 21558 files and directories currently installed.)
Unpacking apache2.2-common (from .../apache2.2-common_2.2.3-1_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/apache2.2-common_2.2.3-1_i386.deb
(--unpack):
trying to overwrite `/usr/share/man/man8/suexec.8.gz', which is also in package
apache-common
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/apache2.2-common_2.2.3-1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

然後我就沒輒了, 請問一下接下來我該怎麼著手?
dunst
可愛的小學生
可愛的小學生
 
文章: 13
註冊時間: 週一 3月 22, 2004 12:27 pm

回到 debian misc

誰在線上

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

cron