upgrade to buster - system command not found in current path

News and discussion about development of the Debian OS itself

upgrade to buster - system command not found in current path

Postby llivv » 2018-10-14 03:27

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.
Last edited by llivv on 2018-10-14 19:29, edited 1 time in total.
in the kitchen with Julia
The Past, Christmas Present and Future
Get on the Dbus to Bcan
User avatar
llivv
 
Posts: 5634
Joined: 2007-02-14 18:10
Location: cold storage

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

Postby Head_on_a_Stick » 2018-10-14 07:59

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.
I suffer from depression and may lash out occasionally, try not to take it personally.
User avatar
Head_on_a_Stick
 
Posts: 8170
Joined: 2014-06-01 17:46
Location: /dev/chair

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

Postby Head_on_a_Stick » 2018-10-14 09:14

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.
I suffer from depression and may lash out occasionally, try not to take it personally.
User avatar
Head_on_a_Stick
 
Posts: 8170
Joined: 2014-06-01 17:46
Location: /dev/chair

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

Postby p.H » 2018-10-14 09:23

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 '-'.
p.H
 
Posts: 631
Joined: 2017-09-17 07:12

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

Postby Head_on_a_Stick » 2018-10-14 09:41

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.
I suffer from depression and may lash out occasionally, try not to take it personally.
User avatar
Head_on_a_Stick
 
Posts: 8170
Joined: 2014-06-01 17:46
Location: /dev/chair

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

Postby llivv » 2018-10-14 19:51

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.
in the kitchen with Julia
The Past, Christmas Present and Future
Get on the Dbus to Bcan
User avatar
llivv
 
Posts: 5634
Joined: 2007-02-14 18:10
Location: cold storage

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

Postby p.H » 2018-10-15 13:08

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.
p.H
 
Posts: 631
Joined: 2017-09-17 07:12

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

Postby llivv » 2018-11-11 16:00

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.
in the kitchen with Julia
The Past, Christmas Present and Future
Get on the Dbus to Bcan
User avatar
llivv
 
Posts: 5634
Joined: 2007-02-14 18:10
Location: cold storage

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

Postby pylkko » 2018-11-11 21:05

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.
User avatar
pylkko
 
Posts: 1353
Joined: 2014-11-06 19:02

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

Postby GarryRicketson » 2018-11-11 21:51

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:
User avatar
GarryRicketson
 
Posts: 5162
Joined: 2015-01-20 22:16
Location: Durango, Mexico

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

Postby llivv » 2018-11-12 05:14

that didn't take long

check
in the kitchen with Julia
The Past, Christmas Present and Future
Get on the Dbus to Bcan
User avatar
llivv
 
Posts: 5634
Joined: 2007-02-14 18:10
Location: cold storage


Return to Debian Development

Who is online

Users browsing this forum: No registered users and 1 guest

fashionable