dpkg-deb:error:package name has characters that aren't lowercase alphanums or '-+.'

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

dpkg-deb:error:package name has characters that aren't lowercase alphanums or '-+.'

2,943件の閲覧回数
khang_letruong
Senior Contributor III

Hi Community,

I am populating the SDK of the Yocto Hardknott BSP LF5.10.72-2.2.3 on Ubuntu-20.04 machine and got following error :

 

 

ERROR: meta-environment-viper_imx8mp-1.0-r8 do_package_write_deb: Fatal errors occurred in subprocesses:
Command 'PATH="/data/Khang/realtime7-viper-yocto-bsp-5_10_72-2_2_3/build-xwayland-viper_imx8mp/tmp/work/x86_64-nativesdk-pokysdk-linux/meta-environment-viper_imx8mp/1.0-r8/recipe-sysroot-native/usr/bin/chrpath-native:/data/Khang/realtime7-viper-yocto-bsp-5_10_72-2_2_3/sources/poky/scripts:/data/Khang/realtime7-viper-yocto-bsp-5_10_72-2_2_3/build-xwayland-viper_imx8mp/tmp/work/x86_64-nativesdk-pokysdk-linux/meta-environment-viper_imx8mp/1.0-r8/recipe-sysroot-native/usr/bin/x86_64-pokysdk-linux:/data/Khang/realtime7-viper-yocto-bsp-5_10_72-2_2_3/build-xwayland-viper_imx8mp/tmp/work/x86_64-nativesdk-pokysdk-linux/meta-environment-viper_imx8mp/1.0-r8/recipe-sysroot-native/usr/bin/aarch64-poky-linux:/data/Khang/realtime7-viper-yocto-bsp-5_10_72-2_2_3/build-xwayland-viper_imx8mp/tmp/work/x86_64-nativesdk-pokysdk-linux/meta-environment-viper_imx8mp/1.0-r8/recipe-sysroot/usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux/crossscripts:/data/Khang/realtime7-viper-yocto-bsp-5_10_72-2_2_3/build-xwayland-viper_imx8mp/tmp/work/x86_64-nativesdk-pokysdk-linux/meta-environment-viper_imx8mp/1.0-r8/recipe-sysroot-native/usr/sbin:/data/Khang/realtime7-viper-yocto-bsp-5_10_72-2_2_3/build-xwayland-viper_imx8mp/tmp/work/x86_64-nativesdk-pokysdk-linux/meta-environment-viper_imx8mp/1.0-r8/recipe-sysroot-native/usr/bin:/data/Khang/realtime7-viper-yocto-bsp-5_10_72-2_2_3/build-xwayland-viper_imx8mp/tmp/work/x86_64-nativesdk-pokysdk-linux/meta-environment-viper_imx8mp/1.0-r8/recipe-sysroot-native/sbin:/data/Khang/realtime7-viper-yocto-bsp-5_10_72-2_2_3/build-xwayland-viper_imx8mp/tmp/work/x86_64-nativesdk-pokysdk-linux/meta-environment-viper_imx8mp/1.0-r8/recipe-sysroot-native/bin:/data/Khang/realtime7-viper-yocto-bsp-5_10_72-2_2_3/sources/poky/bitbake/bin:/data/Khang/realtime7-viper-yocto-bsp-5_10_72-2_2_3/build-xwayland-viper_imx8mp/tmp/hosttools:/data/Khang/realtime7-viper-yocto-bsp-5_10_72-2_2_3/build-xwayland-viper_imx8mp/tmp/sysroots/x86_64//bin" dpkg-deb -b /data/Khang/realtime7-viper-yocto-bsp-5_10_72-2_2_3/build-xwayland-viper_imx8mp/tmp/work/x86_64-nativesdk-pokysdk-linux/meta-environment-viper_imx8mp/1.0-r8/packages-split/meta-environment-viper_imx8mp /data/Khang/realtime7-viper-yocto-bsp-5_10_72-2_2_3/build-xwayland-viper_imx8mp/tmp/work/x86_64-nativesdk-pokysdk-linux/meta-environment-viper_imx8mp/1.0-r8/deploy-debs/x86_64-nativesdk' returned non-zero exit status 2.
Subprocess output:dpkg-deb: error: package name has characters that aren't lowercase alphanums or '-+.'

ERROR: Logfile of failure stored in: /data/Khang/realtime7-viper-yocto-bsp-5_10_72-2_2_3/build-xwayland-viper_imx8mp/tmp/work/x86_64-nativesdk-pokysdk-linux/meta-environment-viper_imx8mp/1.0-r8/temp/log.do_package_write_deb.3688095
ERROR: Task (/data/Khang/realtime7-viper-yocto-bsp-5_10_72-2_2_3/sources/poky/meta/recipes-core/meta/meta-environment.bb:do_package_write_deb) failed with exit code '1'

 

 

 

And the /data/Khang/realtime7-viper-yocto-bsp-5_10_72-2_2_3/build-xwayland-viper_imx8mp/tmp/work/x86_64-nativesdk-pokysdk-linux/meta-environment-viper_imx8mp/1.0-r8/temp/log.do_package_write_deb.3688095:

 

 

DEBUG: Executing python function sstate_task_prefunc
DEBUG: Python function sstate_task_prefunc finished
DEBUG: Executing python function extend_recipe_sysroot
NOTE: Direct dependencies are ['virtual:native:/data/Khang/realtime7-viper-yocto-bsp-5_10_72-2_2_3/sources/poky/meta/recipes-devtools/dpkg/dpkg_1.20.7.1.bb:do_populate_sysroot', 'virtual:native:/data/Khang/realtime7-viper-yocto-bsp-5_10_72-2_2_3/sources/poky/meta/recipes-devtools/pseudo/pseudo_git.bb:do_populate_sysroot']
NOTE: Installed into sysroot: []
NOTE: Skipping as already exists in sysroot: ['dpkg-native', 'pseudo-native', 'gettext-minimal-native', 'pkgconfig-native', 'xz-native', 'bzip2-native', 'quilt-native', 'zlib-native', 'automake-native', 'autoconf-native', 'perl-native', 'libtool-native', 'opkg-utils-native', 'gettext-native', 'texinfo-dummy-native', 'gnu-config-native', 'm4-native', 'db-native', 'gdbm-native']
DEBUG: Python function extend_recipe_sysroot finished
DEBUG: Executing python function do_package_write_deb
DEBUG: Executing python function read_subpackage_metadata
DEBUG: Python function read_subpackage_metadata finished
DEBUG: Executing python function do_package_deb
NOTE: Not creating empty archive for meta-environment-viper_imx8mp-src-1.0-r8
ERROR: Fatal errors occurred in subprocesses:
Command 'PATH="/data/Khang/realtime7-viper-yocto-bsp-5_10_72-2_2_3/build-xwayland-viper_imx8mp/tmp/work/x86_64-nativesdk-pokysdk-linux/meta-environment-viper_imx8mp/1.0-r8/recipe-sysroot-native/usr/bin/chrpath-native:/data/Khang/realtime7-viper-yocto-bsp-5_10_72-2_2_3/sources/poky/scripts:/data/Khang/realtime7-viper-yocto-bsp-5_10_72-2_2_3/build-xwayland-viper_imx8mp/tmp/work/x86_64-nativesdk-pokysdk-linux/meta-environment-viper_imx8mp/1.0-r8/recipe-sysroot-native/usr/bin/x86_64-pokysdk-linux:/data/Khang/realtime7-viper-yocto-bsp-5_10_72-2_2_3/build-xwayland-viper_imx8mp/tmp/work/x86_64-nativesdk-pokysdk-linux/meta-environment-viper_imx8mp/1.0-r8/recipe-sysroot-native/usr/bin/aarch64-poky-linux:/data/Khang/realtime7-viper-yocto-bsp-5_10_72-2_2_3/build-xwayland-viper_imx8mp/tmp/work/x86_64-nativesdk-pokysdk-linux/meta-environment-viper_imx8mp/1.0-r8/recipe-sysroot/usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux/crossscripts:/data/Khang/realtime7-viper-yocto-bsp-5_10_72-2_2_3/build-xwayland-viper_imx8mp/tmp/work/x86_64-nativesdk-pokysdk-linux/meta-environment-viper_imx8mp/1.0-r8/recipe-sysroot-native/usr/sbin:/data/Khang/realtime7-viper-yocto-bsp-5_10_72-2_2_3/build-xwayland-viper_imx8mp/tmp/work/x86_64-nativesdk-pokysdk-linux/meta-environment-viper_imx8mp/1.0-r8/recipe-sysroot-native/usr/bin:/data/Khang/realtime7-viper-yocto-bsp-5_10_72-2_2_3/build-xwayland-viper_imx8mp/tmp/work/x86_64-nativesdk-pokysdk-linux/meta-environment-viper_imx8mp/1.0-r8/recipe-sysroot-native/sbin:/data/Khang/realtime7-viper-yocto-bsp-5_10_72-2_2_3/build-xwayland-viper_imx8mp/tmp/work/x86_64-nativesdk-pokysdk-linux/meta-environment-viper_imx8mp/1.0-r8/recipe-sysroot-native/bin:/data/Khang/realtime7-viper-yocto-bsp-5_10_72-2_2_3/sources/poky/bitbake/bin:/data/Khang/realtime7-viper-yocto-bsp-5_10_72-2_2_3/build-xwayland-viper_imx8mp/tmp/hosttools:/data/Khang/realtime7-viper-yocto-bsp-5_10_72-2_2_3/build-xwayland-viper_imx8mp/tmp/sysroots/x86_64//bin" dpkg-deb -b /data/Khang/realtime7-viper-yocto-bsp-5_10_72-2_2_3/build-xwayland-viper_imx8mp/tmp/work/x86_64-nativesdk-pokysdk-linux/meta-environment-viper_imx8mp/1.0-r8/packages-split/meta-environment-viper_imx8mp /data/Khang/realtime7-viper-yocto-bsp-5_10_72-2_2_3/build-xwayland-viper_imx8mp/tmp/work/x86_64-nativesdk-pokysdk-linux/meta-environment-viper_imx8mp/1.0-r8/deploy-debs/x86_64-nativesdk' returned non-zero exit status 2.
Subprocess output:dpkg-deb: error: package name has characters that aren't lowercase alphanums or '-+.'

DEBUG: Python function do_package_deb finished
DEBUG: Python function do_package_write_deb finished

 

 

 

Could you help to avoid the error, please ?

Best Regards,

Khang

ラベル(1)
0 件の賞賛
返信
3 返答(返信)

2,122件の閲覧回数
schormale
Contributor I

Hi @khang_letruong 
Use viper-imx8mp instead of viper_imx8mp.
package name use only lowercase alphanums or '-+.'

0 件の賞賛
返信

2,857件の閲覧回数
Harvey021
NXP TechSupport
NXP TechSupport

Hi @khang_letruong 

Firstly, Have you modified or added that some packages or some lines which then unmet the requirement as the error shown?

The other suggestion would be to run clean sstate and rebuild again.

 

Best regards

Harvey

 

0 件の賞賛
返信

2,822件の閲覧回数
khang_letruong
Senior Contributor III

Hi @Harvey021 ,

 

I only added the BSP of the custom board under <imx-yocto-bsp>/sources/meta-company which is compiled well with bitbake imx-image-full.

Best Regards,

Khang

0 件の賞賛
返信