Page 1 of 1

upgrade to buster - system command not found in current path

PostPosted: 2018-10-14 03:27
by llivv
Are system files being moved into /usr/bin in stretch - buster?
I've been having to use full path for commands in /sbin and /usr/sbin with sid for a couple of months.

I ask becasue, I just upgraded an old i386 install to buster
then
I ran # update-grub
I got error command not found.

Further, both update-grub and update-grub2 had to be editied to find the command they link to. done
that worked ok
then
os-prober didn't get called
so I get only one entry in /boot/grub/grub.cfg
-
-
It's not a big problem for me personally, so if this is a non issue for release I can deal with adding the old path manually.

Re: upgrade to buster - sys calls not found in current path

PostPosted: 2018-10-14 07:59
by Head_on_a_Stick
How are you obtaining a root shell?

I would use
Code: Select all
su -

Debian's old shortcut that adds `-` automatically no longer works, there have been several threads about this.

Re: upgrade to buster - sys calls not found in current path

PostPosted: 2018-10-14 09:14
by Head_on_a_Stick
llivv wrote:Are system files being moved into /usr/bin in stretch - buster?

Yes:

https://wiki.debian.org/UsrMerge

EDIT: well, perhaps. I don't follow the Debian mailing lists (for shame!) so I don't know if this will be ready for the buster freeze.

Re: upgrade to buster - sys calls not found in current path

PostPosted: 2018-10-14 09:23
by p.H
llivv wrote:Are system files being moved into /usr/bin in stretch - buster?

What are your calling "system files" ?
Also, how it your post related to the syscalls mentioned in the subject ?

llivv wrote:I've been having to use full path for commands in /sbin and /usr/sbin with sid for a couple of months.

It means that these commands are located in /sbin and /usr/sbin, so why are you asking if system files are being moved to /usr/bin ?

llivv wrote:I ran # update-gurb
I got error command not found.

As expected. update-gurb does not exist. Try update-grub instead.

Head_on_a_Stick wrote:Debian's old shortcut that adds `-` automatically no longer works

What shortcut are you talking about ? $PATH is now different with and without '-'.

Re: upgrade to buster - sys calls not found in current path

PostPosted: 2018-10-14 09:41
by Head_on_a_Stick
p.H wrote:
Head_on_a_Stick wrote:Debian's old shortcut that adds `-` automatically no longer works

What shortcut are you talking about ? $PATH is now different with and without '-'.

Is that the only difference with the new change? Thanks for the information, I only run stable so I wasn't aware of the specifics.

I have always used `su -` to obtain a root shell in GNU/Linux and I was surprised to learn that `su` worked in Debian, tbh :)

Anyway, I think our idiomatic OP is describing the /usr merge, as explained in my wiki link.

Re: upgrade to buster - system command not found in current

PostPosted: 2018-10-14 19:51
by llivv
Thanks H_o_a_S for the links.
I editied the OP's title and typo to reduce confusion.
4D696B65's post here:
viewtopic.php?f=3&t=138771
worked in my situation as I was previously using either su and/or su -c'[command]'
both of which failed to find the path to /sbin and /usr/sbin files.

The last time I bootstraped a sid install a few months ago, it asked me if I wanted to include /sbin and /usr/sbin symlinks
It appeared that both those directories were/are being moved into /usr/bin
"as if /usr/bin diesn't have enough files in it already" LOL

Take from my post wharever you can use and thanks again for the help.

Re: upgrade to buster - system command not found in current

PostPosted: 2018-10-15 13:08
by p.H
llivv wrote:The last time I bootstraped a sid install a few months ago, it asked me if I wanted to include /sbin and /usr/sbin symlinksIt appeared that both those directories were/are being moved into /usr/bin

This is "/usr merge". You misunderstood. It means to merge the contents of /bin in /usr/bin, /lib* in /usr/lib* and /sbin in /usr/sbin and replace them with symlinks.
It does not move /sbin and /usr/sbin in /usr/bin nor is related to the change in the behavior of "su" regarding $PATH.

Re: upgrade to buster - system command not found in current

PostPosted: 2018-11-11 16:00
by llivv
update-gub works again (pssssss) the stdout is a striking visual. wow
last time grubs terminal scroll changed that way I thought to myself - oh god help us.

/usr Merge - still misunderstood

su USER - still misunderstood too.

Re: upgrade to buster - system command not found in current

PostPosted: 2018-11-11 21:05
by pylkko
You typoed grub again. If you manage to do it twice in this thread alone and according to you, your command stopped working and then magically started working again, I fear most readers will make further conclusions from this.

Re: upgrade to buster - system command not found in current

PostPosted: 2018-11-11 21:51
by GarryRicketson
Postby llivv ยป 2018-11-11 10:00
update-gub works again

Really ?, I tried
Code: Select all
update-gub
and it says "command not found" :?: :mrgreen:

Re: upgrade to buster - system command not found in current

PostPosted: 2018-11-12 05:14
by llivv
that didn't take long

check