Bug#913656: buildd.debian.org: dpkg ends up with error 2 due to miss path for /etc/profile

2018-11-13 Thread Philipp Kern

On 2018-11-13 17:24, edneyhelene wrote:

Package: buildd.debian.org
Severity: normal
Tags: patch

Dear Maintainer,
Debian buster have a strange problem at the momment!

DPKG cant find ldconfig path and it gives error 2!

The solution is to edit /etc/profile
Bugged version :

if [ "`id -u`" -eq 0 ]; then
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
else
PATH="/usr/local/bin:/usr/bin:/bin:/usr/games"
fi

___
Solution: /Sbin is missing after games and needs an patch for solution.

Temporary fix is to edit like this:

if [ "`id -u`" -eq 0 ]; then
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
else
PATH="/usr/local/bin:/usr/bin:/bin:/usr/games/sbin"
fi

and then
source /etc/profile

If someone could please make this permanent fix for the system on an 
next

update would be great!


Maybe you should make sure that your environment is correct when 
escalating your privileges to root, e.g. using "sudo -i". Anyway you 
reported this against a wrong component and this is in fact a user 
error. I suggest reaching out to debian-u...@lists.debian.org for help.


Kind regards
Philipp Kern



Bug#913656: buildd.debian.org: dpkg ends up with error 2 due to miss path for /etc/profile

2018-11-13 Thread edneyhelene
Package: buildd.debian.org
Severity: normal
Tags: patch

Dear Maintainer,
Debian buster have a strange problem at the momment!

DPKG cant find ldconfig path and it gives error 2!

The solution is to edit /etc/profile
Bugged version :

if [ "`id -u`" -eq 0 ]; then
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
else
PATH="/usr/local/bin:/usr/bin:/bin:/usr/games"
fi

___
Solution: /Sbin is missing after games and needs an patch for solution.

Temporary fix is to edit like this:

if [ "`id -u`" -eq 0 ]; then
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
else
PATH="/usr/local/bin:/usr/bin:/bin:/usr/games/sbin"
fi

and then
source /etc/profile

If someone could please make this permanent fix for the system on an next
update would be great!



-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.18.0-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash