Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Latest Sid updates broken [solved]

Here you can discuss every aspect of Debian. Note: not for support requests!
Post Reply
Message
Author
User avatar
buntunub
Posts: 591
Joined: 2011-02-11 05:23

Latest Sid updates broken [solved]

#1 Post by buntunub »

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
ALLurGroceries
Posts: 1
Joined: 2008-11-03 10:02

Re: Latest Sid updates broken

#2 Post by ALLurGroceries »

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

anticapitalista
Posts: 428
Joined: 2007-12-14 23:16
Has thanked: 12 times
Been thanked: 13 times

Re: Latest Sid updates broken

#3 Post by anticapitalista »

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 with runit - lean and mean.
https://antixlinux.com

User avatar
craigevil
Posts: 5391
Joined: 2006-09-17 03:17
Location: heaven
Has thanked: 28 times
Been thanked: 39 times

Re: Latest Sid updates broken

#4 Post by craigevil »

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.
Raspberry PI 400 Distro: Raspberry Pi OS Base: Debian Sid Kernel: 5.15.69-v8+ aarch64 DE: MATE Ram 4GB
Debian - "If you can't apt install something, it isn't useful or doesn't exist"
My Giant Sources.list

User avatar
craigevil
Posts: 5391
Joined: 2006-09-17 03:17
Location: heaven
Has thanked: 28 times
Been thanked: 39 times

Re: Latest Sid updates broken

#5 Post by craigevil »

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
Raspberry PI 400 Distro: Raspberry Pi OS Base: Debian Sid Kernel: 5.15.69-v8+ aarch64 DE: MATE Ram 4GB
Debian - "If you can't apt install something, it isn't useful or doesn't exist"
My Giant Sources.list

anticapitalista
Posts: 428
Joined: 2007-12-14 23:16
Has thanked: 12 times
Been thanked: 13 times

Re: Latest Sid updates broken

#6 Post by anticapitalista »

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 with runit - lean and mean.
https://antixlinux.com

User avatar
buntunub
Posts: 591
Joined: 2011-02-11 05:23

Re: Latest Sid updates broken

#7 Post by buntunub »

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
edbarx
Posts: 5401
Joined: 2007-07-18 06:19
Location: 35° 50 N, 14 º 35 E
Been thanked: 2 times

Re: Latest Sid updates broken

#8 Post by edbarx »

Wikipedia wrote:The unstable, development distribution is permanently nicknamed sid, after the emotionally unstable next-door neighbor boy who regularly destroyed toys.
Debian == { > 30, 000 packages }; Debian != systemd
The worst infection of all, is a false sense of security!
It is hard to get away from CLI tools.

vbrummond
Posts: 4432
Joined: 2010-03-02 01:42

Re: Latest Sid updates broken

#9 Post by vbrummond »

Thanks! I had this issue as well and adding the lines to /etc/sudoers with visudo fixed it.
Always on Debian Testing

User avatar
62chevy
Posts: 1589
Joined: 2009-10-25 01:09
Location: West Virginia

Re: Latest Sid updates broken

#10 Post by 62chevy »

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 Buster

Lns
Posts: 4
Joined: 2010-07-15 20:25

Re: Latest Sid updates broken [solved]

#11 Post by Lns »

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!!

User avatar
EddieB
Posts: 51
Joined: 2011-11-07 03:07

Re: Latest Sid updates broken [solved]

#12 Post by EddieB »

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 ... "

absum
Posts: 1
Joined: 2013-05-13 11:42

Re: Latest Sid updates broken [solved]

#13 Post by absum »

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.

Pegazux
Posts: 1
Joined: 2013-06-17 19:18

Re: Latest Sid updates broken

#14 Post by Pegazux »

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.

JulietLindv
Posts: 2
Joined: 2014-10-03 22:02

Re: Latest Sid updates broken [solved]

#15 Post by JulietLindv »

Is there any way to downgrade to the previous state? I seem to be having login issues after upgrading. Thanks
Juliet

User avatar
vrkalak
Posts: 267
Joined: 2009-10-08 03:43
Location: Santa Fe, NM, USA

Re: Latest Sid updates broken [solved]

#16 Post by vrkalak »

Old Threads: It is 'best' to start another Thread.

Posting in old threads, or "necrobumping" is generally discouraged in the technical issue subforums, since it can potentially create disjointed "zombie" information; outdated posts with data which is no longer relevant due to Debian 'future' updates, combined with more recent posts reflecting more current circumstance.

Furthermore, technical support threads should remain succinct, and multiple pages are to be avoided if possible.

RexanaCCk
Posts: 3
Joined: 2014-10-05 02:49

Re: Latest Sid updates broken [solved]

#17 Post by RexanaCCk »

Mine also got broke after the latest update of sudo. Any idea how to fix this? Upgrading often causes problems.
Rexana Cullen

Post Reply