PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Debian: Apache installieren mit apt-get



overkill
21.02.06, 15:06
Hallo,

ich wollte auf meinem imac betagteren Datums mit 233MHz sowie einem Motorola-Prozessor und Debian-Installation einen Webserver apache2 installieren.
Der rechner hat Internetzugang und laut demjenigen der mir das System verkauft hat, soll es ganz einfach sein mit apt-get etwas zu installieren :cool: wenn der Rechner am Internet hängt. Auf meine Anfrage:


apt-get install apache2-common


erhalte ich aber nur die Antwort: :ugly:


debian:/home# apt-get install apache2-common
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:
apache2-common: Depends: libc6 (>= 2.3.2.ds1-21) but 2.2.5-11.8 is to be installed
Depends: libdb4.2 but it is not installable
Depends: libexpat1 (>= 1.95.8) but 1.95.2-6 is to be installed
Depends: openssl but it is not going to be installed
Depends: ssl-cert (>= 1.0-7) but it is not installable
Depends: libmagic1 but it is not installable
Depends: libgcc1 (>= 1:3.3.5) but 1:3.0.4-7 is to be installed
Depends: apache2-utils (= 2.0.54-5) but it is not going to be installed
E: Sorry, broken packages
debian:/home#


Wenn ich jetzt das erste angemoserte Paket installieren will


debian:/home# apt-get install libc6
Reading Package Lists... Done
Building Dependency Tree... Done
Sorry, libc6 is already the newest version.
0 packages upgraded, 0 newly installed, 0 to remove and 90 not upgraded.
W: Couldn't stat source package list http://ftp.tu-clausthal.de stable/main Packages (/var/lib/apt/lists/ftp.tu-clausthal.de_pub_linux_debian_dists_stable_main_bi nary-powerpc_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://ftp.tu-clausthal.de stable/non-free Packages (/var/lib/apt/lists/ftp.tu-clausthal.de_pub_linux_debian_dists_stable_non-free_binary-powerpc_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://ftp.tu-clausthal.de stable/contrib Packages (/var/lib/apt/lists/ftp.tu-clausthal.de_pub_linux_debian_dists_stable_contrib _binary-powerpc_Packages) - stat (2 No such file or directory)
W: You may want to run apt-get update to correct these problems
debian:/home#


Was muss ich machen? :confused:
Auch alle anderen bemängelten Pakete will er nicht installieren....:ugly: :ugly:

drcux
21.02.06, 16:13
W: You may want to run apt-get update to correct these problems

overkill
21.02.06, 23:14
Danke für die Antwort.... der nächste Schritt wäre wohl die Update-Config zu korrigieren :)

Vielleicht einen anderen Server, oder so? :confused:
Leider klappt die Update-Funktion nicht: :)




debian:~# apt-get update
Hit http://non-us.debian.org stable/non-US/main Packages
Hit http://non-us.debian.org stable/non-US/main Release
Hit http://non-us.debian.org stable/non-US/contrib Packages
Hit http://non-us.debian.org stable/non-US/contrib Release
Hit http://non-us.debian.org stable/non-US/non-free Packages
Hit http://non-us.debian.org stable/non-US/non-free Release
Hit http://non-us.debian.org stable/non-US/main Sources
Hit http://non-us.debian.org stable/non-US/main Release
Hit http://non-us.debian.org stable/non-US/contrib Sources
Hit http://non-us.debian.org stable/non-US/contrib Release
Hit http://non-us.debian.org stable/non-US/non-free Sources
Hit http://non-us.debian.org stable/non-US/non-free Release
Hit http://security.debian.org stable/updates/main Packages
Hit http://security.debian.org stable/updates/main Release
Hit http://security.debian.org stable/updates/contrib Packages
Hit http://security.debian.org stable/updates/contrib Release
Hit http://security.debian.org stable/updates/non-free Packages
Hit http://security.debian.org stable/updates/non-free Release
Get:1 http://ftp.tu-clausthal.de stable/main Packages [1001B]
Get:2 http://ftp.tu-clausthal.de stable/main Release [989B]
Get:3 http://ftp.tu-clausthal.de stable/non-free Packages [1013B]
99% [1 Packages gzip 0] [Waiting for file]
gzip: stdin: not in gzip format
Err http://ftp.tu-clausthal.de stable/main Packages
Sub-process gzip returned an error code (1)
99% [3 Packages gzip 0] [Waiting for file]
gzip: stdin: not in gzip format
Err http://ftp.tu-clausthal.de stable/non-free Packages
Sub-process gzip returned an error code (1)
Get:4 http://ftp.tu-clausthal.de stable/non-free Release
Get:5 http://ftp.tu-clausthal.de stable/contrib Packages [1010B]
Get:6 http://ftp.tu-clausthal.de stable/contrib Release [998B]
Get:7 http://ftp.tu-clausthal.de stable/main Sources [974B]
Get:8 http://ftp.tu-clausthal.de stable/main Release [965B]
91% [5 Packages gzip 0] [8 Release 269/965B 27%]
gzip: stdin: not in gzip format
Err http://ftp.tu-clausthal.de stable/contrib Packages
Sub-process gzip returned an error code (1)
91% [7 Sources gzip 0] [8 Release 269/965B 27%]
gzip: stdin: not in gzip format
Err http://ftp.tu-clausthal.de stable/main Sources
Sub-process gzip returned an error code (1)
Get:9 http://ftp.tu-clausthal.de stable/non-free Sources [986B]
Get:10 http://ftp.tu-clausthal.de stable/non-free Release [977B]
Get:11 http://ftp.tu-clausthal.de stable/contrib Sources [983B]
Get:12 http://ftp.tu-clausthal.de stable/contrib Release [974B]
99% [9 Sources gzip 0]
gzip: stdin: not in gzip format
Err http://ftp.tu-clausthal.de stable/non-free Sources
Sub-process gzip returned an error code (1)
99% [11 Sources gzip 0]
gzip: stdin: not in gzip format
Err http://ftp.tu-clausthal.de stable/contrib Sources
Sub-process gzip returned an error code (1)
Fetched 11.9kB in 20s (566B/s)
Failed to fetch http://ftp.tu-clausthal.de/pub/linux/debian/dists/stable/main/binary-powerpc/Packages Sub-process gzip returned an error code (1)
Failed to fetch http://ftp.tu-clausthal.de/pub/linux/debian/dists/stable/non-free/binary-powerpc/Packages Sub-process gzip returned an error code (1)
Failed to fetch http://ftp.tu-clausthal.de/pub/linux/debian/dists/stable/contrib/binary-powerpc/Packages Sub-process gzip returned an error code (1)
Failed to fetch http://ftp.tu-clausthal.de/pub/linux/debian/dists/stable/main/source/Sources Sub-process gzip returned an error code (1)
Failed to fetch http://ftp.tu-clausthal.de/pub/linux/debian/dists/stable/non-free/source/Sources Sub-process gzip returned an error code (1)
Failed to fetch http://ftp.tu-clausthal.de/pub/linux/debian/dists/stable/contrib/source/Sources Sub-process gzip returned an error code (1)
Reading Package Lists... Done
Building Dependency Tree... Done
W: Couldn't stat source package list http://ftp.tu-clausthal.de stable/main Packages (/var/lib/apt/lists/ftp.tu-clausthal.de_pub_linux_debian_dists_stable_main_bi nary-powerpc_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://ftp.tu-clausthal.de stable/non-free Packages (/var/lib/apt/lists/ftp.tu-clausthal.de_pub_linux_debian_dists_stable_non-free_binary-powerpc_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://ftp.tu-clausthal.de stable/contrib Packages (/var/lib/apt/lists/ftp.tu-clausthal.de_pub_linux_debian_dists_stable_contrib _binary-powerpc_Packages) - stat (2 No such file or directory)
W: You may want to run apt-get update to correct these problems
E: Some index files failed to download, they have been ignored, or old ones used instead.
debian:~#



Ich habe das mehrmals ausprobiert, um Fehler beim Download auszuschliessen.

Krischi
22.02.06, 00:25
Vielleicht einen anderen Server, oder so? Könnte einen Versuch wert sein.
Eine Ausführliche Liste von Servern gibt es hier:
http://www.debian.org/mirror/list

Und wenn Du dann eh schon dabei bist, die sources.list zu bearbeiten:
non-us kann raus.
Das gibt es schon seit einiger Zeit nicht mehr ;)

overkill
22.02.06, 00:46
ok danke....
Muss mir bei Tageslicht und wachem Auge mal anschauen wie ich das einzutragen habe.....
mein Source.list jetzt will noch nicht.....



#Mainserver

deb http://ftp.tu-clausthal.de/pub/linux/debian/ stable main non-free contrib
deb-src http://ftp.tu-clausthal.de/pub/linux/debian/ stable main non-free contrib

# Mainserver NON-US
#deb http://non-us.debian.org/debian-non-US stable/non-US main contrib non-free
#deb-src http://non-us.debian.org/debian-non-US stable/non-US main contrib non-free

# Secutityupdates
deb http://security.debian.org/ stable/updates main contrib non-free

deb http://ftp2.de.debian.org


es kommt Fehlermeldung


debian:~# apt-get update
E: Malformed line 13 in source list /etc/apt/sources.list (dist)
debian:~#


Ok, morgen schau ich mal weiter. Danke schonmal.

Krischi
22.02.06, 01:12
es kommt Fehlermeldung


debian:~# apt-get update
E: Malformed line 13 in source list /etc/apt/sources.list (dist)
debian:~#
Zeile 13 ist ja auch "verstümmelt":
deb http://ftp2.de.debian.orgDa ist nur ein Server angegeben und sonst nix. Das reicht apt nicht. Denn so weiß apt, auf welchem Server es nachzusehen hat, aber nicht in welchen Verzeichnissen.

Tausch einfach mal in den Zeilen
deb http://ftp.tu-clausthal.de/pub/linux/debian/ stable main non-free contrib
deb-src http://ftp.tu-clausthal.de/pub/linux/debian/ stable main non-free contrib das "http://ftp.tu-clausthal.de/pub/linux/debian/" durch "http://ftp2.de.debian.org/debian/" und schau, ob es dann passt (die bemäkelte letzte Zeile natürlich entfernen).

Und dann liest Du das (http://debiananwenderhandbuch.de/sources.list.html) und nimmst Dir ganz fest vor, das (http://debiananwenderhandbuch.de/) zu lesen ;)

:)

Corcovado
22.02.06, 01:14
Hi,
der meckert weil ihm da was fehlt beim letzten Eintrag (sh auch man sources.lst)
Du musst da irgendwie sowas eintragen:


deb ftp://ftp2.de.debian.org/debian/ sarge main
deb-src ftp://ftp2.de.debian.org/debian/ sarge main

deb ftp://ftp.de.debian.org/debian/ sarge main
deb-src ftp://ftp.de.debian.org/debian/ sarge main

deb ftp://ftp.de.debian.org/debian sarge contrib
deb-src ftp://ftp.de.debian.org/debian/ sarge contrib


Edit: ups, war einer schneller..

overkill
22.02.06, 23:26
debian:/etc/apt# apt-get update

funktioniert jetzt.

apt-get install apache2-common

ebenfalls.

Und jetzt werde ich auch gefragt, ob ich die Pakete glibc aktualisieren will.


Do you want to upgrade glibc now? [Y/n] Y


Super, er ist zwar noch am installieren aber es scheint durchzulaufen.
:cool: