Unable to upgrade the kernel on rock pi s to 6.1.77

Greetings!!
when I try to update the kernel on a rock pi s (required details are given below the error message), I am getting the following error. please let me know how I can fix it. Thank you!

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  linux-image-6.1.0-18-rt-arm64
Suggested packages:
  linux-doc-6.1 debian-kernel-handbook
Recommended packages:
  firmware-linux-free apparmor
The following NEW packages will be installed:
  linux-image-6.1.0-18-rt-arm64 linux-image-rt-arm64
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 1444 B/57.2 MB of archives.
After this operation, 352 MB of additional disk space will be used.
Do you want to continue? [Y/n] 
Get:1 https://deb.debian.org/debian bookworm/main arm64 linux-image-rt-arm64 arm64 6.1.76-1 [1444 B]
Fetched 1444 B in 0s (3523 B/s)                
(Reading database ... 17557 files and directories currently installed.)
Preparing to unpack .../linux-image-6.1.0-18-rt-arm64_6.1.76-1_arm64.deb ...
Unpacking linux-image-6.1.0-18-rt-arm64 (6.1.76-1) ...
dpkg: error processing archive /var/cache/apt/archives/linux-image-6.1.0-18-rt-arm64_6.1.76-1_arm64.deb (--unpack):
 cannot copy extracted data for './lib/modules/6.1.0-18-rt-arm64/kernel/drivers/media/common/siano/smsmdtv.ko' to 
'/lib/modules/6.1.0-18-rt-arm64/kernel/drivers/media/common/siano/smsmdtv.ko.dpkg-new': failed to write (No space left on device)
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
/etc/kernel/postrm.d/dietpi-initramfs_cleanup:
Removing obsolete initramfs images
Selecting previously unselected package linux-image-rt-arm64.
Preparing to unpack .../linux-image-rt-arm64_6.1.76-1_arm64.deb ...
Unpacking linux-image-rt-arm64 (6.1.76-1) ...
Errors were encountered while processing:
 /var/cache/apt/archives/linux-image-6.1.0-18-rt-arm64_6.1.76-1_arm64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Creating a bug report/issue

Yes, I have searched the existing open and closed issues.

Required Information

  • DietPi version | cat /boot/dietpi/.version
    G_DIETPI_VERSION_CORE=9
    G_DIETPI_VERSION_SUB=0
    G_DIETPI_VERSION_RC=2
    G_GITBRANCH=‘master’
    G_GITOWNER=‘MichaIng’

  • Distro version | echo $G_DISTRO_NAME $G_RASPBIAN
    bookworm

  • Kernel version | uname -a
    Linux DietPi 6.1.63-current-rockchip64 #1 SMP PREEMPT Mon Nov 20 10:52:19 UTC 2023 aarch64 GNU/Linux

  • Architecture | dpkg --print-architecture
    arm64

  • SBC model | echo $G_HW_MODEL_NAME or (EG: RPi3)
    ROCK Pi S (aarch64)

  • Power supply used | (EG: 5V 1A RAVpower)
    USB A to USB C

  • SD card used | (EG: SanDisk ultra)
    San Disk Ultra 32 GB

Additional Information (if applicable)

  • Software title | (EG: Nextcloud)
  • Was the software title installed freshly or updated/migrated?
  • Can this issue be replicated on a fresh installation of DietPi?
    ← If you sent a “dietpi-bugreport”, please paste the ID here →
  • Bug report ID | echo $G_HW_UUID

Steps to reproduce

Expected behaviour

Actual behaviour

Extra details

You have no space left on your device, due to this it can not copy the new kernel.

can you check

df -h

Thank you for this suggestion. After doing df, I noticed that the SD card had very little disk space. So I used gparted to fix the partitions. Now, the issue is fixed.

1 Like

was this a new installation or already running for some time?

I installed dietpi for the first time yesterday.

could you share following file

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/mmcblk2 with root partition 1
[ INFO ] Detected trailing DietPi setup partition /dev/mmcblk2p2
mount: /dev/mmcblk2p2 mounted on /tmp/tmp.fdbKTVvwAe.
'/tmp/tmp.fdbKTVvwAe/dietpi.txt' -> '/boot/dietpi.txt'
'/tmp/tmp.fdbKTVvwAe/dietpi-wifi.txt' -> '/boot/dietpi-wifi.txt'
'/tmp/tmp.fdbKTVvwAe/dietpiEnv.txt' -> '/boot/dietpiEnv.txt'
umount: /tmp/tmp.fdbKTVvwAe (/dev/mmcblk2p2) unmounted
rmdir: removing directory, '/tmp/tmp.fdbKTVvwAe'

The partition table has been altered.

Hmm, I guess this is coming from sfdisk removing the trailing setup partition. But the next steps, the expansion of the root partition and filesystem are missing.

Can you try to rerun the script and see whether this is now done?

sudo /var/lib/dietpi/services/fs_partition_resize.sh

However, actually you are trying to install an incompatible kernel. This is not going to work, unless you edit boot scripts and environment as well. Didn’t you instead follow the steps I posted in the other topic, to upgrade to a newer compatible Armbian-based kernel build?