0

I'm new to Linux. I want to have apt-get on my machine, but similar posts suggested to use wget, or dpkg. I don't have any of those utilities, only sh.

Is there a way to solve this problem?

  • 2
    I answered, in a general way. What do you really really want? "Having apt-get" is not a final cause. (see comment by roaima - what do you have?, what do you want?) – rastafile Oct 27 '19 at 8:42
  • 1
    @LinuxSecurityFreak please resist the temptation to put words in the author's mouth. The default shell is tangential information. It's confusing to me why you would strike out the OP's comment regarding the sh shell -- if you think it's extraneous, delete it; otherwise, leave it. I do appreciate updates to grammar and spelling; and the title is definitely an improvement, so thank you for those. If you're not sure what the question is, the correct thing to do is to post a comment to that effect and let the OP respond. – Jeff Schaller Oct 28 '19 at 23:50
  • @JeffSchaller Ok, I hoped the OP would respond quick in the comments, but as it appears he merely managed to ask a question. I will resist harder next time. Cheers. – LinuxSecurityFreak Oct 29 '19 at 6:50
  • @LinuxSecurityFreak I'm so sorry for the late answers – afanitro424 Nov 5 '19 at 11:12
7

Before you can use Linux commands on a Chrome system, you must enable Linux (beta). It is off by default, because, as the name says, it is beta.

The following steps are taken from the Google documentation, clarified slightly after verifing them on a Chromebook:

  • At the bottom right, select the time.
  • Select the settings button, indicated by a gear icon.
  • Select the settings hamburger menu in the top left.
  • Select "Linux (Beta)".
  • Under "Linux (Beta)," select Turn On.
  • Follow the steps on the screen. Setup can take 10 minutes or more.
  • A terminal window opens. You can run Linux commands, install more tools using the APT package manager, and customize your shell.
  • 1
    I have validated these instructions on my chromebook. 'Settings Settings' is actually two steps. The first is to open the settings menu by selecting the button featuring a gear icon. The second is to select the hamberger menu in the top left of the settings window. – Vaelus Oct 27 '19 at 16:41
  • @Vaelus that sounds a really helpful extra point. You might like to edit this answer to improve it. – roaima Oct 29 '19 at 14:47
  • No. Not the virtual machine. I mean the actual linux shell that runs Chrome OS. (Holding CTRL+ALT+t and typing "shell") – afanitro424 Nov 5 '19 at 11:10
-3

(first Q had "only sh" without mention of chrome OS)

You cannot have "only sh". You can, somehow, but that is only theoretical. With a shell alone you cannot even list files or mount, you only have builtins like "echo".

It always starts with a running system; either an existing one, or one that is booted from a external storage, like a USB pen. These you get 99% from a distro - no matter if it is labeled "Live CD", "Insatll" or "Rescue".

apt-get means dpkg means debian, at least debian-based. So choose a distro from the "apt-get" family, make bootable USB, and then you will have apt-get and more.

You should always use the (correct) paket manager for installing and maintaining. If you install or remove "besides" your manager/distro, it will soon become unmanageble.

  • 1
    Technically, echo ./* can be used to list files. But mount I wouldn't be able to help you with – roaima Oct 27 '19 at 9:50
  • 2
    How does this get them to having apt-get on their ChromeOS system? If it's not possible, please say so directly. If it is possible, what steps are required? I didn't see anything beyond "choose a distro and make a bootable USB" -- which sounds like the beginning of a system reinstallation. – Jeff Schaller Oct 28 '19 at 23:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.