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

 

 

 

upgrade to buster - system command not found in current path

User discussion about Debian Development, Debian Project News and Announcements. Not for support questions.
Post Reply
Message
Author
User avatar
llivv
Posts: 5340
Joined: 2007-02-14 18:10
Location: cold storage

upgrade to buster - system command not found in current path

#1 Post 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.
Last edited by llivv on 2018-10-14 19:29, edited 1 time in total.
In memory of Ian Ashley Murdock (1973 - 2015) founder of the Debian project.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

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

#2 Post 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.
deadbang

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

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

#3 Post 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.
deadbang

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

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

#4 Post 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 '-'.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

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

#5 Post 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.
deadbang

User avatar
llivv
Posts: 5340
Joined: 2007-02-14 18:10
Location: cold storage

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

#6 Post 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:
http://forums.debian.net/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 memory of Ian Ashley Murdock (1973 - 2015) founder of the Debian project.

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

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

#7 Post 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.

User avatar
llivv
Posts: 5340
Joined: 2007-02-14 18:10
Location: cold storage

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

#8 Post 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.
In memory of Ian Ashley Murdock (1973 - 2015) founder of the Debian project.

User avatar
pylkko
Posts: 1802
Joined: 2014-11-06 19:02

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

#9 Post 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.

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

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

#10 Post 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:

User avatar
llivv
Posts: 5340
Joined: 2007-02-14 18:10
Location: cold storage

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

#11 Post by llivv »

that didn't take long

check
In memory of Ian Ashley Murdock (1973 - 2015) founder of the Debian project.

Post Reply