Latest Sid updates broken [solved]

Here you can discuss every aspect of Debian. Note: not for support requests!

Latest Sid updates broken [solved]

Postby buntunub » 2011-08-26 05:00

Getting this on todays updates -

Code: Select all
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)
A package failed to install.  Trying to recover:
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.


Updates for

Code: Select all
libegl1-mesa libegl1-mesa-drivers libgbm1 libgl1-mesa-dev libgl1-mesa-dri
  libgl1-mesa-glx libglapi-mesa libglu1-mesa libglu1-mesa-dev libopenvg1-mesa
  librasqal3 mesa-common-dev
Last edited by buntunub on 2011-10-08 01:16, edited 1 time in total.
User avatar
buntunub
 
Posts: 489
Joined: 2011-02-11 05:23

Re: Latest Sid updates broken

Postby ALLurGroceries » 2011-08-26 11:45

Add /sbin back to your path as root and then retry the upgrade. Your PATH should be at least:
Code: Select all
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin


so as root:
Code: Select all
export PATH=$PATH:/usr/local/sbin:/usr/sbin:/sbin

and then retry your apt-get upgrade
User avatar
ALLurGroceries
 
Posts: 1
Joined: 2008-11-03 10:02

Re: Latest Sid updates broken

Postby anticapitalista » 2011-08-26 16:32

I had something similar caused by the /etc/sudoers file.

It needed these lines.

Code: Select all
Defaults   env_reset
Defaults   secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
antiX "Luddite" - lean and mean.
http://antix.mepis.org
anticapitalista
 
Posts: 234
Joined: 2007-12-14 23:16

Re: Latest Sid updates broken

Postby craigevil » 2011-08-26 18:23

No issues here, running sid with daily or more often d-u.
Host: debian Kernel: 3.0.0-1-486 i686 (32 bit) Desktop KDE 4.6.5 Distro: Debian GNU/Linux wheezy/sid

# apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Debian Sid KDE Kernel 3.17 Thinkpad R40 Intel M 1.3 CPU 2GB RAM Radeon Mobility 7500
Debian - "If you can't apt-get something, it isn't useful or doesn't exist"
Debian upgrade script smxi | sysinfo script inxi
User avatar
craigevil
 
Posts: 5159
Joined: 2006-09-17 03:17
Location: Oz

Re: Latest Sid updates broken

Postby craigevil » 2011-08-27 08:10

anticapitalista wrote:I had something similar caused by the /etc/sudoers file.

It needed these lines.

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


Default root PATH:

echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

Normal user (most people won't have the RealPlayer or surfraw)
craig@debian:~$ echo $PATH
/home/craig/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/opt/real/RealPlayer:/usr/lib/surfraw:/usr/lib/surfraw
Debian Sid KDE Kernel 3.17 Thinkpad R40 Intel M 1.3 CPU 2GB RAM Radeon Mobility 7500
Debian - "If you can't apt-get something, it isn't useful or doesn't exist"
Debian upgrade script smxi | sysinfo script inxi
User avatar
craigevil
 
Posts: 5159
Joined: 2006-09-17 03:17
Location: Oz

Re: Latest Sid updates broken

Postby anticapitalista » 2011-08-27 09:00

Just to clarify.

/etc/sudoers in sid, default already has those lines I posted. Mine didn't as my install had been upgraded from Testing and I kept my own sudoers file so it used the default from Testing (back then).

Code: Select all
# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/games
antiX "Luddite" - lean and mean.
http://antix.mepis.org
anticapitalista
 
Posts: 234
Joined: 2007-12-14 23:16

Re: Latest Sid updates broken

Postby buntunub » 2011-08-27 17:34

Thanks for the help all. Updating my sudoers file with the proper path fixed this. I guess it got broke after the latest sudo update somehow.
User avatar
buntunub
 
Posts: 489
Joined: 2011-02-11 05:23

Re: Latest Sid updates broken

Postby edbarx » 2011-08-27 17:40

Wikipedia wrote:The unstable, development distribution is permanently nicknamed sid, after the emotionally unstable next-door neighbor boy who regularly destroyed toys.
Learning how to learn from the mistakes of others is far more efficient. It's also less painful. (dasein)
Debian = {freedom, reliability, stability, configurability, flexibility, security}
It's hard to get away from apt and the CLI tools!
User avatar
edbarx
 
Posts: 4492
Joined: 2007-07-18 06:19
Location: 35° 50 N, 14 º 35 E

Re: Latest Sid updates broken

Postby vbrummond » 2011-10-01 22:54

Thanks! I had this issue as well and adding the lines to /etc/sudoers with visudo fixed it.
vbrummond
 
Posts: 4344
Joined: 2010-03-02 01:42

Re: Latest Sid updates broken

Postby 62chevy » 2011-10-04 03:04

Code: Select all
From root@sid Tue Sep 27 19:55:40 2011
Envelope-to: root@sid
Delivery-date: Tue, 27 Sep 2011 19:55:40 -0400
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
Subject: apt-listchanges: news for sid
To: root@sid
From: root <root@sid>
Date: Tue, 27 Sep 2011 19:55:40 -0400

sudo (1.8.2-1) unstable; urgency=low

  The sudo package is no longer configured using --with-secure-path.
  Instead, the provided sudoers file now contains a line declaring
  'Defaults secure_path=' with the same path content that was previously
  hard-coded in the binary.  A consequence of this change is that if you
  do not have such a definition in sudoers, the PATH searched for commands
  by sudo may be empty.

  Using explicit paths for each command you want to run with sudo will work
  well enough to allow the sudoers file to be updated with a suitable entry
  if one is not already present and you choose to not accept the updated
  version provided by the package.
 
 -- Bdale Garbee <bdale@gag.com>  Wed, 24 Aug 2011 13:33:11 -0600



I received this message the other day when I updated my install.
Debian Squeeze
Debian Sid
SalineOS 1.5
User avatar
62chevy
 
Posts: 1569
Joined: 2009-10-25 01:09
Location: West Virginia

Re: Latest Sid updates broken [solved]

Postby Lns » 2011-11-13 22:39

Just another person that this thread fixed :) added the 'secure_path' line to /etc/sudoers via 'visudo' and everything works again. Strange how it stopped after a while, not sure when it broke exactly, but I'm running testing. Thank you all for the tips as always!!
Lns
 
Posts: 4
Joined: 2010-07-15 20:25

Re: Latest Sid updates broken [solved]

Postby EddieB » 2013-01-22 05:37

Chalk up another ... I opted not to update the sudoers during a push from squeeze to sid and was greeted with several debconf errors ...

Another saving thread ...

TY DUF.
"The Problem is Your Not Grokking Debian ... "
User avatar
EddieB
 
Posts: 51
Joined: 2011-11-07 03:07

Re: Latest Sid updates broken [solved]

Postby absum » 2013-05-13 11:45

Had this same issue upgrading from squeeze to wheezy (chose to keep old sudoers file, might've caused this), adding the secure_path line fixed it. Thank you.
absum
 
Posts: 1
Joined: 2013-05-13 11:42

Re: Latest Sid updates broken

Postby Pegazux » 2013-06-17 19:21

ALLurGroceries wrote:Add /sbin back to your path as root and then retry the upgrade. Your PATH should be at least:
Code: Select all
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin


so as root:
Code: Select all
export PATH=$PATH:/usr/local/sbin:/usr/sbin:/sbin

and then retry your apt-get upgrade


Great!

Code: Select all
export PATH=$PATH:/usr/local/sbin:/usr/sbin:/sbin


Works for me, thanks.
Pegazux
 
Posts: 1
Joined: 2013-06-17 19:18


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 11 guests

fashionable