Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect instruction #5017

Closed
daedaevibin opened this issue Oct 6, 2023 · 11 comments
Closed

Incorrect instruction #5017

daedaevibin opened this issue Oct 6, 2023 · 11 comments

Comments

@daedaevibin
Copy link

One can no longer simply use sudo inside of the crosh shell.
The only way currently possible Is to use VT-2 which tells you to use crosh but that is not possible. Please, do something about this. Thanks for working hard!

@CroutonIsFun
Copy link

One can no longer simply use sudo inside of the crosh shell. The only way currently possible Is to use VT-2 which tells you to use crosh but that is not possible. Please, do something about this. Thanks for working hard!

How to proceed

@daedaevibin
Copy link
Author

One can no longer simply use sudo inside of the crosh shell. The only way currently possible Is to use VT-2 which tells you to use crosh but that is not possible. Please, do something about this. Thanks for working hard!

How to proceed

'apt' is not a command that is usable inside of crosh or VT-2

@CroutonIsFun
Copy link

Yes, apt can be used! In fact, you can run a crouton chroot inside VT-2. You just can't get a desktop.

The idea is to install crouton from VT-2, then ssh into it from the crosh shell.

@daedaevibin
Copy link
Author

Yes, apt can be used! In fact, you can run a crouton chroot inside VT-2. You just can't get a desktop.

The idea is to install crouton from VT-2, then ssh into it from the crosh shell.

Then it must be device specific. I can't use it as chronos or root as it tells me every single time it's not a known command.

@DennisLfromGA
Copy link
Collaborator

@Dae-Hang-Sook,

'apt' is not a command that is usable inside of crosh or VT-2

That is correct, chromeOS does not use the 'apt' package manager.

Your chroot distro most likely can use 'apt' if it's Debian-based like Ubuntu, etc. so you'll need to enter your chroot first to use 'apt'.

-DennisLfromGA

@daedaevibin
Copy link
Author

@Dae-Hang-Sook,

'apt' is not a command that is usable inside of crosh or VT-2

That is correct, chromeOS does not use the 'apt' package manager.

Your chroot distro most likely can use 'apt' if it's Debian-based like Ubuntu, etc. so you'll need to enter your chroot first to use 'apt'.

-DennisLfromGA

That's the point of the issue. I can't do exactly that because the only 'known' fix is an apt command which is unusable

@DennisLfromGA
Copy link
Collaborator

DennisLfromGA commented Oct 11, 2023

@Dae-Hang-Sook,

That's the point of the issue.

I thought the point of the issue was in your first remark:

One can no longer simply use sudo inside of the crosh shell.
The only way currently possible Is to use VT-2 which tells you to use crosh but that is not possible.

The chromeOS team has removed 'sudo' from the crosh shell.
You can use 'sudo' as user 'chronos' in a Develeoper Console via VT-2.

Please, do something about this.

We can't, you'll have to appeal to the chromeOS team by filing a feedback report and/or opening a crbug.

I can't do exactly that because the only 'known' fix is an apt command which is unusable

Using 'apt' is not a fix for the above since 'apt' is not a viable command in chromeOS.
As I tried to explain above, your chroot distro most likely can use 'apt' if it's Debian-based like Ubuntu, etc. so you'll need to enter your chroot from the Developer Console first to use 'apt' .

-DennisLfromGA

@daedaevibin
Copy link
Author

@Dae-Hang-Sook,

That's the point of the issue.

I thought the point of the issue was in your first remark:

One can no longer simply use sudo inside of the crosh shell.
The only way currently possible Is to use VT-2 which tells you to use crosh but that is not possible.

The chromeOS team has removed 'sudo' from the crosh shell.
You can use 'sudo' as user 'chronos' in a Develeoper Console via VT-2.

Please, do something about this.

We can't, you'll have to appeal to the chromeOS team by filing a feedback report and/or opening a crbug.

I can't do exactly that because the only 'known' fix is an apt command which is unusable

Using 'apt' is not a fix for the above since 'apt' is not a viable command in chromeOS.
As I tried to explain above, your chroot distro most likely can use 'apt' if it's Debian-based like Ubuntu, etc. so you'll need to enter your chroot first to use 'apt'.

-DennisLfromGA

Incapable of running the chroot. That's the issue.

@DennisLfromGA
Copy link
Collaborator

@Dae-Hang-Sook,

If you are incapable of running the chroot then you are doing it wrong.
Take a look at the Discussion below for tips on how to run a chroot using VT-2 and ssh in the crosh shell:

-DennisLfromGA

@daedaevibin
Copy link
Author

@Dae-Hang-Sook,

If you are incapable of running the chroot then you are doing it wrong.
Take a look at the Discussion below for tips on how to run a chroot using VT-2 and ssh in the crosh shell:

-DennisLfromGA

Followed this. Can't run it because all it does is tell me to run it from crosh. I'm incapable of doing just that because using sudo in crosh is no longer an option. I can't 'apt' anything because it doesn't allow it to be run from the VT-2

@DennisLfromGA
Copy link
Collaborator

@Dae-Hang-Sook,

Others have had success with those instructions, including yours truly.

Perhaps you should take another look at it and follow it step-by-step.
If you get stuck then comment in that Discussion thread, not here.

-DennisLfromGA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants