GNU bug report logs - #33970
Issue dpkg with diff

Previous Next

Package: diffutils;

Reported by: Sergio Sámano <sergio_samano_salazar <at> hotmail.com>

Date: Thu, 3 Jan 2019 23:29:02 UTC

Severity: normal

Tags: notabug

Done: Collin Funk <collin.funk1 <at> gmail.com>

To reply to this bug, email your comments to 33970 AT debbugs.gnu.org.
There is no need to reopen the bug first.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-diffutils <at> gnu.org:
bug#33970; Package diffutils. (Thu, 03 Jan 2019 23:29:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Sergio Sámano <sergio_samano_salazar <at> hotmail.com>:
New bug report received and forwarded. Copy sent to bug-diffutils <at> gnu.org. (Thu, 03 Jan 2019 23:29:04 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Sergio Sámano <sergio_samano_salazar <at> hotmail.com>
To: "bug-diffutils <at> gnu.org" <bug-diffutils <at> gnu.org>
Subject: Issue dpkg with diff
Date: Thu, 3 Jan 2019 23:03:40 +0000
[Message part 1 (text/plain, inline)]
Hi

I have some issue related with apt-get update, upgrade, dpkg, are.,  running all of them as root(recovery mode)finished with:

dpkg: warning: 'diff' not found in PATH or no executable
dpkg: error: 1 expected program not found or not executable
Note: root's PATH should usually contain /usr/sbin/ and /sbin

I've checked
#uname -a
Linux debian 4.18.0.3-amd64 #1 SMP Debian 4.18.20-2 (2018-11-23) x86_64 GNU/Linux
#echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/bin:/sbin:/bin

I've modified

/etc/sudoers
Adding the line

Defaults secure_path:"/usr/local/sbin:/usr/local/bin:/usr/bin:/sbin:/bin"

And in /root/.bashrc
Adding  the line

export PATH:/usr/local/sbin:/usr/local/bin:/usr/bin:/sbin:/bin


Also in the file
/etc/profile  (doing match in both lines of PATH)
...
if [ "`id-u`" -eq 0 then]
PATH="/usr/local/sbin:/usr/local/bin:/usr/bin:/sbin:/bin"
else
PATH="/usr/local/sbin:/usr/local/bin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games"
...

And even after that I get the same

I've tried PATH before the instructions and is the same

Do you know why it is happening?
Do you have any guidance to resolve this?

Thanks in advance

Regards


Sergio Sámano

[Message part 2 (text/html, inline)]

Information forwarded to bug-diffutils <at> gnu.org:
bug#33970; Package diffutils. (Fri, 04 Jan 2019 06:26:01 GMT) Full text and rfc822 format available.

Message #8 received at 33970 <at> debbugs.gnu.org (full text, mbox):

From: Jim Meyering <jim <at> meyering.net>
To: Sergio Sámano <sergio_samano_salazar <at> hotmail.com>
Cc: 33970 <at> debbugs.gnu.org
Subject: Re: [bug-diffutils] bug#33970: Issue dpkg with diff
Date: Thu, 3 Jan 2019 22:25:06 -0800
tags 33970 + notabug
close 33970
stop

On Thu, Jan 3, 2019 at 3:29 PM Sergio Sámano
<sergio_samano_salazar <at> hotmail.com> wrote:
> I have some issue related with apt-get update, upgrade, dpkg, are.,  running all of them as root(recovery mode)finished with:
>
> dpkg: warning: 'diff' not found in PATH or no executable
> dpkg: error: 1 expected program not found or not executable
> Note: root's PATH should usually contain /usr/sbin/ and /sbin

Thanks for the report, but it appears to be due to a problem in your
environment and not a problem with GNU diff, so I'm closing this as
notabug.
I suggest you look for help on debian-related lists or forums.




Added tag(s) notabug. Request was from Collin Funk <collin.funk1 <at> gmail.com> to control <at> debbugs.gnu.org. (Sat, 02 Aug 2025 06:21:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 33970 <at> debbugs.gnu.org and Sergio Sámano <sergio_samano_salazar <at> hotmail.com> Request was from Collin Funk <collin.funk1 <at> gmail.com> to control <at> debbugs.gnu.org. (Sat, 02 Aug 2025 06:21:02 GMT) Full text and rfc822 format available.

This bug report was last modified 6 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.