orangepi-xunlong / orangepi-build

Orange Pi build for H2+, H3, H5, H6, H616, RK3328, RK3399 and RK3588(s)
http://www.orangepi.cn/
GNU General Public License v2.0
643 stars 273 forks source link

Freezes when compiling Orange Pi 3B legacy kernel and bookworm server image #116

Open izilzty opened 7 months ago

izilzty commented 7 months ago

Hi, when I compile the server image of bookworm, it freezes at [ .... ] Installing [ orangepi-zsh_1.0.2_all.deb ] and cannot be terminated with ctrl-c. It is caused by dpkg waiting for user interaction to replace the configuration file when installing BlueZ.

正在设置 libpulse0:arm64 (16.1+dfsg1-2+b1) ...

配置文件 '/etc/pulse/client.conf'
 ==> 系统中的这个文件或者是由您创建的,或者是由脚本建立的。
 ==> 软件包维护者所提供的软件包中也包含了该文件。
   您现在希望如何处理呢? 您有以下几个选择:
    Y 或 I  :安装软件包维护者所提供的版本
    N 或 O  :保留您原来安装的版本
      D     :显示两者的区别
      Z     :把当前进程切换到后台,然后查看现在的具体情况
 默认的处理方法是保留您当前使用的版本。
*** client.conf (Y/I/N/O/D/Z) [默认选项=N] ?

Currently it can be fix by adding the -o Dpkg::Options::='--force-confdef' -o Dpkg::Options::='--force-confold' parameter to line 48 of the configuration file external/config/sources/families/rockchip-rk356x.conf.

from

https://github.com/orangepi-xunlong/orangepi-build/blob/ed4ced31b641bd36d2bc60e6796ef8261d0327af/external/config/sources/families/rockchip-rk356x.conf#L48

to

        chroot $SDCARD /bin/bash -c "apt-get -o Dpkg::Options::='--force-confdef' -o Dpkg::Options::='--force-confold' -y -qq install dnsmasq v4l-utils cheese swig python3-dev python3-setuptools bluez libncurses-dev" >> "${DEST}"/${LOG_SUBPATH}/install.log 2>&1