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:
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.
Oder diverse Manuals zum Paketmanagement von Debian studieren, wie man kaputte Paketinstallationen "reparieren" lassen kann. IIRC gab es da auch Funktionen für...
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...
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:
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?
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:~#
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]
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?!
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