cancel
Showing results for 
Search instead for 
Did you mean: 

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

DmnSd
Associate III

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!

1 ACCEPTED SOLUTION

Accepted Solutions
DmnSd
Associate III

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

View solution in original post

8 REPLIES 8
ArmandG
ST Employee

Hi @DmnSd​ ,

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

Best regards,

Armand

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.

@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
Associate III

Dear @ArmandG​ 

all packages from `3.2 Install extra packages` are installed + packages needed for developer package and useful tools.

$ sudo apt update 
Hit:1 http://us.archive.ubuntu.com/ubuntu bionic InRelease
Get:2 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Fetched 252 kB in 1s (316 kB/s)     
Reading package lists... Done
Building dependency tree       
Reading state information... Done
All packages are up to date.
$ sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib build-essential chrpath socat cpio python python3 python3-pip python3-pexpect xz-utils debianutils iputils-ping
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'git' instead of 'git-core'
build-essential is already the newest version (12.4ubuntu1).
debianutils is already the newest version (4.8.4).
diffstat is already the newest version (1.61-1build1).
gawk is already the newest version (1:4.1.4+dfsg-1build1).
python is already the newest version (2.7.15~rc1-1).
python3-pexpect is already the newest version (4.2.1-1).
socat is already the newest version (1.7.3.2-2ubuntu2).
unzip is already the newest version (6.0-21ubuntu1).
xz-utils is already the newest version (5.2.2-1.3).
chrpath is already the newest version (0.16-2).
texinfo is already the newest version (6.5.0.dfsg.1-2).
cpio is already the newest version (2.12+dfsg-6ubuntu0.18.04.1).
gcc-multilib is already the newest version (4:7.4.0-1ubuntu2.3).
git is already the newest version (1:2.17.1-1ubuntu0.7).
iputils-ping is already the newest version (3:20161105-1ubuntu3).
python3 is already the newest version (3.6.7-1~18.04).
wget is already the newest version (1.19.4-1ubuntu2.2).
python3-pip is already the newest version (9.0.1-2.3~ubuntu1.18.04.1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
$ sudo apt-get install libsdl1.2-dev xterm
Reading package lists... Done
Building dependency tree       
Reading state information... Done
xterm is already the newest version (330-1ubuntu2).
libsdl1.2-dev is already the newest version (1.2.15+dfsg2-0.1ubuntu0.1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
$ sudo apt-get install make xsltproc docbook-utils fop dblatex xmlto
Reading package lists... Done
Building dependency tree       
Reading state information... Done
make is already the newest version (4.1-9.1ubuntu1).
dblatex is already the newest version (0.3.10-2).
docbook-utils is already the newest version (0.6.14-3.3).
fop is already the newest version (1:2.1-7).
xmlto is already the newest version (0.0.28-2).
xsltproc is already the newest version (1.1.29-5ubuntu0.2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
$ sudo apt-get install python-git
Reading package lists... Done
Building dependency tree       
Reading state information... Done
python-git is already the newest version (2.1.8-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
$ sudo apt-get install ncurses-dev libncurses5-dev libncursesw5-dev lib32ncurses5 libssl-dev linux-headers-generic u-boot-tools device-tree-compiler bison flex g++ libyaml-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'libncurses5-dev' instead of 'ncurses-dev'
bison is already the newest version (2:3.0.4.dfsg-1build1).
device-tree-compiler is already the newest version (1.4.5-3).
flex is already the newest version (2.6.4-6).
libyaml-dev is already the newest version (0.1.7-2ubuntu3).
g++ is already the newest version (4:7.4.0-1ubuntu2.3).
lib32ncurses5 is already the newest version (6.1-1ubuntu1.18.04).
libncurses5-dev is already the newest version (6.1-1ubuntu1.18.04).
libncursesw5-dev is already the newest version (6.1-1ubuntu1.18.04).
libssl-dev is already the newest version (1.1.1-1ubuntu2.1~18.04.6).
linux-headers-generic is already the newest version (4.15.0.112.100).
u-boot-tools is already the newest version (2019.07+dfsg-1ubuntu4~18.04.1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
$ sudo apt-get install coreutils bsdmainutils sed curl bc lrzsz corkscrew cvs subversion mercurial nfs-common nfs-kernel-server libarchive-zip-perl dos2unix texi2html diffstat libxml2-utils
Reading package lists... Done
Building dependency tree       
Reading state information... Done
bc is already the newest version (1.07.1-2).
bsdmainutils is already the newest version (11.1.2ubuntu1).
coreutils is already the newest version (8.28-1ubuntu1).
diffstat is already the newest version (1.61-1build1).
sed is already the newest version (4.4-2).
corkscrew is already the newest version (2.0-11).
cvs is already the newest version (2:1.12.13+real-26).
dos2unix is already the newest version (7.3.4-3).
subversion is already the newest version (1.9.7-4ubuntu1).
texi2html is already the newest version (1.82+dfsg1-5).
curl is already the newest version (7.58.0-2ubuntu3.9).
libarchive-zip-perl is already the newest version (1.60-1ubuntu0.1).
libxml2-utils is already the newest version (2.9.4+dfsg1-6.1ubuntu1.3).
nfs-common is already the newest version (1:1.3.4-2.1ubuntu5.3).
nfs-kernel-server is already the newest version (1:1.3.4-2.1ubuntu5.3).
lrzsz is already the newest version (0.12.21-10~build0.18.04.1).
mercurial is already the newest version (4.5.3-1ubuntu2.1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Hi @DmnSd​ ,

Just to be sure, could you check result of command:

whereis update-desktop-database

You should see:

update-desktop-database: /usr/bin/update-desktop-database /usr/share/man/man1/update-desktop-database.1.gz

Best regards,

Milan

DmnSd
Associate III

Hi @mleo​ 

that's exactly what I see.

$ whereis update-desktop-database
update-desktop-database: /usr/bin/update-desktop-database /usr/share/man/man1/update-desktop-database.1.gz

I started a completely new build and noticed this message:

NOTE: /home/.../openstlinux-5.4-dunfell-mp1-20-06-24/layers/meta-st/meta-st-openstlinux/recipes-st/images/st-image-resize-initrd.bb: ENABLE_PARTITIONS_IMAGE not enabled###########             | ETA:  0:00:16

This is the full context:

$ bitbake -k st-image-weston
NOTE: Started PRServer with DBfile: /home/.../openstlinux-5.4-dunfell-mp1-20-06-24/build-openstlinuxweston-stm32mp1/cache/prserv.sqlite3, IP: 127.0.0.1, PORT: 44745, PID: 29857
NOTE: /home/.../openstlinux-5.4-dunfell-mp1-20-06-24/layers/meta-st/meta-st-openstlinux/recipes-st/images/st-image-resize-initrd.bb: ENABLE_PARTITIONS_IMAGE not enabled###########             | ETA:  0:00:16
Parsing recipes: 100% |#############################################################################################################################################################################| Time: 0:03:41
Parsing of 2614 .bb files complete (0 cached, 2614 parsed). 3805 targets, 106 skipped, 0 masked, 0 errors.

maybe that has something to do with the problem?

Hi @DmnSd​ ,

The message "ENABLE_PARTITIONS_IMAGE not enabled" is unexpected. Have you manipulated any config file before running the build?

What linux do you use? Is it recommended Ubuntu 18.04? There might some incompatibilities - e.g. in python version.

One more question. I noticed in the original question that you run the build on mounted driver " /mnt/data/dist-pack/ ". Probably not related, but could you try to run it on local drive?

Milan

DmnSd
Associate III

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