[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: dpkg problem



On Mon, Jul 08, 2002 at 01:52:22PM +0530, lakshmi@uomphysics.net wrote:
> hi all,
> I would like to have some help settingup my debian system. I had some
> problems confguring the xserver-svga and getting "startx" work. while i was
> trying to do this, i messed around uninstalling xserver and some how i
> am not able to 'apt-get', dpkg , ... work.
> I got the following errors while i tried to "apt-get install -f"
> 
> dpkg:'update-rc.d' not found on PATH
> dpkg: 1 expected program(s) not found on PATh.
> NB: root's PATH should usually contain /usr/local/sbin, /usr/sbin and
> /sbin
> E: Sub-process /usr/bin/dpkg returned an error code(2).
> 

Firstly, does update-rc.d exist in /usr/sbin or /sbin (I'm guessing it
should be one of these two, I'm not on a Debian box atm).

If it does exist in there, type "echo $PATH" as root, and you will find
that the PATH is missing one/both of those directories.  Add them to the
appropriate startup file for your root shell (probably .bash_profile).

If update-rc.d doesn't exist at all, then you must have hosed something
and will need to put it back to proceed.  I can't really understand why
uninstalling the x-server would affect this sort of stuff, unless you've
accidentally uninstalled a bit more than you bargained for...

- Chris


-- 
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: