Debian unstable - ldconfig gone after update

If none of the more specific forums is the right place to ask

Debian unstable - ldconfig gone after update

Postby Tharbad » 2018-08-30 19:01

Hi everyone,

I have a VM with Debian unstable. After an update ldconfig is missing. ldconfig is part of libc-bin which should be part of the basic installation. Therefore I'm assuming it's a bug.
I already reverted the VM to a 20.7.2018 snapshot and it happened again.
Ideas?

Thanks
Tharbad
 
Posts: 11
Joined: 2010-07-23 13:27

Re: Debian unstable - ldconfig gone after update

Postby Bloom » 2018-08-31 05:34

Why don't you simply reinstall libc-bin?
I'm running Sid, too. No such problem here.
User avatar
Bloom
 
Posts: 71
Joined: 2017-11-11 12:23

Re: Debian unstable - ldconfig gone after update

Postby Tharbad » 2018-08-31 17:35

Tried. It failed.

Anyway I found a solution buried in debian mailing lists: I should use "su -" instead of "su". Otherwise I can't use ldconfig.
Do you know of a place to read about news like this?
Tharbad
 
Posts: 11
Joined: 2010-07-23 13:27

Re: Debian unstable - ldconfig gone after update

Postby Bloom » 2018-08-31 20:31

Or sudo, like:
Code: Select all
sudo ldconfig


What commands do you need to execute as root? Everything that changes the system of another user's data. If you which to do something within your own home directory, you don't need to use root privileges.
User avatar
Bloom
 
Posts: 71
Joined: 2017-11-11 12:23

Re: Debian unstable - ldconfig gone after update

Postby wizard10000 » 2018-08-31 20:52

Tharbad wrote:Anyway I found a solution buried in debian mailing lists:

...Do you know of a place to read about news like this?


I must be missing something here.

:mrgreen:
we see things not as they are, but as we are.
-- anais nin
User avatar
wizard10000
 
Posts: 1295
Joined: 2011-05-09 20:02
Location: everywhere i go, there i am!

Re: Debian unstable - ldconfig gone after update

Postby milomak » 2018-08-31 21:25

Tharbad wrote:Tried. It failed.

Anyway I found a solution buried in debian mailing lists: I should use "su -" instead of "su". Otherwise I can't use ldconfig.
Do you know of a place to read about news like this?


am i correct that you were doing
Code: Select all
$ su
# ldconfig


if so, then yes su on its own no longer picks up the root environment. you need to add the <space><dash> after su. this is obviously in sid (maybe testing) and not stable
iMac Late-2015 27" 5K Retina - MacOS and Windows 10 (Bootcamp)/ Debian Sid (External SSD)
Laptop (64-bit) - Debian Sid, Win10,
Kodi Box - Debian Sid
milomak
 
Posts: 1812
Joined: 2009-06-09 22:20

Re: Debian unstable - ldconfig gone after update

Postby Tharbad » 2018-08-31 22:12

It's in unstable.
ldconfig runs after a kernel update...
Tharbad
 
Posts: 11
Joined: 2010-07-23 13:27

Re: Debian unstable - ldconfig gone after update

Postby 4D696B65 » 2018-08-31 22:16

Tharbad wrote:Anyway I found a solution buried in debian mailing lists: I should use "su -" instead of "su". Otherwise I can't use ldconfig.
Do you know of a place to read about news like this?

Yes, you can read about it right here. Its been talked about for weeks.
User avatar
4D696B65
 
Posts: 2205
Joined: 2009-06-28 06:09

Re: Debian unstable - ldconfig gone after update

Postby Tharbad » 2018-09-01 20:44

This forum or another?
Tharbad
 
Posts: 11
Joined: 2010-07-23 13:27

Re: Debian unstable - ldconfig gone after update

Postby milomak » 2018-09-01 21:34

if you are running sid without apt-listbugs and apt-listchanges then you have no one to blame but yourself

because listchanges made this clear
iMac Late-2015 27" 5K Retina - MacOS and Windows 10 (Bootcamp)/ Debian Sid (External SSD)
Laptop (64-bit) - Debian Sid, Win10,
Kodi Box - Debian Sid
milomak
 
Posts: 1812
Joined: 2009-06-09 22:20

Re: Debian unstable - ldconfig gone after update

Postby GarryRicketson » 2018-09-02 03:31

Tharbad wrote:This forum or another?

This forum.
It also has come up on some other forums as well:
https://unix.stackexchange.com/questions/460478/debian-su-and-su-path-differences/460769#460769
Quoting from util-linux/NEWS.Debian.gz:
The two implementations are very similar but have some minor differences (and there might be more that was not yet noticed ofcourse), e.g.

new 'su' (with no args, i.e. when preserving the environment) also preserves PATH and IFS, while old su would always reset PATH and IFS even in 'preserve environment' mode.
su '' (empty user string) used to give root, but now returns an error.
previously su only had one pam config, but now 'su -' is configured separately in /etc/pam.d/su-l
The first difference is probably the most user visible one. Doing plain 'su' is a really bad idea for many reasons, so using 'su -' is strongly recommended to always get a newly set up environment similar to a normal login. If you want to restore behaviour more similar to the previous one you can add 'ALWAYS_SET_PATH yes' in /etc/login.defs.
User avatar
GarryRicketson
 
Posts: 5167
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: Debian unstable - ldconfig gone after update

Postby Tharbad » 2018-09-02 19:19

Thanks GarryRicketson.

milomak: I'm running on unstable as I'm testing it against Arch.
Tharbad
 
Posts: 11
Joined: 2010-07-23 13:27

Re: Debian unstable - ldconfig gone after update

Postby GarryRicketson » 2018-09-02 20:25

Your welcome,
I do expect this
Code: Select all
su and su -
change will catch a few people by surprise though, and expect to see more posts asking about what is going on, it is fairly recent. Guess that would be another topic though,...sorry,
carry on.
User avatar
GarryRicketson
 
Posts: 5167
Joined: 2015-01-20 22:16
Location: Durango, Mexico


Return to General Questions

Who is online

Users browsing this forum: No registered users and 8 guests

fashionable