[SOLVED] Problems with updating

Post your update and upgrade related errors here
Forum rules
Before you post please read this

[SOLVED] Problems with updating

Postby fetterchefkoch on Mon Sep 19, 2011 2:43 pm

Hello Everyone :D,

I just tried to update my linux mint through the console with
Code: Select all
sudo apt-get update
sudo apt-get upgrade

and the errormessage I get is
Code: Select all
Extracting templates from packages: 100%
Preconfiguring packages ...
dpkg: warning: 'ldconfig' not found in PATH or not executable.
dpkg: warning: 'start-stop-daemon' not found in PATH or not executable.
dpkg: error: 2 expected programs 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 don't know what the problem is.

Thanks in advance for any help :D.
Last edited by fetterchefkoch on Wed Sep 21, 2011 11:31 am, edited 1 time in total.
fetterchefkoch
Level 1
Level 1
 
Posts: 23
Joined: Mon Aug 29, 2011 8:13 am

Linux Mint is funded by ads and donations.
 

Re: Problems with updating

Postby rich_roast on Mon Sep 19, 2011 5:37 pm

Check that root's path is set correctly with

Code: Select all
sudo -s
echo $PATH
User avatar
rich_roast
Level 6
Level 6
 
Posts: 1136
Joined: Sat Sep 05, 2009 4:37 pm

Re: Problems with updating

Postby fetterchefkoch on Tue Sep 20, 2011 12:59 am

Code: Select all
lenovo-laptop # echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games


So I suppose the the folder /usr/local/sbin and /usr/sbin and /sbin are missing.
The next question would be how to add them :D.
fetterchefkoch
Level 1
Level 1
 
Posts: 23
Joined: Mon Aug 29, 2011 8:13 am

Re: Problems with updating

Postby Midnighter on Tue Sep 20, 2011 2:54 am

What version of mint are you using? What is the contents of your /etc/apt/sources.list file? Is this a fresh install? have you added any repos?
If you accept - and I do - that freedom of speech is important, then you are going to have to defend the indefensible. That means you are going to be defending the right of people to read, or to write, or to say, what you don't say or like or want said.
User avatar
Midnighter
Level 6
Level 6
 
Posts: 1305
Joined: Tue May 22, 2007 1:52 pm
Location: Western Australia

Re: Problems with updating

Postby fetterchefkoch on Tue Sep 20, 2011 5:04 pm

Did you mean with "version of mint":
Code: Select all
uname -a
Linux lenovo-laptop 2.6.32-5-amd64 #1 SMP Thu Nov 25 18:02:11 UTC 2010 x86_64 GNU/Linux

?

content of /etc/apt/sources.list:
deb http://packages.linuxmint.com/ debian main upstream import
deb http://ftp.debian.org/debian testing main contrib non-free
deb http://security.debian.org/ testing/updates main contrib non-free
deb http://www.debian-multimedia.org testing main non-free

no it is not a fresh install. I've been using it for about 3 month and have done various updates and installs. I haven't had any problems until yesterday and I didn't install anything else.

I tried to update my mint via sudo su. It updated everything except the packages which do need the path to sbin.
fetterchefkoch
Level 1
Level 1
 
Posts: 23
Joined: Mon Aug 29, 2011 8:13 am

Re: Problems with updating

Postby Gerd50 on Tue Sep 20, 2011 6:47 pm

Hello fetterchefkoch,

to fix it run

Code: Select all
gksu gedit etc/sudoers

in sudoers you'll find the line:

Code: Select all
Defaults   env_reset

under this line add:

Code: Select all
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

This fix worked for me, hope for you too :wink:
I believe in everything, except humans.

LM9, Debian Testing Xfce, Debian Sid Xfce - CPU/Amd64 2,6Ghz, Graphics/Nvidia 9600 GT, Sound/SB Audigy4 emu10K1
User avatar
Gerd50
Level 5
Level 5
 
Posts: 738
Joined: Wed Jul 22, 2009 3:42 pm
Location: Fishtown, Germany

Re: Problems with updating

Postby proxima_centauri on Tue Sep 20, 2011 6:54 pm

* Moved to LMDE (Linux Mint Debian) < Update/Upgrade Issues
User avatar
proxima_centauri
Level 11
Level 11
 
Posts: 3972
Joined: Tue Dec 25, 2007 3:24 pm
Location: NB, Canada

Re: Problems with updating

Postby fetterchefkoch on Wed Sep 21, 2011 11:31 am

Well it worked now. Thanks for the useful tips :D
fetterchefkoch
Level 1
Level 1
 
Posts: 23
Joined: Mon Aug 29, 2011 8:13 am

Linux Mint is funded by ads and donations.
 

Return to Update/Upgrade Issues

Who is online

Users browsing this forum: No registered users and 5 guests