Skip to main content
DmnSd
Associate III
August 11, 2020
Solved

Error in recipe st-image-resize-initrd while building openstlinux-5.4-dunfell-mp1-20-06-24

  • August 11, 2020
  • 2 replies
  • 2826 views

Hello,

I always get following error while building openstlinux-5.4-dunfell-mp1-20-06-24:

ERROR: st-image-resize-initrd-1.0-r0 do_rootfs: The postinstall intercept hook 'update_desktop_database' failed, details in /mnt/data/dist-pack/openstlinux-5.4-dunfell-mp1-20-06-24/build-openstlinuxweston-stm32mp1/tmp-glibc/work/stm32mp1-ostl-linux-gnueabi/st-image-resize-initrd/1.0-r0/temp/log.do_rootfs
ERROR: Logfile of failure stored in: /mnt/data/dist-pack/openstlinux-5.4-dunfell-mp1-20-06-24/build-openstlinuxweston-stm32mp1/tmp-glibc/work/stm32mp1-ostl-linux-gnueabi/st-image-resize-initrd/1.0-r0/temp/log.do_rootfs.3210
ERROR: Task (/mnt/data/dist-pack/openstlinux-5.4-dunfell-mp1-20-06-24/layers/meta-st/meta-st-openstlinux/recipes-st/images/st-image-resize-initrd.bb:do_rootfs) failed with exit code '1'

Log file has this content:

[...]
NOTE: Running intercept scripts:
NOTE: > Executing update_desktop_database intercept ...
NOTE: Exit code 127. Output:
/mnt/data/dist-pack/openstlinux-5.4-dunfell-mp1-20-06-24/build-openstlinuxweston-stm32mp1/tmp-glibc/work/stm32mp1-ostl-linux-gnueabi/st-image-resize-initrd/1.0-r0/intercept_scripts-485140355b6661d2198dd5380565982fade0f39d951f5e0daaeccda7f3a73ed0/update_desktop_database: line 7: update-desktop-database: command not found
 
ERROR: The postinstall intercept hook 'update_desktop_database' failed, details in /mnt/data/dist-pack/openstlinux-5.4-dunfell-mp1-20-06-24/build-openstlinuxweston-stm32mp1/tmp-glibc/work/stm32mp1-ostl-linux-gnueabi/st-image-resize-initrd/1.0-r0/temp/log.do_rootfs
DEBUG: Python function do_rootfs finished

Why is `update-desktop-database` command not found? How can I solve this?

Many thanks.

Kind regards!

This topic has been closed for replies.
Best answer by DmnSd

Dear @mleo ,

dear @ArmandG​ ,

good news, the problem is probably solved. Well, maybe the solution is quiet strange, but I cannot explain it to myself otherwise.

I'm using Ubuntu 18.04 at my company. There are some "internet restrictions" like proxy, firewall, etc. At my company I can't build the yocto image.

So I took my business PC home with me and started building the image with no restrictions on internet. And suddenly the yocto build went fine. Same PC, software, versions, ... only another internet connection.

During yocto build at my company I sometimes had problems fetching some packages. But with a simple `bitbake -c fetch <recipe>` I got all the packages. Don't know the correlation between intercept scripts and internet.

But it doesn't matter, the build went fine (multiple times in /home and /mnt directory).

Many thanks for your fast community help!!!

Kind regards

Dmn

2 replies

ArmandG
ST Employee
August 11, 2020

Hi @DmnSd​ ,

For the command not found error, does the "desktop-file-utils" package is install on your machine ?

Best regards,

Armand

DmnSd
DmnSdAuthor
Associate III
August 11, 2020

Dear @ArmandG​ 

yes desktop-file-utils is installed:

$ sudo apt install desktop-file-utils

Reading package lists... Done

Building dependency tree      

Reading state information... Done

desktop-file-utils is already the newest version (0.23-1ubuntu3.18.04.2).

desktop-file-utils set to manually installed.

0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

ArmandG
ST Employee
August 11, 2020

@DmnSd​ ,

In order to make sure no packages needed are missing, may I ask you to try to download again extra packages in 3.2 section ?

https://wiki.st.com/stm32mpu/wiki/PC_prerequisites#Install_extra_packages

Armand

DmnSd
DmnSdAuthorAnswer
Associate III
August 13, 2020

Dear @mleo ,

dear @ArmandG​ ,

good news, the problem is probably solved. Well, maybe the solution is quiet strange, but I cannot explain it to myself otherwise.

I'm using Ubuntu 18.04 at my company. There are some "internet restrictions" like proxy, firewall, etc. At my company I can't build the yocto image.

So I took my business PC home with me and started building the image with no restrictions on internet. And suddenly the yocto build went fine. Same PC, software, versions, ... only another internet connection.

During yocto build at my company I sometimes had problems fetching some packages. But with a simple `bitbake -c fetch <recipe>` I got all the packages. Don't know the correlation between intercept scripts and internet.

But it doesn't matter, the build went fine (multiple times in /home and /mnt directory).

Many thanks for your fast community help!!!

Kind regards

Dmn