Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ubuntu Server Installation stops at curtin command in-target

Tags:

server

ubuntu

I have tried to install three versions of Ubuntu Server (18.04.5, 20.04.2, 21.04) on my Win10 Hyper-V. But all failed at curtin command in-target as the last execution. Can anyone tell me why this happened?

like image 243
Leconas Avatar asked May 09 '21 12:05

Leconas


People also ask

Why Ubuntu installation is stuck?

An issue with your display driver might cause the Ubiquity to get stuck during the installation prompts. To resolve the issue, you will have to launch Ubuntu in Safe Graphics mode which edits the boot parameters. This has been reported as working by a user who was facing a similar issue.

What is Curtin command?

Overview. Curtin is intended to be a bare bones “installer”. Its goal is to take data from a source, and get it onto disk as quick as possible and then boot it. The key difference from traditional package based installers is that curtin assumes the thing its installing is intelligent and will do the right thing.

What is Curtin Ubuntu?

Curtin (the curt installer) is a "fast path" installer designed to install Ubuntu quickly. It is blunt, brief, snappish, snippety and unceremonious. In order to closely align with the MAAS product, curtin needs to be periodically updated in order to enable new features.

How do I run Curtin in-target?

You can run curtin in-target -- $shell_command (with the version of subiquity released with 20.04 GA you need to specify this as curtin in-target --target=/target -- $shell_command) to run in the target system (similar to how plain in-target can be used in d-i preseed/late_command ). Shell commands to run after the install has failed.

How do I install Ubuntu Server?

Unlike the installation of Ubuntu Desktop, Ubuntu Server does not include a graphical installation program. Instead, it uses a text menu-based process. If you’d rather install the desktop version, take a look at our Install Ubuntu desktop tutorial. This guide will provide an overview of the installation from either a DVD or a USB flash drive.

How do I fix the Ubuntu installation error?

This was the first hint at a helpful solution. If you're running Ubuntu server in a VM (Gnome boxes, kvm, libvirt etc) Then remove any attached NIC's before you install the OS. Otherwise install fails with the above error. Not sure why this hasn't been fixed in mainstream.

Why can't I install Ubuntu on a specific network?

The issue is caused when multiple network adapters are used. The issue goes away when only one NIC is used. This was the first hint at a helpful solution. If you're running Ubuntu server in a VM (Gnome boxes, kvm, libvirt etc) Then remove any attached NIC's before you install the OS. Otherwise install fails with the above error.


Video Answer


2 Answers

LTS 20.04 In VMWare - disabling network adapter for the installation fixed this issue for me as well. I do not know why as of right now, but it seems to correct the issue. You just have to enable and set up network once it's up and running. If you were trying to access via SSH though, I don't know how you'd get around it.

like image 188
Gabe Burke Avatar answered Oct 21 '22 07:10

Gabe Burke


Disable network will solve the problem

like image 2
Orkhan Zeynalli Avatar answered Oct 21 '22 06:10

Orkhan Zeynalli