Re: Error Code whe using apt-get

From: Adam Aube (aaube01_at_baker.edu)
Date: 02/18/04

  • Next message: Mike Fedyk: "Anti-aliasing fonts in OpenOffice & vncserver"
    To: debian-user@lists.debian.org
    Date: Tue, 17 Feb 2004 22:34:11 -0500
    
    

    On Wednesday 18 February 2004 10:17 pm, Kirby Walborn wrote:
    > I am new to Debian and am having problems with the apt-get, dpkg
    > system. I have reinstalled the system 2 times and continuye to have
    > the same problem. Whenever I try to install a package I get the
    > following set of messages.
    >
    > dpkg: `ldconfig' not found on PATH.
    > dpkg: `start-stop-daemon' not found on PATH.
    > dpkg: `install-info' not found on PATH.
    > dpkg: `update-rc.d' not found on PATH.
    > dpkg: 4 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)
    >
    > The installation fails and I have no idea what is going wrong. Any
    > help would be appreciated. Thanks

    As the messges state, dpkg is expecting to find certain programs in root's
    PATH, and it's not finding them.

    Is root using the defaut shell (bash)? If not, what shell is root using?

    What is the output of "/bin/echo $PATH" when run as root?

    When you use dpkg or apt, do you log in as root, su to root, or use sudo?

    Adam

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

  • Next message: Mike Fedyk: "Anti-aliasing fonts in OpenOffice & vncserver"

    Relevant Pages

    • Re: problems while making java package using fakeroot
      ... install the package as root (e.g. dpkg -i ... Removing temporary directory: done ...
      (Debian-User)
    • OO2.0 .debs installed! (was: OpenOffice 2.0 install from .deb?)
      ... Many thanks to Steef, Felix, and Anthony, all of whom replied ... that "dpkg -i " as root was the answer. ...
      (Debian-User)
    • Re: Installing a downloaded .deb ?
      ... When you do the dpkg -i whatever.deb ... you must of course do it as root. ... Only go download a .deb when there's some reason you can't ... To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org ...
      (Debian-User)
    • Re: Firefox Install
      ... > As root, run firefox-installer. ... back of your package manager (dpkg), the only place you can safely ... > Woody without installing backports or upgrading to Sarge. ... To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org ...
      (Debian-User)
    • Re: Newbie wants Firefox and Tbird
      ... > if you don't want to mess with sudo ... I was logged into the system as root, and opened an xterm, then tried dpkg. ...
      (Debian-User)