Score:0

How to install fresh install Ubuntu from running machine?

it flag

This is a basic problem that has perplexed me for a while. On a machine running Ubuntu, is it possible to mount a new disk, run the Ubuntu installer the same as you would from a live CD and install on that new disk? I haven't figured out how to find the installer program(s) or what would prevent me from doing so. It sure would aid in deployment of the rare single machines if I could do a net install from the machine running my local mirror!

Nmath avatar
ng flag
Your description is not very clear. You want to install Ubuntu on top of your existing installation without signing off the current installation? Impossible. Why can't you use a liveCD or USB? Edit your question and make sure that it's clear what you are asking. Provide examples if it's necessary to explain what you're asking. If you think you need to reinvent the wheel for a system installation, tell us the detailed reasons why you think the normal methods are unacceptable. Because this could be an XY problem.
NobodySpecial avatar
it flag
As stated, Install on new media, not over top the running installation. Akin to copying the image and running syslinux, but I want to update packages and configure a user account at the same time. If the live CD installer can't do that for some reason, I'd like to better understand why. Right now, I just don't know which programs I'd need to run.
user535733 avatar
cn flag
Oh, you just want the `ubiquity` package (the Ubuntu Desktop installer). Warning -- it pulls in 500MB of dependencies, since it must handle a wide variety of environments and options. Ubiquity will be superseded in 22.04 (or perhaps 22.10) by a new installer that's currently in testing. See https://askubuntu.com/questions/995980/how-to-install-ubiquity-to-full-install-bootable-usb for some discussion of Ubiquity usage.
NobodySpecial avatar
it flag
I was sure I was just missing a package name or something. Thanks! Hard to believe I missed it all this time
Score:0
cn flag

Four of the main features of Live installers are:

  1. Simple to create
  2. Independently bootable
  3. Reasonable download size
  4. Capable of testing hardware

You specifically don't seem need #1 and #2 since you're already booted into a working system. You are sacrificing #4, which matters a lot to people who are surprised when their hardware doesn't work.

Look into dd-able images of Ubuntu Base:

Warning: Ubuntu base is not intended for beginners nor the unskilled. If the link above isn't enough information to get your Ubuntu Base system up and running, then it's perhaps not right for you; stick to the normal installers.

There are some other dd-able images, but they are for specific use cases like unusual architectures or pre-release testing. There is no dd-able AMD64 Focal Server image, for example.

NobodySpecial avatar
it flag
Thanks for the info. That installation example is pretty much what I thought the live CD installer did. I was hoping for a method to launch the existing installer that loads packages from some up to date source. If that isn't possible for some reason, I'd like to understand why. I'm not above scripting a solution that will work for me, I just assume the same function exists somewhere, somehow already.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.