elementary OS 8 install error: error installing packages
What Happened?
I've had multiple failed attempts trying to install elementaryos-8.0-stable.20241122rc.iso on a laptop that previously had an (encrypted) elementary OS 7 installation.
I can run Demo mode, but every combination that I have tried has failed: encrypt/don't encrypt, install / don't install drivers, and erase and install / custom setup (advanced mode). This feels related to both #520 and #584 but it's not exactly what is described there. (or at least, it's not only what's described there - I initially had errors regarding an LV group that already existed, so I removed all partitions, groups etc and tried again with an empty unpartitioned hard drive)
What is consistent is that each time I have got:
Could Not Install Installing elementary OS 8 failed, possibly due to a hardware error.
Steps to Reproduce
- Confirm hash of downloaded iso
- Create bootable USB drive using Etcher
- Boot device from the USB drive
- Choose to try or install elementary 0S
- Set up language & keyboard, connect to Wi-Fi
- Attempt to install using 'Erase Disk and Install' option
- Choose to encrypt disk using LVM (it doesn't work without encryption either though)
- Choose to install drivers (doesn't work without this checked either)
- Open the terminal display, the file extraction process begins, and gets to 100%.
- Next up some kind of 'configuring system' command starts running
- Could Not Install screen appears. When I click on Details, I see:
ERROR: configuring chroot error: error installing packages: command failed with exit status: 100
ERROR: errored while installing system: error installing packages: command failed with exit status:
exit status: 100
INFO: Install error: error installing packages: command failed with exit status: exit status: 100
Expected Behavior
Installation completes without error
OS Version
8.x (Circe)
Session Type
Classic Session (X11, This is the default)
Software Version
Latest release (I have run all updates)
Log Output
Hardware Info
Lenovo Carbon X1 Carbon 12th Gen Intel Core i7-1260P Intel Aider Lake-P GT2 (Iris Xe) 32GB RAM, 1TB storage
I had some useful suggestions from Uncle Tallest in the elementary OS discord, but unfortunately didn't get any further.
I tried:
- all the default US settings for the locale
- no encryption
- no installing drivers
Result:
INFO: executing vgcreate with [".ffy", "data", "/dev/nvme0n1p2"]
ERROR: partitioning error: failed to commit logical partitions: unable to create volume group "data" on "/dev/mapper/data": vgcreate failed with exit status: 5
ERROR: errored while installing system: failed to commit logical partitions: unable to create volume group "data"...
Then I tried it, cleaning up the partitions in demo mode first:
lvremoveon the root and swap partitions set up during the previous failed install.fdiskto delete the partitions nvme0n1p1 and nvme0n1p2reboot
then I tried to install with:
- US defaults
- encryption
- no driver installation
Result: error copying packages
As my failed to commit logical partitions error seems similar to #584 and #859 , I also tried the fix from that issue, but got error copying packages again.
I had the same issue during installation. I checked the ISO, adjusted BIOS settings, switched the USB drive (from 8GB USB 2.0 to 16GB USB 3.0), and tried different partitioning setups — no success.
I noticed that I was flashing the USB using Balena Etcher on Windows. After repeating the same process on Linux (Ubuntu), the installation worked perfectly on both attempts.
This seems to be a recurring issue in the community, especially related to USB drives flashed from Windows.
Suggestion: Try flashing the USB using Balena Etcher, but this time on a Linux system (like Ubuntu), and prefer the simple installation mode before attempting manual partitioning.
I hope I could help you
I have yet been able to install v:8, tried at least 50+ times. Used every available usb creator i have found from binary like etcher to deb, dnf, pacman, exe, appimage and flatpak versions. Tried creating a live usb from every available OS on the market and tried every tips and trix in different combinations but haven't been able to install it.. It fails with portioning every time even if i partion my self with custom install.. Have tried with ssd disk and nvme disk,, with and without gpu (amd and nvidia) but no luck on my 2 year old computer. When i try on my old computer 6-7y old it works to install every time both on ssd and nvme disks but as soon i try in my newer pc it fails every time.. Kinda frustrating error so any idea how i should do??
Hi, @NebulaMik3x.
I don’t think the issue in your case is the installation file or the USB drive (although I still recommend using Etcher, preferably on a Linux system, at least to format the USB drive).
The “partitioning failed” error during the installation of elementary OS 8 is fairly common on newer computers and, in most cases, is related to the default BIOS settings.
Try the following:
- In the BIOS, locate and disable Secure Boot, as it may be preventing certain actions of the installer.
- Next, disable Fast Boot (it can interfere with hardware detection during installation).
- After that, try running the installation again.
If it still doesn’t work, you can try switching the Boot Mode. This option is usually under Boot > Boot Mode. Change from UEFI to Legacy Boot.
Note 1: Keep the previous settings: Secure Boot disabled and Fast Boot disabled. Note 2: If you’re creating the partitions manually, try increasing their size a little. For example: FAT32 partition → at least 512 MB.