Firstrun Error / APT / Fresh Bullseye installation

Hello everyone,
Unfortunately, I’m currently struggling a bit with installing a fresh Bullseye installation on VMWare Esxi.
I’ve already tried to get ahead with a Google search, but unfortunately without success.

I´m using this ova template: dietpi.com/downloads/images/DietPi_ESXi-x86_64-Bullseye.ova.xz

After the login the first run starts (and fails :()

DietPi-Software
─────────────────────────────────────────────────────
 Step: Applying initial first run setup steps

[  OK  ] DietPi-Software | Checking IPv4 network connectivity
[  OK  ] DietPi-Software | Checking DNS resolver
[  OK  ] DietPi-TimeSync | systemctl start systemd-timesyncd
[ INFO ] DietPi-TimeSync | Waiting for time sync (1/60)
[ INFO ] DietPi-TimeSync | Waiting for time sync (2/60)
[ INFO ] DietPi-TimeSync | Waiting for time sync (3/60)
[ INFO ] DietPi-TimeSync | Waiting for time sync (4/60)
[ INFO ] DietPi-TimeSync | Waiting for time sync (5/60)
[ INFO ] DietPi-TimeSync | Waiting for time sync (6/60)
[ INFO ] DietPi-TimeSync | Waiting for time sync (7/60)
[ INFO ] DietPi-TimeSync | Waiting for time sync (8/60)
[ INFO ] DietPi-TimeSync | Waiting for time sync (9/60)
[ INFO ] DietPi-TimeSync | Waiting for time sync (10/60)
[ INFO ] DietPi-TimeSync | Waiting for time sync (11/60)
[ INFO ] DietPi-TimeSync | Waiting for time sync (12/60)
[ INFO ] DietPi-TimeSync | Waiting for time sync (13/60)
[ INFO ] DietPi-TimeSync | Waiting for time sync (14/60)
[ INFO ] DietPi-TimeSync | Waiting for time sync (15/60)
[ INFO ] DietPi-TimeSync | Waiting for time sync (16/60)
[ INFO ] DietPi-TimeSync | Waiting for time sync (17/60)
[ INFO ] DietPi-TimeSync | Waiting for time sync (18/60)
[ INFO ] DietPi-TimeSync | Waiting for time sync (19/60)
[ INFO ] DietPi-TimeSync | Waiting for time sync (20/60)
[ INFO ] DietPi-TimeSync | Waiting for time sync (21/60)
[  OK  ] DietPi-TimeSync | Time sync completed
[  OK  ] DietPi-TimeSync | systemctl stop systemd-timesyncd
[  OK  ] DietPi-TimeSync | mkdir -p /run/systemd/timesync
[ INFO ] DietPi-Software | APT update, please wait...
Hit:1 deb.debian .org/debian bullseye InRelease
Hit:2 deb.debian .org/debian bullseye-updates InRelease
Hit:3 deb.debian .org/debian-security bullseye-security InRelease
Hit:4 deb.debian .org/debian bullseye-backports InRelease
Reading package lists...
[  OK  ] DietPi-Software | APT update
[ INFO ] DietPi-Software | APT dist-upgrade, please wait...
Reading package lists...
Building dependency tree...
Reading state information...
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 linux-image-amd64 : Depends: linux-image-5.10.0-28-amd64 (= 5.10.209-2) but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
[FAILED] DietPi-Software | APT dist-upgrade
 - Command: apt-get -y dist-upgrade
[ INFO ] DietPi-Software | Executing alternative command: apt autoremove

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Reading package lists...
Building dependency tree...
Reading state information...
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 linux-image-amd64 : Depends: linux-image-5.10.0-28-amd64 (= 5.10.209-2) but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
[FAILED] Alternative command execution | Exited with error
Press any key to return to error handler menu...
[ INFO ] DietPi-Software | Executing alternative command: apt --fix-broken install

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Reading package lists...
Building dependency tree...
Reading state information...
Correcting dependencies... Done
The following package was automatically installed and is no longer required:
  linux-image-5.10.0-27-amd64
Use 'apt autoremove' to remove it.
The following additional packages will be installed:
  linux-image-5.10.0-28-amd64
Suggested packages:
  linux-doc-5.10 debian-kernel-handbook
Recommended packages:
  firmware-linux-free apparmor
The following NEW packages will be installed:
  linux-image-5.10.0-28-amd64
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
6 not fully installed or removed.
Need to get 55.7 MB of archives.
After this operation, 318 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 deb.debian.org/debian bullseye/main amd64 linux-image-5.10.0-28-amd64 amd64 5.10.209-2 [55.7 MB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 55.7 MB in 2s (23.3 MB/s)
(Reading database ... 17727 files and directories currently installed.)
Preparing to unpack .../linux-image-5.10.0-28-amd64_5.10.209-2_amd64.deb ...
Unpacking linux-image-5.10.0-28-amd64 (5.10.209-2) ...
dpkg: error processing archive /var/cache/apt/archives/linux-image-5.10.0-28-amd64_5.10.209-2_amd64.deb 
(--unpack): cannot copy extracted data for 
'./lib/modules/5.10.0-28-amd64/kernel/drivers/scsi/be2iscsi/be2iscsi.ko' 
to '/lib/modules/5.10.0-28-amd64/kernel/drivers/scsi/be2iscsi/be2iscsi.ko.dpkg-new': 
failed to write (No space left on device)
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/linux-image-5.10.0-28-amd64_5.10.209-2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
[FAILED] Alternative command execution | Exited with error
Press any key to return to error handler menu...


root@DietPi:/tmp/DietPi-Software# df -h
Filesystem      Size  Used Avail Use% Mounted on
udev             10M     0   10M   0% /dev
/dev/sda1       897M  696M  140M  84% /
tmpfs           3.9G     0  3.9G   0% /dev/shm
tmpfs           1.6G  8.5M  1.6G   1% /run
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           3.9G   12K  3.9G   1% /tmp
tmpfs            50M   32K   50M   1% /var/log
root@DietPi:/tmp/DietPi-Software#

Anyone an idea why the “out of the box” deployment is not working? i already try to give the virtual machine more space, but no changes…

Thank you & kind regards
Martin

PS: I have to cut the links cause i have not the permission to use more than 2 in a post :wink:

Not sure about the first error, that the new kernel package is not installed automatically. That should happen without a “fix-broken” iteration. But probably it is a symptom of the missing space.

The partition and filesystem should be expanded automatically. Can you check the related log file:

cat /var/tmp/dietpi/logs/fs_partition_resize.log

Hi,
thank you for your response, the output is:

root@DietPi:/tmp/DietPi-Software# cat /var/tmp/dietpi/logs/fs_partition_resize.log
Removed /etc/systemd/system/local-fs.target.wants/dietpi-fs_partition_resize.service.
[ INFO ] Detected root drive /dev/sda with root partition 1
[ INFO ] No DietPi setup partition found, last partition is: " "
lsblk: unknown column: MOUNTPOINTS

:frowning:
Kind regards,
Martin

as workaround if the system is still alive Increase partition size - #14 by MichaIng

Hi,
thank you.

Now i have used the commands:
sudo sed -i 's/MOUNTPOINTS/MOUNTPOINT/' /var/lib/dietpi/services/fs_partition_resize.sh
sudo /var/lib/dietpi/services/fs_partition_resize.sh

After that the retry of the firstrun brings the same error again
but with apt -fix it runs trough, thank you!
Kind regards
Martin

for info:
i tried it once again (fresh VM from OVA template), with 32GB Disk Size, same error again after first run, have to do the resize (thanks @Joulinar) and then using apt --fix-broken install

thank you @MichaIng and @Joulinar for your time, its working now :slight_smile:

Best regards,
Martin

yes we need to generate new images once v9.1 has been released. If you like, I could generate an image from current dev branch for testing.

Btw, no need to pass the -b dev flag when building the image, but the workflow/installer from dev branch needs to be selected. I added temporary fix to dietpi-installer to fix the script, regardless which target branch the DietPi image is build with.

Hi, I don’t need it anymore, but if it would help you I could test it…
Best regards,