Generic Installation BananaPi M4 base-files /bin is a directory but should be a symbolic link

Creating a bug report/issue

I have searched the existing open and closed issues

Details:

  • Date | 2025-12-12 05:20:26
  • Program name | DietPi-Installer
  • Command | apt-get -y dist-upgrade
  • Exit code | 100
  • DietPi version | v9.19.2 (MichaIng/master)
  • Distro version | bullseye (ID=6,RASPBIAN=0)
  • Kernel version | Linux bpi-iot-ros-ai 4.9.119-BPI-M4-Kernel #1 SMP PREEMPT Tue Apr 16 10:39:33 CST 2019 aarch64 GNU/Linux
  • Architecture | armhf
  • Hardware model | (ID=22)
  • Power supply | (EG: RAVPower 5V 1A)
  • SD card | (EG: SanDisk Ultra 16 GB)

Steps to reproduce

  1. Use BananaPi M4, start with 2019-08-08-debian-10-buster-mate-desktop-preview5-tpm2-bpi-w2-m4-sd-emmc.img

  2. upgrade to bullseye:

    apt-get -y update
    apt-get -y upgrade --without-new-pkgs
    apt-get -y full-upgrade
    
    cat > /etc/apt/sources.list <<“EOF”
    deb 
     bullseye main
    deb-src 
     bullseye main
    deb http://security.debian.org/bullseye-security bullseye-security/updates main
    deb-src http://security.debian.org/bullseye-security bullseye-security/updates main
    deb 
     bullseye-updates main
    deb-src 
     bullseye-updates main
    EOF
    
    apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 605C66F00D6C9793 6ED0E7B82643E131 0E98404D386FA1D9
    
    apt-get clean
    apt-get -y update
    
    apt-get -y upgrade --without-new-pkgs
    apt-get -y full-upgrade
    
  3. perform dietpization

    apt update
    apt install -y curl ca-certificates systemd-sysv
    bash -c “$(curl -sSfL ‘``https://raw.githubusercontent.com/MichaIng/DietPi/master/.build/images/dietpi-installer’``)”

Expected behaviour

  • dietpi to unravel on pc

Actual behaviour

  • error :frowning:

Extra details

Additional logs:

Reading package lists...
Building dependency tree...
Reading state information...
Calculating upgrade...
The following packages were automatically installed and are no longer required:
  gpgv libapt-pkg6.0 libargon2-1 libassuan0 libcryptsetup12 libdns-export1110
  libffi7 libip4tc2 libisc-export1105 libjson-c5 libncurses6 libnsl2 libpcre3
  libprocps8 libsepol1 libssl1.1 libunistring2 lsb-base
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
  libbpf0 libcurl4 libdb5.3 libelf1 libext2fs2 libgnutls30 libhogweed6 libiw30
  libldap-2.4-2 libnettle8 libparted2 libpsl5 libreadline8 libsemanage1
  libssh2-1 libtirpc3
The following NEW packages will be installed:
  cron-daemon-common dracut-install gcc-14-base initramfs-tools-bin
  libapt-pkg7.0 libassuan9 libbpf1 libcurl4t64 libdb5.3t64 libelf1t64
  libext2fs2t64 libffi8 libgnutls30t64 libhogweed6t64 libiw30t64 libksba8
  liblastlog2-2 libldap2 libnettle8t64 libnghttp3-9 libnpth0t64 libparted2t64
  libproc2-0 libpsl5t64 libreadline8t64 libsemanage2 libsepol2 libssh2-1t64
  libssl3t64 libsystemd-shared libtirpc3t64 libunistring5 login.defs
  openssl-provider-legacy sqv
The following packages will be upgraded:
  adduser apt base-files base-passwd bash bash-completion bsdutils
  ca-certificates console-setup console-setup-linux coreutils cpio cron curl
  dash debconf debian-archive-keyring debianutils diffutils dmsetup dosfstools
  dpkg e2fsprogs ethtool fake-hwclock fdisk findutils gpg gpgconf gpgv grep
  gzip hdparm hostname htop ifupdown init init-system-helpers initramfs-tools
  initramfs-tools-core iproute2 iputils-ping isc-dhcp-client iw kbd
  keyboard-configuration klibc-utils kmod libacl1 libapparmor1 libargon2-1  libattr1 libaudit-common libaudit1 libblkid1 libbrotli1 libbsd0 libbz2-1.0
  libc-bin libc-l10n libc6 libcap-ng0 libcap2 libcap2-bin libcom-err2
  libcrypt1 libcryptsetup12 libdbus-1-3 libdebconfclient0 libdevmapper1.02.1
  libfdisk1 libgcc-s1 libgcrypt20 libgmp10 libgpg-error0 libgssapi-krb5-2
  libidn2-0 libip4tc2 libjson-c5 libk5crypto3 libkeyutils1 libklibc libkmod2
  libkrb5-3 libkrb5support0 liblocale-gettext-perl liblz4-1 liblzma5 libmd0
  libmnl0 libmount1 libncurses6 libncursesw6 libnewt0.52 libnghttp2-14
  libnl-3-200 libnl-genl-3-200 libnl-route-3-200 libnsl2 libp11-kit0
  libpam-modules libpam-modules-bin libpam-runtime libpam0g libpcre2-8-0
  libpcsclite1 libpopt0 librtmp1 libsasl2-2 libsasl2-modules-db libseccomp2
  libselinux1 libsemanage-common libslang2 libsmartcols1 libsqlite3-0 libss2
  libstdc++6 libsystemd0 libtasn1-6 libtinfo6 libtirpc-common libudev1
  libusb-1.0-0 libuuid1 libxtables12 libxxhash0 libzstd1 linux-base locales
  login logsave lsb-base mawk mount nano ncurses-base ncurses-bin openssl
  parted passwd perl-base procps psmisc readline-common rfkill sed
  sensible-utils sudo systemd systemd-sysv sysvinit-utils tar tzdata
  u-boot-tools udev usbutils util-linux wget whiptail wireless-regdb
  wireless-tools wpasupplicant xkb-data zlib1g
165 upgraded, 35 newly installed, 16 to remove and 0 not upgraded.
Need to get 71.7 MB of archives.
After this operation, 73.1 MB of additional disk space will be used.
Get:1 https://deb.debian.org/debian trixie/main armhf base-files armhf 13.8+deb13u2 [73.2 kB]
Get:2 https://deb.debian.org/debian trixie/main armhf libc-l10n all 2.41-12 [739 kB]
Get:3 https://deb.debian.org/debian trixie/main armhf locales all 2.41-12 [3924 kB]
Get:4 https://deb.debian.org/debian trixie/main armhf libc6 armhf 2.41-12 [2249 kB]
Get:5 https://deb.debian.org/debian trixie/main armhf libc-bin armhf 2.41-12 [523 kB]
Get:6 https://deb.debian.org/debian trixie/main armhf perl-base armhf 5.40.1-6 [1515 kB]
Get:7 https://deb.debian.org/debian trixie/main armhf liblocale-gettext-perl armhf 1.07-7+b1 [14.7 kB]
Get:8 https://deb.debian.org/debian trixie/main armhf debconf all 1.5.91 [121 kB]
Get:9 https://deb.debian.org/debian trixie/main armhf gcc-14-base armhf 14.2.0-19 [49.4 kB]
Get:10 https://deb.debian.org/debian trixie/main armhf libgcc-s1 armhf 14.2.0-19 [37.0 kB]
Get:11 https://deb.debian.org/debian trixie/main armhf libdebconfclient0 armhf 0.280 [10.3 kB]
Get:12 https://deb.debian.org/debian trixie/main armhf libpcre2-8-0 armhf 10.46-1~deb13u1 [259 kB]
Get:13 https://deb.debian.org/debian trixie/main armhf libselinux1 armhf 3.8.1-1 [74.8 kB]
Get:14 https://deb.debian.org/debian trixie/main armhf base-passwd armhf 3.6.7 [52.5 kB]
Get:15 https://deb.debian.org/debian trixie/main armhf login.defs all 1:4.17.4-2 [186 kB]
Get:16 https://deb.debian.org/debian trixie/main armhf libsemanage-common all 3.8.1-1 [7812 B]
Get:17 https://deb.debian.org/debian trixie/main armhf libsepol2 armhf 3.8.1-1 [256 kB]
Get:18 https://deb.debian.org/debian trixie/main armhf libsemanage2 armhf 3.8.1-1 [81.2 kB]
Get:19 https://deb.debian.org/debian trixie/main armhf passwd armhf 1:4.17.4-2 [1181 kB]
Get:20 https://deb.debian.org/debian trixie/main armhf libaudit-common all 1:4.0.2-2 [12.7 kB]
Get:21 https://deb.debian.org/debian trixie/main armhf libcap-ng0 armhf 0.8.5-4+b1 [16.1 kB]
Get:22 https://deb.debian.org/debian trixie/main armhf libaudit1 armhf 1:4.0.2-2+b2 [49.2 kB]
Get:23 https://deb.debian.org/debian trixie/main armhf libbz2-1.0 armhf 1.0.8-6 [35.0 kB]
Get:24 https://deb.debian.org/debian trixie/main armhf libsasl2-modules-db armhf 2.1.28+dfsg1-9 [18.5 kB]
Get:25 https://deb.debian.org/debian trixie/main armhf libzstd1 armhf 1.5.7+dfsg-1 [264 kB]
Get:26 https://deb.debian.org/debian trixie/main armhf iproute2 armhf 6.15.0-1 [1016 kB]
Get:27 https://deb.debian.org/debian trixie/main armhf zlib1g armhf 1:1.3.dfsg+really1.3.1-1+b1 [75.2 kB]
Get:28 https://deb.debian.org/debian trixie/main armhf libelf1t64 armhf 0.192-4 [184 kB]
Get:29 https://deb.debian.org/debian trixie/main armhf libbpf1 armhf 1:1.5.0-3 [148 kB]
Get:30 https://deb.debian.org/debian trixie/main armhf libtirpc-common all 1.3.6+ds-1 [11.0 kB]
Get:31 https://deb.debian.org/debian trixie/main armhf libnsl2 armhf 1.3.0-3+b3 [35.0 kB]
Get:32 https://deb.debian.org/debian trixie/main armhf libdb5.3t64 armhf 5.3.28+dfsg2-9 [602 kB]
Get:33 https://deb.debian.org/debian trixie/main armhf libpam0g armhf 1.7.0-5 [64.5 kB]
Get:34 https://deb.debian.org/debian trixie/main armhf openssl-provider-legacy armhf 3.5.4-1~deb13u1 [300 kB]
Get:35 https://deb.debian.org/debian trixie/main armhf libssl3t64 armhf 3.5.4-1~deb13u1 [1988 kB]
Get:36 https://deb.debian.org/debian trixie/main armhf libsystemd-shared armhf 257.9-1~deb13u1 [1972 kB]
Get:37 https://deb.debian.org/debian trixie/main armhf libblkid1 armhf 2.41-5 [155 kB]
Get:38 https://deb.debian.org/debian trixie/main armhf libudev1 armhf 257.9-1~deb13u1 [142 kB]
Get:39 https://deb.debian.org/debian trixie/main armhf systemd armhf 257.9-1~deb13u1 [3038 kB]
Get:40 https://deb.debian.org/debian trixie/main armhf udev armhf 257.9-1~deb13u1 [1387 kB]
Get:41 https://deb.debian.org/debian trixie/main armhf ifupdown armhf 0.8.44 [56.4 kB]
Get:42 https://deb.debian.org/debian trixie/main armhf libsystemd0 armhf 257.9-1~deb13u1 [418 kB]
Get:43 https://deb.debian.org/debian trixie/main armhf libpam-modules-bin armhf 1.7.0-5 [45.2 kB]
Get:44 https://deb.debian.org/debian trixie/main armhf libpam-modules armhf 1.7.0-5 [164 kB]
Get:45 https://deb.debian.org/debian trixie/main armhf libgssapi-krb5-2 armhf 1.21.3-5 [116 kB]
Get:46 https://deb.debian.org/debian trixie/main armhf libkrb5-3 armhf 1.21.3-5 [284 kB]
Get:47 https://deb.debian.org/debian trixie/main armhf libk5crypto3 armhf 1.21.3-5 [76.0 kB]
Get:48 https://deb.debian.org/debian trixie/main armhf libkrb5support0 armhf 1.21.3-5 [30.4 kB]
Get:49 https://deb.debian.org/debian trixie/main armhf libcom-err2 armhf 1.47.2-3+b3 [24.3 kB]
Get:50 https://deb.debian.org/debian trixie/main armhf libkeyutils1 armhf 1.6.3-6 [8568 B]
Get:51 https://deb.debian.org/debian trixie/main armhf libtirpc3t64 armhf 1.3.6+ds-1 [71.5 kB]
Get:52 https://deb.debian.org/debian trixie/main armhf libcap2 armhf 1:2.75-10+b1 [24.8 kB]
Get:53 https://deb.debian.org/debian trixie/main armhf libmnl0 armhf 1.0.5-3 [10.3 kB]
Get:54 https://deb.debian.org/debian trixie/main armhf libxtables12 armhf 1.8.11-2 [28.7 kB]
Get:55 https://deb.debian.org/debian trixie/main armhf libcap2-bin armhf 1:2.75-10+b1 [34.5 kB]
Get:56 https://deb.debian.org/debian trixie/main armhf libacl1 armhf 2.3.2-2+b1 [30.0 kB]
Get:57 https://deb.debian.org/debian trixie/main armhf libcrypt1 armhf 1:4.4.38-1 [95.6 kB]
Get:58 https://deb.debian.org/debian trixie/main armhf libmount1 armhf 2.41-5 [189 kB]
Get:59 https://deb.debian.org/debian trixie/main armhf libseccomp2 armhf 2.6.0-2 [49.3 kB]
Get:60 https://deb.debian.org/debian trixie/main armhf libsqlite3-0 armhf 3.46.1-7 [803 kB]
Get:61 https://deb.debian.org/debian trixie/main armhf liblastlog2-2 armhf 2.41-5 [27.8 kB]
Get:62 https://deb.debian.org/debian trixie/main armhf libsmartcols1 armhf 2.41-5 [127 kB]
Get:63 https://deb.debian.org/debian trixie/main armhf libuuid1 armhf 2.41-5 [36.4 kB]
Get:64 https://deb.debian.org/debian trixie/main armhf libpam-runtime all 1.7.0-5 [249 kB]
Get:65 https://deb.debian.org/debian trixie/main armhf login armhf 1:4.16.0-2+really2.41-5 [107 kB]
Get:66 https://deb.debian.org/debian trixie/main armhf libfdisk1 armhf 2.41-5 [198 kB]
Get:67 https://deb.debian.org/debian trixie/main armhf libdbus-1-3 armhf 1.16.2-2 [155 kB]
Get:68 https://deb.debian.org/debian trixie/main armhf libnl-route-3-200 armhf 3.7.0-2 [154 kB]
Get:69 https://deb.debian.org/debian trixie/main armhf libnl-genl-3-200 armhf 3.7.0-2 [16.6 kB]
Get:70 https://deb.debian.org/debian trixie/main armhf libnl-3-200 armhf 3.7.0-2 [52.0 kB]
Get:71 https://deb.debian.org/debian trixie/main armhf libpcsclite1 armhf 2.3.3-1 [51.8 kB]
Get:72 https://deb.debian.org/debian trixie/main armhf wpasupplicant armhf 2:2.10-24 [1219 kB]
Get:73 https://deb.debian.org/debian trixie/main armhf dmsetup armhf 2:1.02.205-2 [82.1 kB]
Get:74 https://deb.debian.org/debian trixie/main armhf libdevmapper1.02.1 armhf 2:1.02.205-2 [127 kB]
Get:75 https://deb.debian.org/debian trixie/main armhf parted armhf 3.6-5 [36.8 kB]
Get:76 https://deb.debian.org/debian trixie/main armhf libparted2t64 armhf 3.6-5 [290 kB]
Get:77 https://deb.debian.org/debian trixie/main armhf libncurses6 armhf 6.5+20250216-2 [82.8 kB]
Get:78 https://deb.debian.org/debian trixie/main armhf libncursesw6 armhf 6.5+20250216-2 [110 kB]
Get:79 https://deb.debian.org/debian trixie/main armhf libtinfo6 armhf 6.5+20250216-2 [333 kB]
Get:80 https://deb.debian.org/debian trixie/main armhf ncurses-bin armhf 6.5+20250216-2 [429 kB]
Get:81 https://deb.debian.org/debian trixie/main armhf libgpg-error0 armhf 1.51-4 [71.4 kB]
Get:82 https://deb.debian.org/debian trixie/main armhf libassuan9 armhf 3.0.2-2 [54.8 kB]
Get:83 https://deb.debian.org/debian trixie/main armhf libgcrypt20 armhf 1.11.0-7 [727 kB]
Get:84 https://deb.debian.org/debian trixie/main armhf libksba8 armhf 1.6.7-2+b1 [115 kB]
Get:85 https://deb.debian.org/debian trixie/main armhf libnpth0t64 armhf 1.8-3 [22.0 kB]
Get:86 https://deb.debian.org/debian trixie/main armhf init-system-helpers all 1.69~deb13u1 [39.4 kB]
Get:87 https://deb.debian.org/debian trixie/main armhf gpg armhf 2.4.7-21+b3 [553 kB]
Get:88 https://deb.debian.org/debian trixie/main armhf gpgconf armhf 2.4.7-21+b3 [113 kB]
Get:89 https://deb.debian.org/debian trixie/main armhf readline-common all 8.2-6 [69.4 kB]
Get:90 https://deb.debian.org/debian trixie/main armhf libreadline8t64 armhf 8.2-6 [146 kB]
Get:91 https://deb.debian.org/debian trixie/main armhf fdisk armhf 2.41-5 [144 kB]
Get:92 https://deb.debian.org/debian trixie/main armhf util-linux armhf 2.41-5 [1134 kB]
Get:93 https://deb.debian.org/debian trixie/main armhf rfkill armhf 2.41-5 [42.4 kB]
Get:94 https://deb.debian.org/debian trixie/main armhf bash-completion all 1:2.16.0-7 [319 kB]
Get:95 https://deb.debian.org/debian trixie/main armhf kmod armhf 34.2-2 [84.0 kB]
Get:96 https://deb.debian.org/debian trixie/main armhf libkmod2 armhf 34.2-2 [55.0 kB]
Get:97 https://deb.debian.org/debian trixie/main armhf libapparmor1 armhf 4.1.0-1 [39.3 kB]
Get:98 https://deb.debian.org/debian trixie/main armhf mount armhf 2.41-5 [150 kB]
Get:99 https://deb.debian.org/debian trixie/main armhf libattr1 armhf 1:2.5.2-3 [22.0 kB]
Get:100 https://deb.debian.org/debian trixie/main armhf libmd0 armhf 1.1.0-2+b1 [31.9 kB]
Get:101 https://deb.debian.org/debian trixie/main armhf libbsd0 armhf 0.12.2-2 [127 kB]
Get:102 https://deb.debian.org/debian trixie/main armhf adduser all 3.152 [191 kB]
Get:103 https://deb.debian.org/debian trixie/main armhf debianutils armhf 5.23.2 [91.4 kB]
Get:104 https://deb.debian.org/debian trixie/main armhf bash armhf 5.2.37-2+b5 [1433 kB]
Get:105 https://deb.debian.org/debian trixie/main armhf bsdutils armhf 1:2.41-5 [101 kB]
Get:106 https://deb.debian.org/debian trixie/main armhf libgmp10 armhf 2:6.3.0+dfsg-3 [512 kB]
Get:107 https://deb.debian.org/debian trixie/main armhf coreutils armhf 9.7-3 [2869 kB]
Get:108 https://deb.debian.org/debian trixie/main armhf dash armhf 0.5.12-12 [90.4 kB]
Get:109 https://deb.debian.org/debian trixie/main armhf diffutils armhf 1:3.10-4 [369 kB]
Get:110 https://deb.debian.org/debian trixie/main armhf liblzma5 armhf 5.8.1-1 [296 kB]
Get:111 https://deb.debian.org/debian trixie/main armhf tar armhf 1.35+dfsg-3.1 [794 kB]
Get:112 https://deb.debian.org/debian trixie/main armhf dpkg armhf 1.22.21 [1488 kB]
Get:113 https://deb.debian.org/debian trixie/main armhf findutils armhf 4.10.0-3 [687 kB]
Get:114 https://deb.debian.org/debian trixie/main armhf grep armhf 3.11-4 [420 kB]
Get:115 https://deb.debian.org/debian trixie/main armhf gzip armhf 1.13-1 [134 kB]
Get:116 https://deb.debian.org/debian trixie/main armhf hostname armhf 3.25 [10.0 kB]
Get:117 https://deb.debian.org/debian trixie/main armhf sed armhf 4.9-2 [321 kB]
Get:118 https://deb.debian.org/debian trixie/main armhf libffi8 armhf 3.4.8-2 [20.4 kB]
Get:119 https://deb.debian.org/debian trixie/main armhf libp11-kit0 armhf 0.25.5-3 [385 kB]
Get:120 https://deb.debian.org/debian trixie/main armhf libunistring5 armhf 1.3-2 [441 kB]
Get:121 https://deb.debian.org/debian trixie/main armhf librtmp1 armhf 2.4+20151223.gitfa8646d.1-2+b5 [53.2 kB]
Get:122 https://deb.debian.org/debian trixie/main armhf libsasl2-2 armhf 2.1.28+dfsg1-9 [50.4 kB]
Get:123 https://deb.debian.org/debian trixie/main armhf libldap2 armhf 2.6.10+dfsg-1 [168 kB]
Get:124 https://deb.debian.org/debian trixie/main armhf libnghttp2-14 armhf 1.64.0-1.1 [63.0 kB]
Get:125 https://deb.debian.org/debian trixie/main armhf libnghttp3-9 armhf 1.8.0-1 [59.9 kB]
Get:126 https://deb.debian.org/debian trixie/main armhf wget armhf 1.25.0-2 [962 kB]
Get:127 https://deb.debian.org/debian trixie/main armhf curl armhf 8.14.1-2+deb13u2 [260 kB]
Get:128 https://deb.debian.org/debian trixie/main armhf libidn2-0 armhf 2.3.8-2 [105 kB]
Get:129 https://deb.debian.org/debian trixie/main armhf libpsl5t64 armhf 0.21.2-1.1+b1 [55.8 kB]
Get:130 https://deb.debian.org/debian trixie/main armhf libssh2-1t64 armhf 1.11.1-1 [227 kB]
Get:131 https://deb.debian.org/debian trixie/main armhf libbrotli1 armhf 1.1.0-2+b7 [284 kB]
Get:132 https://deb.debian.org/debian trixie/main armhf libcurl4t64 armhf 8.14.1-2+deb13u2 [338 kB]
Get:133 https://deb.debian.org/debian trixie/main armhf libnettle8t64 armhf 3.10.1-1 [312 kB]
Get:134 https://deb.debian.org/debian trixie/main armhf libhogweed6t64 armhf 3.10.1-1 [322 kB]
Get:135 https://deb.debian.org/debian trixie/main armhf sqv armhf 1.3.0-3 [802 kB]
Get:136 https://deb.debian.org/debian trixie/main armhf libstdc++6 armhf 14.2.0-19 [607 kB]
Get:137 https://deb.debian.org/debian trixie/main armhf libapt-pkg7.0 armhf 3.0.3 [973 kB]
Get:138 https://deb.debian.org/debian trixie/main armhf apt armhf 3.0.3 [1364 kB]
Get:139 https://deb.debian.org/debian trixie/main armhf libtasn1-6 armhf 4.20.0-2 [44.4 kB]
Get:140 https://deb.debian.org/debian trixie/main armhf libgnutls30t64 armhf 3.8.9-3 [1383 kB]
Get:141 https://deb.debian.org/debian trixie/main armhf libxxhash0 armhf 0.8.3-2 [31.2 kB]
Get:142 https://deb.debian.org/debian trixie/main armhf liblz4-1 armhf 1.10.0-4 [52.8 kB]
Get:143 https://deb.debian.org/debian trixie/main armhf debian-archive-keyring all 2025.1 [179 kB]
Get:144 https://deb.debian.org/debian trixie/main armhf ncurses-base all 6.5+20250216-2 [273 kB]
Get:145 https://deb.debian.org/debian trixie/main armhf xkb-data all 2.42-1 [790 kB]
Get:146 https://deb.debian.org/debian trixie/main armhf kbd armhf 2.7.1-2 [314 kB]
Get:147 https://deb.debian.org/debian trixie/main armhf console-setup-linux all 1.242~deb13u1 [6207 kB]
Get:148 https://deb.debian.org/debian trixie/main armhf console-setup all 1.242~deb13u1 [97.5 kB]
Get:149 https://deb.debian.org/debian trixie/main armhf keyboard-configuration all 1.242~deb13u1 [429 kB]
Get:150 https://deb.debian.org/debian trixie/main armhf sysvinit-utils armhf 3.14-4 [32.8 kB]
Get:151 https://deb.debian.org/debian trixie/main armhf lsb-base all 11.6 [4584 B]
Get:152 https://deb.debian.org/debian trixie/main armhf klibc-utils armhf 2.0.14-1 [86.7 kB]
Get:153 https://deb.debian.org/debian trixie/main armhf initramfs-tools-core all 0.148.3 [50.5 kB]
Get:154 https://deb.debian.org/debian trixie/main armhf initramfs-tools all 0.148.3 [17.3 kB]
Get:155 https://deb.debian.org/debian trixie/main armhf logsave armhf 1.47.2-3+b3 [24.4 kB]
Get:156 https://deb.debian.org/debian trixie/main armhf libext2fs2t64 armhf 1.47.2-3+b3 [194 kB]
Get:157 https://deb.debian.org/debian trixie/main armhf e2fsprogs armhf 1.47.2-3+b3 [569 kB]
Get:158 https://deb.debian.org/debian trixie/main armhf libklibc armhf 2.0.14-1 [42.0 kB]
Get:159 https://deb.debian.org/debian trixie/main armhf cpio armhf 2.15+dfsg-2 [243 kB]
Get:160 https://deb.debian.org/debian trixie/main armhf dracut-install armhf 106-6 [34.4 kB]
Get:161 https://deb.debian.org/debian trixie/main armhf initramfs-tools-bin armhf 0.148.3 [16.5 kB]
Get:162 https://deb.debian.org/debian trixie/main armhf linux-base all 4.12 [25.5 kB]
Get:163 https://deb.debian.org/debian trixie/main armhf wireless-tools armhf 30~pre9-18+b1 [105 kB]
Get:164 https://deb.debian.org/debian trixie/main armhf libiw30t64 armhf 30~pre9-18+b1 [15.7 kB]
Get:165 https://deb.debian.org/debian trixie/main armhf cron-daemon-common all 3.0pl1-197 [17.8 kB]
Get:166 https://deb.debian.org/debian trixie/main armhf cron armhf 3.0pl1-197 [83.6 kB]
Get:167 https://deb.debian.org/debian trixie/main armhf sensible-utils all 0.0.25 [25.0 kB]
Get:168 https://deb.debian.org/debian trixie/main armhf init armhf 1.69~deb13u1 [6408 B]
Get:169 https://deb.debian.org/debian trixie/main armhf systemd-sysv armhf 257.9-1~deb13u1 [64.5 kB]
Get:170 https://deb.debian.org/debian trixie/main armhf sudo armhf 1.9.16p2-3 [2021 kB]
Get:171 https://deb.debian.org/debian trixie/main armhf gpgv armhf 2.4.7-21+b3 [204 kB]
Get:172 https://deb.debian.org/debian trixie/main armhf mawk armhf 1.3.4.20250131-1 [131 kB]
Get:173 https://deb.debian.org/debian trixie/main armhf tzdata all 2025b-4+deb13u1 [260 kB]
Get:174 https://deb.debian.org/debian trixie/main armhf iputils-ping armhf 3:20240905-3 [49.2 kB]
Get:175 https://deb.debian.org/debian trixie/main armhf nano armhf 8.4-1 [630 kB]
Get:176 https://deb.debian.org/debian trixie/main armhf libproc2-0 armhf 2:4.0.4-9 [56.8 kB]
Get:177 https://deb.debian.org/debian trixie/main armhf procps armhf 2:4.0.4-9 [868 kB]
Get:178 https://deb.debian.org/debian trixie/main armhf libslang2 armhf 2.3.3-5+b2 [513 kB]
Get:179 https://deb.debian.org/debian trixie/main armhf libnewt0.52 armhf 0.52.25-1 [52.3 kB]
Get:180 https://deb.debian.org/debian trixie/main armhf libpopt0 armhf 1.19+dfsg-2 [40.7 kB]
Get:181 https://deb.debian.org/debian trixie/main armhf whiptail armhf 0.52.25-1 [23.6 kB]
Get:182 https://deb.debian.org/debian trixie/main armhf openssl armhf 3.5.4-1~deb13u1 [1461 kB]
Get:183 https://deb.debian.org/debian trixie/main armhf ca-certificates all 20250419 [162 kB]
Get:184 https://deb.debian.org/debian trixie/main armhf dosfstools armhf 4.2-1.2 [128 kB]
Get:185 https://deb.debian.org/debian trixie/main armhf ethtool armhf 1:6.14.2-1 [208 kB]
Get:186 https://deb.debian.org/debian trixie/main armhf fake-hwclock all 0.14 [7208 B]
Get:187 https://deb.debian.org/debian trixie/main armhf hdparm armhf 9.65+ds-1.1 [104 kB]
Get:188 https://deb.debian.org/debian trixie/main armhf htop armhf 3.4.1-5 [155 kB]
Get:189 https://deb.debian.org/debian trixie/main armhf isc-dhcp-client armhf 4.4.3-P1-8 [1002 kB]
Get:190 https://deb.debian.org/debian trixie/main armhf iw armhf 6.9-1 [94.9 kB]
Get:191 https://deb.debian.org/debian trixie/main armhf libargon2-1 armhf 0~20190702+dfsg-4+b2 [21.5 kB]
Get:192 https://deb.debian.org/debian trixie/main armhf libjson-c5 armhf 0.18+ds-1 [42.3 kB]
Get:193 https://deb.debian.org/debian trixie/main armhf libcryptsetup12 armhf 2:2.7.5-2 [225 kB]
Get:194 https://deb.debian.org/debian trixie/main armhf libip4tc2 armhf 1.8.11-2 [17.8 kB]
Get:195 https://deb.debian.org/debian trixie/main armhf libss2 armhf 1.47.2-3+b3 [27.9 kB]
Get:196 https://deb.debian.org/debian trixie/main armhf libusb-1.0-0 armhf 2:1.0.28-1 [52.7 kB]
Get:197 https://deb.debian.org/debian trixie/main armhf psmisc armhf 23.7-2 [263 kB]
Get:198 https://deb.debian.org/debian trixie/main armhf u-boot-tools armhf 2025.01-3 [305 kB]
Get:199 https://deb.debian.org/debian trixie/main armhf usbutils armhf 1:018-2 [70.1 kB]
Get:200 https://deb.debian.org/debian trixie/main armhf wireless-regdb all 2025.07.10-1 [11.8 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 71.7 MB in 58s (1246 kB/s)
(Reading database ... 12802 files and directories currently installed.)
Preparing to unpack .../base-files_13.8+deb13u2_armhf.deb ...


******************************************************************************
*
* The base-files package cannot be installed because
* /bin is a directory, but should be a symbolic link.
*
* Please install the usrmerge package to convert this system to merged-/usr.
*
* For more information please read https://wiki.debian.org/UsrMerge.
*
******************************************************************************


dpkg: error processing archive /tmp/apt/archives/base-files_13.8+deb13u2_armhf.deb (--unpack):
 new base-files package pre-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 /tmp/apt/archives/base-files_13.8+deb13u2_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

An attempt to do apt install usrmerge leads to installing base-files with the same outcome

You are using a Debian Buster image as base, this is pretty old. Debian nowadays expects that /bin points to /usr/bin
But youcan fix this with usrmerge:
I assume you are using a freshly flashed system, otherwise make a backup!

sudo apt update
sudo apt install usrmerge

Some prompt will then pop up and guide you through the process.
After a reboot do

sudo apt --fix-broken install
sudo apt full-upgrade

and then try again the conversion script

when i did that, it tried to install base-files anyway leading to the same outcome

can i just do cp /bin /usr/bin and then rm /bin and ln -s /usr/bin /bin? Or it will break everything?

Try this instead

sudo apt-mark hold base-files
sudo apt install --no-upgrade usrmerge

If this was successful, do

sudo apt-mark unhold base-files
root@bpi-iot-ros-ai:/tmp/DietPi-Installer# apt-mark hold base-files
base-files set on hold.
root@bpi-iot-ros-ai:/tmp/DietPi-Installer# apt install --no-upgrade usrmerge
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 base-files : PreDepends: awk
 libdb5.3t64 : Depends: libc6 (>= 2.38) but it is not going to be installed
 libgdbm-compat4t64 : Depends: libc6 (>= 2.34) but it is not going to be installed
 libgdbm6t64 : Depends: libc6 (>= 2.34) but it is not going to be installed
 libperl5.40 : Depends: libbz2-1.0 but it is not going to be installed
               Depends: libc6 (>= 2.38) but it is not going to be installed
               Depends: libcrypt1 (>= 1:4.1.0) but it is not going to be installed
               Depends: zlib1g (>= 1:1.2.3.3) but it is not going to be installed
 perl-base : PreDepends: libc6 (>= 2.38) but it is not going to be installed
             PreDepends: libcrypt1 (>= 1:4.1.0) but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
root@bpi-iot-ros-ai:/tmp/DietPi-Installer# apt install usrmerge
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 base-files : PreDepends: awk
 libdb5.3t64 : Depends: libc6 (>= 2.38) but it is not going to be installed
 libgdbm-compat4t64 : Depends: libc6 (>= 2.34) but it is not going to be installed
 libgdbm6t64 : Depends: libc6 (>= 2.34) but it is not going to be installed
 libperl5.40 : Depends: libbz2-1.0 but it is not going to be installed
               Depends: libc6 (>= 2.38) but it is not going to be installed
               Depends: libcrypt1 (>= 1:4.1.0) but it is not going to be installed
               Depends: zlib1g (>= 1:1.2.3.3) but it is not going to be installed
 perl-base : PreDepends: libc6 (>= 2.38) but it is not going to be installed
             PreDepends: libcrypt1 (>= 1:4.1.0) but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
root@bpi-iot-ros-ai:/tmp/DietPi-Installer# 

that didn’t work either

so I did

# check if PATH actually contains /usr/bin, just in case. It did
echo $PATH
# -> /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
mv /bin/* /usr/bin
rmdir /bin
ln -s /usr/bin /bin

It worked for that particular issue, but it appears, there are more 0c0

│ Setting up wireless-regdb (2025.07.10-1) ...^M
│ update-alternatives: error: alternative path
│ /lib/firmware/regulatory.db-debian doesn't exist^M
│ dpkg: error processing package wireless-regdb (--configure):^M
│  installed wireless-regdb package post-installation script subprocess
│ returned error exit status 2^M

I’ll try to research it, and I’ll post the solution if I succeed, but if anyone knows the answer already, i would love to take that shortcut in my research :3

IDK the system is messed up now, you also installed some key for ubuntu, why?

apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 605C66F00D6C9793 6ED0E7B82643E131 0E98404D386FA1D9

I woudl start fresh and do

sudo apt update
sudo apt upgrade
sudo apt dist-upgrade

Change then the source lists to bullseye

deb http://deb.debian.org/debian bullseye main contrib non-free
deb http://deb.debian.org/debian bullseye-updates main contrib non-free
deb http://security.debian.org/debian-security bullseye-security main contrib non-free

then

sudo apt update
sudo apt upgrade --without-new-pkgs
sudo apt full-upgrade

now install usrmerge to convert the system

sudo apt install usrmerge

and then you can try to run the conversion script again

idunno, it was inthere, i assumed it is a new keys for the apt repos, didn’t thought much of it

idk what this is, from where did you get this`?

Isn’t there a better base image than this ancient Debian Buster with ancient Linux 4.9, which itself won’t work with Trixie, since that kernel does not support the needed time64 syscalls those t64-suffixed packages will try to do.

But I see, it has some rare Realtek chip that has no mainline Linux support :thinking:.