Apache deinstalliert und und Apt geht nicht mehr

FreeBSD, Gentoo, openSUSE, CentOS, Ubuntu, Debian
Post Reply
stefan_w
Posts: 48
Joined: 2002-11-09 09:32
 

Apache deinstalliert und und Apt geht nicht mehr

Post by stefan_w »

Hallo

Ich hatte ein paar Probleme mit meinen Apache, also habe ich ihn mal deinstalliert. Jetzt bekomme ich allerdings bei jedem Versuch über Apt etwas zu installieren folgende Meldung:

Code: Select all

root@debian4:/usr/sbin# apt-get install bind9
Reading Package Lists... Done
Building Dependency Tree... Done
The following NEW packages will be installed:
  bind9
0 packages upgraded, 1 newly installed, 0 to remove and 0  not upgraded.
Need to get 0B/239kB of archives. After unpacking 631kB will be used.
dpkg: »update-rc.d« wurde im PATH nicht gefunden.
dpkg: 1 erwartete Programme nicht im PATH gefunden.
NB: PATH von root sollte /usr/local/sbin, /usr/sbin und /sbin enthalten.
E: Sub-process /usr/bin/dpkg returned an error code (2)
Das bekomme ich bei jedem Installationsversuch.
Kann mir jemand etwas dazu sagen? Hierbei handelt es sich übrigens nicht um einen Rootserver.
captaincrunch
Userprojekt
Userprojekt
Posts: 7066
Joined: 2002-10-09 14:30
Location: Dorsten
Contact:
 

Re: Apache deinstalliert und und Apt geht nicht mehr

Post by captaincrunch »

Steht doch da : das Programm "update-rc.d" wird nicht gefunden, weil es nicht im &PATH steht ... ;)
DebianHowTo
echo "[q]sa[ln0=aln256%Pln256/snlbx]sb729901041524823122snlbxq"|dc
dodolin
Posts: 3840
Joined: 2003-01-21 01:59
Location: Sinsheim/Karlsruhe
Contact:
 

Re: Apache deinstalliert und und Apt geht nicht mehr

Post by dodolin »

Guckst du, http://packages.debian.org/ und gibst "update-rc.d" an der richtigen Stelle zum Suchen ein:

http://packages.debian.org/cgi-bin/sear ... tories=yes

Also, gucken, ob dein $PATH /usr/sbin enthält:

Als root:

Code: Select all

echo $PATH
Tipp: Wenn du mit "su" zu root wechselst, nimm "su -", damit du auch das Environment von root bekommst, sonst ist /usr/sbin nämlich nicht im Pfad.

Ansonsten sysvinit mal neu installieren:

Code: Select all

apt-get install sysvinit
Oder diverse Manuals zum Paketmanagement von Debian studieren, wie man kaputte Paketinstallationen "reparieren" lassen kann. IIRC gab es da auch Funktionen für...
stefan_w
Posts: 48
Joined: 2002-11-09 09:32
 

Re: Apache deinstalliert und und Apt geht nicht mehr

Post by stefan_w »

Merkwürdig.

Der Pfad ist drin. Aber leider funktioniert es immer noch nicht. Anscheinend ist das gesamte System durch das Installieren/Deinstallieren im A**** . Nicht mal mehr auf Apt kann man sich mehr verlassen ;)

sysvinit konnte ich ebenfalls nicht installieren. :(

Da ich ja nun anscheinend nichts mehr installieren kann, frage ich mich, ob es noch eine Möglichkeit gibt das System neu zu installieren und dabei die Netzwerkkonfiguration beizubehalten. Quasi ohne installation von Debootstrap usw...
dodolin
Posts: 3840
Joined: 2003-01-21 01:59
Location: Sinsheim/Karlsruhe
Contact:
 

Re: Apache deinstalliert und und Apt geht nicht mehr

Post by dodolin »

Gibt es auf deinem System die Datei /usr/sbin/update-rc.d ?
Ich habe gerade kein Debian-System hier verfügbar, aber wenn es die gibt, poste mal die MD5 Prüfsumme davon, damit man das mit einem funktionierenden System vergleichen kann:

Code: Select all

md5sum /usr/sbin/update-rc.d
Aber wenn die Fehlermeldung sagt, dass er es erst gar nicht findet, dann sollte es eigentlich nicht daran liegen. Also, gibt es diese Datei bei dir oder nicht?
stefan_w
Posts: 48
Joined: 2002-11-09 09:32
 

Re: Apache deinstalliert und und Apt geht nicht mehr

Post by stefan_w »

Nein, die Datei gibt es definitv nicht.
dodolin
Posts: 3840
Joined: 2003-01-21 01:59
Location: Sinsheim/Karlsruhe
Contact:
 

Re: Apache deinstalliert und und Apt geht nicht mehr

Post by dodolin »

Ok, durchkrame ich halt selbst die Doku... *grmpf*

Code: Select all

dpkg -l | grep sysvinit
Was gibt das?

Dann probier z.B. mal das:
http://www.openoffice.de/linux/buch/dpkg.html#DPKGCONFN

Allgemein zum Lesen:
http://www.openoffice.de/linux/buch/apt.html#AEN4834

z.B.

Code: Select all

apt-get check
apt-get -f
apt-get -f install
Was ergibt das jeweils?
Last edited by dodolin on 2003-05-18 15:36, edited 1 time in total.
captaincrunch
Userprojekt
Userprojekt
Posts: 7066
Joined: 2002-10-09 14:30
Location: Dorsten
Contact:
 

Re: Apache deinstalliert und und Apt geht nicht mehr

Post by captaincrunch »

Dann installier das Paket "rcconf" noch einmal, da steckt das File drin ...
DebianHowTo
echo "[q]sa[ln0=aln256%Pln256/snlbx]sb729901041524823122snlbxq"|dc
dodolin
Posts: 3840
Joined: 2003-01-21 01:59
Location: Sinsheim/Karlsruhe
Contact:
 

Re: Apache deinstalliert und und Apt geht nicht mehr

Post by dodolin »

Dann installier das Paket "rcconf" noch einmal, da steckt das File drin ...
Nein, das File ist in sysvinit, wie ich bereits sagte.

http://packages.debian.org/stable/admin/rcconf.html
-> List of files in rcconf

http://packages.debian.org/cgi-bin/sear ... ion=stable

http://packages.debian.org/stable/base/sysvinit.html
-> List of files in sysvinit

http://packages.debian.org/cgi-bin/sear ... ion=stable
usr/sbin/update-rc.d base/sysvinit
stefan_w
Posts: 48
Joined: 2002-11-09 09:32
 

Re: Apache deinstalliert und und Apt geht nicht mehr

Post by stefan_w »

root@debian4:~# dpkg -l | grep sysvinit
ic sysvinit 2.84-160 System-V like init with KNOPPIX scripts.
hc sysvinit-knopp 2.84-1 System-V like init with KNOPPIX scripts.
root@debian4:~#
root@debian4:~# apt-get check
Reading Package Lists... Done
Building Dependency Tree... Done
root@debian4:~# apt-get -f
apt 0.5.4 for linux i386 compiled on Aug 19 2001 01:02:26
Usage: apt-get [options] command
apt-get [options] install|remove pkg1 [pkg2 ...]
apt-get [options] source pkg1 [pkg2 ...]

apt-get is a simple command line interface for downloading and
installing packages. The most frequently used commands are update
and install.

Commands:
update - Retrieve new lists of packages
upgrade - Perform an upgrade
install - Install new packages (pkg is libc6 not libc6.deb)
remove - Remove packages
source - Download source archives
build-dep - Configure build-dependencies for source packages
dist-upgrade - Distribution upgrade, see apt-get(8)
dselect-upgrade - Follow dselect selections
clean - Erase downloaded archive files
autoclean - Erase old downloaded archive files
check - Verify that there are no broken dependencies

Options:
-h This help text.
-q Loggable output - no progress indicator
-qq No output except for errors
-d Download only - do NOT install or unpack archives
-s No-act. Perform ordering simulation
-y Assume Yes to all queries and do not prompt
-f Attempt to continue if the integrity check fails
-m Attempt to continue if archives are unlocatable
-u Show a list of upgraded packages as well
-b Build the source package after fetching it
-c=? Read this configuration file
-o=? Set an arbitary configuration option, eg -o dir::cache=/tmp
See the apt-get(8), sources.list(5) and apt.conf(5) manual
pages for more information and options.
This APT has Super Cow Powers.
root@debian4:~# apt-get -f install
Reading Package Lists... Done
Building Dependency Tree... Done
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@debian4:~#
stefan_w
Posts: 48
Joined: 2002-11-09 09:32
 

Re: Apache deinstalliert und und Apt geht nicht mehr

Post by stefan_w »

CaptainCrunch wrote:Dann installier das Paket "rcconf" noch einmal, da steckt das File drin ...
Löl, das ist ja das Problem: Ich kann nix installieren.
captaincrunch
Userprojekt
Userprojekt
Posts: 7066
Joined: 2002-10-09 14:30
Location: Dorsten
Contact:
 

Re: Apache deinstalliert und und Apt geht nicht mehr

Post by captaincrunch »

Code: Select all

apt-get install --reinstall sysvinit


@dodolin : OK, ich seh's ja ein ... apt-cache search ist wohl doch nicht die beste Methode gewesen ... ;)
Last edited by captaincrunch on 2003-05-18 15:50, edited 1 time in total.
DebianHowTo
echo "[q]sa[ln0=aln256%Pln256/snlbx]sb729901041524823122snlbxq"|dc
stefan_w
Posts: 48
Joined: 2002-11-09 09:32
 

Re: Apache deinstalliert und und Apt geht nicht mehr

Post by stefan_w »

Code: Select all

root@debian4:~# apt-get install --reinstall sysvinit
Reading Package Lists... Done
Building Dependency Tree... Done
The following NEW packages will be installed:
  sysvinit
0 packages upgraded, 1 newly installed, 0 to remove and 0  not upgraded.
Need to get 0B/111kB of archives. After unpacking 266kB will be used.
dpkg: »update-rc.d« wurde im PATH nicht gefunden.
dpkg: 1 erwartete Programme nicht im PATH gefunden.
NB: PATH von root sollte /usr/local/sbin, /usr/sbin und /sbin enthalten.
E: Sub-process /usr/bin/dpkg returned an error code (2)
[quote][/quote]
captaincrunch
Userprojekt
Userprojekt
Posts: 7066
Joined: 2002-10-09 14:30
Location: Dorsten
Contact:
 

Re: Apache deinstalliert und und Apt geht nicht mehr

Post by captaincrunch »

Dann mach doch einfach mal ein touch /usr/sbin/update-rc.d, und versuch's dann noch mal.
DebianHowTo
echo "[q]sa[ln0=aln256%Pln256/snlbx]sb729901041524823122snlbxq"|dc
stefan_w
Posts: 48
Joined: 2002-11-09 09:32
 

Re: Apache deinstalliert und und Apt geht nicht mehr

Post by stefan_w »

Kein Effekt, gleiche Fehlermeldung. Das hatte ich aber auch schon ausprobiert ;)
dodolin
Posts: 3840
Joined: 2003-01-21 01:59
Location: Sinsheim/Karlsruhe
Contact:
 

Re: Apache deinstalliert und und Apt geht nicht mehr

Post by dodolin »

Lass dir von jemandem die Datei update-rc.d geben (online stellen, was-weiß-ich...) und kopiere sie in /usr/sbin. Wenn das auch nichts hilft, werde ich langsam ratlos...

BTW: Wie kriegt man sein System nur so kaputt?
Das kann doch nicht wirklich an der Deinstallation von Apache liegen?!
stefan_w
Posts: 48
Joined: 2002-11-09 09:32
 

Re: Apache deinstalliert und und Apt geht nicht mehr

Post by stefan_w »

Ich hab echt keinen blassen schimmer.

Auf jeden Fall hab ich es jetzt hinbekommen. Hoffentlich bleibts auch so... :wink:
dodolin
Posts: 3840
Joined: 2003-01-21 01:59
Location: Sinsheim/Karlsruhe
Contact:
 

Re: Apache deinstalliert und und Apt geht nicht mehr

Post by dodolin »

... dann wäre doch für die Allgemeinheit sicher interessant zu wissen, wie?! Verrätst du uns das noch?
stefan_w
Posts: 48
Joined: 2002-11-09 09:32
 

Re: Apache deinstalliert und und Apt geht nicht mehr

Post by stefan_w »

Hmm... Nein.



:wink:
Ich hab sie von meinem Desktop-System einfach hochgeladen. Anfangs hatte ich noch den gleichen Fehler, aber mit chmod hab ich dann die Rechte runtergesetzt und nun läufts. 8O
dodolin
Posts: 3840
Joined: 2003-01-21 01:59
Location: Sinsheim/Karlsruhe
Contact:
 

Re: Apache deinstalliert und und Apt geht nicht mehr

Post by dodolin »

Guck am besten auch die Rechte von deinem Desktop-System ab und mache sie genauso wie dort, wenn dein Desktop-System noch ok ist.
stefan_w
Posts: 48
Joined: 2002-11-09 09:32
 

Re: Apache deinstalliert und und Apt geht nicht mehr

Post by stefan_w »

Alles klar, mach ich. Danke!
chaoskind
Posts: 80
Joined: 2003-05-20 10:47
Contact:
 

Re: Apache deinstalliert und und Apt geht nicht mehr

Post by chaoskind »

ädüt : falsches fenster, srory
Post Reply