Path problem, when updating.
Hello so when im trying to update my packages i get this error.
dpkg: warning: 'ldconfig' not found in PATH or not executable. dpkg: error: 1 expected program not found in PATH or not executable. Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin. E: Sub-process /usr/bin/dpkg returned an error code (2) I also get the same when i do it with sudo. Im using LinuxMint 12 kde. Ive sneaked around trying to solve it But i havnt got a decent result yet. |
are you sure ldconfig is available?
|
In this case, secure_path option needs to be set in /etc/sudoers file.
and after this line in /etc/sudoers file: Quote:
Quote:
|
Quote:
|
Defaults env_reset
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" Thats how my sudoers looks like, and i still get problems updating. |
Am i missing somthing here or :S, anyone got some more i can work with?
|
it seems like those two lines are the "usual" solution to this problem.
I'll try just a shot in the dark: have you checked the permissions of your sudoers file?? Code:
ls -l /etc/sudoers |
All times are GMT -5. The time now is 06:22 AM. |