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

 

 

 

Debian unstable - ldconfig gone after update

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
Tharbad
Posts: 11
Joined: 2010-07-23 13:27

Debian unstable - ldconfig gone after update

#1 Post by Tharbad »

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

User avatar
Bloom
df -h | grep > 90TiB
df -h | grep > 90TiB
Posts: 504
Joined: 2017-11-11 12:23
Been thanked: 26 times

Re: Debian unstable - ldconfig gone after update

#2 Post by Bloom »

Why don't you simply reinstall libc-bin?
I'm running Sid, too. No such problem here.

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

Re: Debian unstable - ldconfig gone after update

#3 Post by Tharbad »

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?

User avatar
Bloom
df -h | grep > 90TiB
df -h | grep > 90TiB
Posts: 504
Joined: 2017-11-11 12:23
Been thanked: 26 times

Re: Debian unstable - ldconfig gone after update

#4 Post by Bloom »

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.

milomak
Posts: 2168
Joined: 2009-06-09 22:20
Been thanked: 2 times

Re: Debian unstable - ldconfig gone after update

#5 Post by milomak »

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
Desktop: A320M-A PRO MAX, AMD Ryzen 5 3600, GALAX GeForce RTX™ 2060 Super EX (1-Click OC) - Sid, Win10, Arch Linux, Gentoo, Solus
Laptop: hp 250 G8 i3 11th Gen - Sid
Kodi: AMD Athlon 5150 APU w/Radeon HD 8400 - Sid

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

Re: Debian unstable - ldconfig gone after update

#6 Post by Tharbad »

It's in unstable.
ldconfig runs after a kernel update...

User avatar
4D696B65
Site admin
Site admin
Posts: 2696
Joined: 2009-06-28 06:09
Been thanked: 86 times

Re: Debian unstable - ldconfig gone after update

#7 Post by 4D696B65 »

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.

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

Re: Debian unstable - ldconfig gone after update

#8 Post by Tharbad »

This forum or another?

milomak
Posts: 2168
Joined: 2009-06-09 22:20
Been thanked: 2 times

Re: Debian unstable - ldconfig gone after update

#9 Post by milomak »

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
Desktop: A320M-A PRO MAX, AMD Ryzen 5 3600, GALAX GeForce RTX™ 2060 Super EX (1-Click OC) - Sid, Win10, Arch Linux, Gentoo, Solus
Laptop: hp 250 G8 i3 11th Gen - Sid
Kodi: AMD Athlon 5150 APU w/Radeon HD 8400 - Sid

User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: Debian unstable - ldconfig gone after update

#10 Post by GarryRicketson »

Tharbad wrote:This forum or another?
This forum.
It also has come up on some other forums as well:
https://unix.stackexchange.com/question ... 769#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.

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

Re: Debian unstable - ldconfig gone after update

#11 Post by Tharbad »

Thanks GarryRicketson.

milomak: I'm running on unstable as I'm testing it against Arch.

User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: Debian unstable - ldconfig gone after update

#12 Post by GarryRicketson »

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.

Post Reply