2021-12-07 05:47 PM
Hello
I am using Distribution Package and st-image-core.
I had to use sftp while testing my board, so I tried it, but it doesn't seem to be installed in the default package.
So, after adding the following to st-image-core.bb, I tried bitbake, but an error occurs.
There was no problem adding the other packages, but the problem occurs when I add the two below.
CORE_IMAGE_EXTRA_INSTALL += "openssh"
CORE_IMAGE_EXTRA_INSTALL += "openssh-sftp-server"
Error:
ERROR: st-image-core-1.0-r0 do_rootfs: Unable to install packages. Command '/home/parkseunghyun/Distribution-Package/openstlinux-5.10-dunfell-mp1-21-11-17/build-openstlinuxweston-stm32mp1-HSOT_GW01/tmp-glibc/work/stm32mp1_HSOT_GW01-ostl-linux-gnueabi/st-image-core/1.0-r0/recipe-sysroot-native/usr/bin/apt-get install --force-yes --allow-unauthenticated --no-remove apt base-passwd cronie dpkg hostapd hsgt lighttpd openssh packagegroup-base-extended packagegroup-core-boot packagegroup-core-ssh-dropbear packagegroup-framework-core-base packagegroup-framework-tools-base resize-helper run-postinsts shadow tzdata' returned 100:
Reading package lists...
Building dependency tree...
Reading state information...
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:
packagegroup-core-ssh-dropbear : Depends: dropbear but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
How to add sftp to st-image-core?
I need your help
thanks
2021-12-09 04:11 PM
solved
I changed st-image-core.bb as follows.
CORE_IMAGE_EXTRA_INSTALL += "openssh-sftp-server"
Also, I added the following to my local.conf.
IMAGE_INSTALL_append = "openssh-sftp-server"
I don't know which one works, but it works.