LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 01-29-2004, 07:46 PM   #1
avram
LQ Newbie
 
Registered: Oct 2003
Location: Seattle
Distribution: Knoppix HD-install
Posts: 20

Rep: Reputation: 0
Question root's PATH incomplete when upgrading from Woody


I just finished downloading 180MB of packages to upgrade to Sid from Woody, and apt-get gives me this:

Preconfiguring packages . . .
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
E: Sub-process /usr/bin/dpkg returned an error code (2)

So does this mean that I need to add these directories to root's PATH? And if so, how do I go about doing that?
(On a side note, is there an easy way to copy text from an Xconsole to some other location? I had to manually retype the above output)

Any help is much appreciated,
Thank You

-Avi
 
Old 01-29-2004, 08:00 PM   #2
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 47
While as root type
echo $PATH

This will give you the current path, so you can check if their set correctly.
To set new directories for path type
export /the/new/directory:another/new/directory:$PATH

These will set them up temporarily, To make them permanant you need to edit the /root/.profile file.

If you su'd to root make sure you followed su with a -, otherwise it will use your normal users path.

To copy something from xconsole, simply hi-light with your mouse and middle-click where you want to paste the text.

Also did you do an upgrade or a dist-upgrade?
 
Old 01-29-2004, 08:19 PM   #3
avram
LQ Newbie
 
Registered: Oct 2003
Location: Seattle
Distribution: Knoppix HD-install
Posts: 20

Original Poster
Rep: Reputation: 0
Thanks for the reply.

This is what happened after I tried what you suggested:

debian:/home/avram# echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games
debian:/home/avram# export /usr/local/sbin:/usr/sbin:$PATH
bash: export: `/usr/local/sbin:/usr/sbin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X
11:/usr/games': not a valid identifier

(Thanks for the hi-light and middle-click trick, that's really cool!)
I did a dist-upgrade

-Avi
 
Old 01-29-2004, 08:47 PM   #4
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 47
Sorry my mistake try

export PATH=/usr/local/sbin:/usr/sbin:$PATH

Also try using "su -" instead of "su" to get root access, as this should automatically give you the correct path.
 
Old 01-29-2004, 08:55 PM   #5
avram
LQ Newbie
 
Registered: Oct 2003
Location: Seattle
Distribution: Knoppix HD-install
Posts: 20

Original Poster
Rep: Reputation: 0
Ok- I used "su -" this time, and when I typed "echo $PATH", it had the directories that were missing...
So maybe I should try "apt-get dist-upgrade" after "su -"?

Thanks again for the prompt reply
-Avi
 
Old 01-29-2004, 09:01 PM   #6
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 47
Yes go for it, It should work now.
 
Old 01-29-2004, 11:21 PM   #7
avram
LQ Newbie
 
Registered: Oct 2003
Location: Seattle
Distribution: Knoppix HD-install
Posts: 20

Original Poster
Rep: Reputation: 0
Thanks- that worked great!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Path of xinit; window managers location; root's home; frankie_DJ Solaris / OpenSolaris 4 08-02-2005 03:46 AM
How do I change ROOT's $PATH permanently? lucasrj SUSE / openSUSE 3 01-29-2005 09:31 AM
How to set root's PATH? gepesz Linux - Software 2 08-26-2004 11:10 AM
Upgrading a woody system to 2.6.1 Rounan Debian 2 01-12-2004 02:44 AM
Upgrading Woody from 2.20 to 2.4.2x pilot1 Debian 5 12-02-2003 03:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 04:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration