Topics

The following packages have unmet dependencies: packagegroup-core-x11-base : Depends: packagegroup-core-x11-xserver but it is not going to be installed #yocto


Pankaj Vinadrao Joshi
 

Hi,
i am trying to build core-image-sato and i am using PACKAGE_CLASSES = "package_deb" but while building i am getting following error
pankaj@exaleap-Inspiron-3584:~/Oe-Raspberrypi4$ bitbake core-image-sato
Parsing recipes: 100% |######################################################################################################################################################################| Time: 0:01:56
Parsing of 2279 .bb files complete (0 cached, 2279 parsed). 3439 targets, 195 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
 
Build Configuration:
BB_VERSION           = "1.46.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "ubuntu-18.04"
TARGET_SYS           = "aarch64-oe-linux"
MACHINE              = "raspberrypi4-64"
DISTRO               = "Exaleap-arm-linux"
DISTRO_VERSION       = "Exaleap-arm-linux-r1.0.0"
TUNE_FEATURES        = "aarch64 cortexa72 crc crypto"
TARGET_FPU           = ""
meta                 = "master:982b7f98b8423236cc986346379b1bde3694f131"
meta-oe              
meta-python          
meta-networking      
meta-multimedia      
meta-perl            = "dunfell:e413c1ef621688e69bb7830bb3151ed23b30b73e"
meta-raspberrypi     = "master:5ac6f013339b0b1ab2d71f9f6af48a186e126c19"
meta-pankaj          = "<unknown>:<unknown>"
 
Initialising tasks: 100% |###################################################################################################################################################################| Time: 0:00:05
Sstate summary: Wanted 270 Found 0 Missed 270 Current 1913 (0% match, 87% complete)
NOTE: Executing Tasks
ERROR: core-image-sato-1.0-r0 do_rootfs: Unable to install packages. Command '/home/pankaj/Oe-Raspberrypi4/tmp-glibc/work/raspberrypi4_64-oe-linux/core-image-sato/1.0-r0/recipe-sysroot-native/usr/bin/apt-get  install --force-yes --allow-unauthenticated --no-remove apt bash bsdtar cmake dhcp-client dhcp-server dosfstools dpkg e2fsprogs git glibc-utils kernel-modules localedef lsb-release mtd-utils-ubifs mtools openssh os-release packagegroup-base-extended packagegroup-core-boot packagegroup-core-sdk packagegroup-core-ssh-openssh packagegroup-core-standalone-sdk-target packagegroup-core-tools-debug packagegroup-core-x11-base packagegroup-core-x11-sato parted pseudo psplash-raspberrypi python3-pip ruby run-postinsts unicode-ucd' 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-x11-base : Depends: packagegroup-core-x11-xserver but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
 
ERROR: Logfile of failure stored in: /home/pankaj/Oe-Raspberrypi4/tmp-glibc/work/raspberrypi4_64-oe-linux/core-image-sato/1.0-r0/temp/log.do_rootfs.12854
ERROR: Task (/home/pankaj/openembedded-core/meta/recipes-sato/images/core-image-sato.bb:do_rootfs) failed with exit code '1'
NOTE: Tasks Summary: Attempted 5894 tasks of which 5893 didn't need to be rerun and 1 failed.
 
Summary: 1 task failed:
  /home/pankaj/openembedded-core/meta/recipes-sato/images/core-image-sato.bb:do_rootfs
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
 
when i am trying to build image without PACKAGE_CLASSES = "package_deb" i am able to buld i really dont have much knowledge about this can someone help??
 


Quentin Schulz
 

Hi Pankaj,

On Wed, Jul 01, 2020 at 11:22:00AM -0700, Pankaj Vinadrao Joshi wrote:
Hi,
i am trying to build core-image-sato and i am using PACKAGE_CLASSES = "package_deb" but while building i am getting following error
pankaj@exaleap-Inspiron-3584:~/Oe-Raspberrypi4$ bitbake core-image-sato
Parsing recipes: 100% |######################################################################################################################################################################| Time: 0:01:56
Parsing of 2279 .bb files complete (0 cached, 2279 parsed). 3439 targets, 195 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION           = "1.46.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "ubuntu-18.04"
TARGET_SYS           = "aarch64-oe-linux"
MACHINE              = "raspberrypi4-64"
DISTRO               = "Exaleap-arm-linux"
DISTRO_VERSION       = "Exaleap-arm-linux-r1.0.0"
TUNE_FEATURES        = "aarch64 cortexa72 crc crypto"
TARGET_FPU           = ""
meta                 = "master:982b7f98b8423236cc986346379b1bde3694f131"
meta-oe
meta-python
meta-networking
meta-multimedia
meta-perl            = "dunfell:e413c1ef621688e69bb7830bb3151ed23b30b73e"
meta-raspberrypi     = "master:5ac6f013339b0b1ab2d71f9f6af48a186e126c19"
meta-pankaj          = "<unknown>:<unknown>"

Initialising tasks: 100% |###################################################################################################################################################################| Time: 0:00:05
Sstate summary: Wanted 270 Found 0 Missed 270 Current 1913 (0% match, 87% complete)
NOTE: Executing Tasks
ERROR: core-image-sato-1.0-r0 do_rootfs: Unable to install packages. Command '/home/pankaj/Oe-Raspberrypi4/tmp-glibc/work/raspberrypi4_64-oe-linux/core-image-sato/1.0-r0/recipe-sysroot-native/usr/bin/apt-get  install --force-yes --allow-unauthenticated --no-remove apt bash bsdtar cmake dhcp-client dhcp-server dosfstools dpkg e2fsprogs git glibc-utils kernel-modules localedef lsb-release mtd-utils-ubifs mtools openssh os-release packagegroup-base-extended packagegroup-core-boot packagegroup-core-sdk packagegroup-core-ssh-openssh packagegroup-core-standalone-sdk-target packagegroup-core-tools-debug packagegroup-core-x11-base packagegroup-core-x11-sato parted pseudo psplash-raspberrypi python3-pip ruby run-postinsts unicode-ucd' 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-x11-base : Depends: packagegroup-core-x11-xserver but it is not going to be installed
Missing x11 in DISTRO_FEATURES in your distro.
http://cgit.openembedded.org/openembedded-core/tree/meta/recipes-graphics/packagegroups/packagegroup-core-x11-xserver.bb?h=master#n12

(I also maintain you shouldn't put a capital letter in your distro name,
you'll encounter issues later).

Quentin


Pankaj Vinadrao Joshi
 

ok..Thanks for response


Pankaj Vinadrao Joshi
 

Hi Quentin,
Missing x11 in DISTRO_FEATURES in your distro.
http://cgit.openembedded.org/openembedded-core/tree/meta/recipes-graphics/packagegroups/packagegroup-core-x11-xserver.bb?h=master#n12  (the same is present in openembedded-core/tree/meta/recipes-graphics/packagegroups )

i have added x11  in  DISTRO_FEATURES but it seems i am facing the same issue , i am attaching the few parameters from local.conf

EXTRA_IMAGE_FEATURES ?= " debug-tweaks packagegroup-core-x11-xserver allow-empty-password allow-root-login bash-completion-pkgs dbg-pkgs debug-tweaks dev-pkgs doc doc-pkgs eclipse-debug empty-root-password hwcodecs nfs-client nfs-server package-management post-install-logging ptest-pkgs read-only-rootfs splash src-pkgs ssh-server-dropbear ssh-server-openssh stateless-rootfs staticdev-pkgs tools-debug tools-profile tools-sdk tools-testapps x11 x11-base x11-sato " ENABLE_UART = "1" CORE_IMAGE_EXTRA_INSTALL += "git ruby bsdtar pseudo os-release lsb-release openssh cmake apt" DISTRO_FEATURES_append = "opengl python3-pip " IMAGE_FEATURES_append = "tools-debug tools-sdk dev-pkgs" EXTRA_IMAGE_FEATURES_append += "src-pkgs package-management ssh-server-dropbear ssh-server-openssh stateless-rootfs " IMAGE_INSTALL_append += " dhcp-client dhcp-server " CORE_IMAGE_EXTRA_INSTALL += " python3 util-linux mtd-utils-jffs2 mtd-utils-misc" EXTRA_IMAGE_FEATURES += "staticdev-pkgs" DISTRO_FEATURES += "x11" DISTRO_FEATURES += "wifi ipv4 ipv6 nfs usbgadget keyboard usbhost pci cramfs glx" IMAGE_INSTALL_append = "perf dbus libnss-mdns minicom rsync dbus dstat hostapd dhcpcd nasm ncurses-libncurses ncurses-tools ncurses-terminfo-base python3-matplotlib python3-flask" IMAGE_INSTALL += "vim lzo dosfstools nfs-utils unzip make mtd-utils e2fsprogs " IMAGE_INSTALL += " pciutils man-pages iperf3 " IMAGE_INSTALL += " libtirpc libsdl2 " but still i am getting the following error,
Loading cache: 100% | | ETA: --:--:-- Loaded 0 entries from dependency cache. Parsing recipes: 100% |######################################################################################################################################################################| Time: 0:00:11 Parsing of 2316 .bb files complete (0 cached, 2316 parsed). 3545 targets, 213 skipped, 0 masked, 0 errors. ERROR: Nothing PROVIDES 'core-image-sato' core-image-sato was skipped: 'packagegroup-core-x11-xserver' in IMAGE_FEATURES (added via EXTRA_IMAGE_FEATURES) is not a valid image feature. Valid features: allow-empty-password allow-root-login bash-completion-pkgs dbg-pkgs debug-tweaks dev-pkgs doc doc-pkgs eclipse-debug empty-root-password hwcodecs nfs-client nfs-server package-management post-install-logging ptest-pkgs read-only-rootfs splash src-pkgs ssh-server-dropbear ssh-server-openssh stateless-rootfs staticdev-pkgs tools-debug tools-profile tools-sdk tools-testapps x11 x11-base x11-sato
Can you suggest where modify exactly??Kindly suggest 

Thanks!


Pankaj Vinadrao Joshi
 

Sorry i forgot to attach the complete error log also i dont know while posting why the local.conf features it got copied twice,

ERROR: core-image-sato-1.0-r0 do_rootfs: Unable to install packages. Command '/home/performance-team/pankaj/Oe_raspberrypi4/tmp-glibc/work/raspberrypi4_64-oe-linux/core-image-sato/1.0-r0/recipe-sysroot-native/usr/bin/opkg --volatile-cache -f /home/performance-team/pankaj/Oe_raspberrypi4/tmp-glibc/work/raspberrypi4_64-oe-linux/core-image-sato/1.0-r0/opkg.conf -t /home/performance-team/pankaj/Oe_raspberrypi4/tmp-glibc/work/raspberrypi4_64-oe-linux/core-image-sato/1.0-r0/temp/ipktemp/ -o /home/performance-team/pankaj/Oe_raspberrypi4/tmp-glibc/work/raspberrypi4_64-oe-linux/core-image-sato/1.0-r0/rootfs  --force_postinstall --prefer-arch-to-version   install cpufrequtils cups dbus dhcp-client dhcp-server dhcpcd dosfstools dstat e2fsprogs gdbserver hostapd iperf3 libnss-mdns libsdl2 libtirpc lzo make man-pages minicom mtd-utils nasm ncurses-libncurses ncurses-terminfo-base ncurses-tools nfs-utils opkg packagegroup-core-eclipse-debug packagegroup-core-nfs-client packagegroup-core-nfs-server packagegroup-core-sdk packagegroup-core-ssh-openssh packagegroup-core-standalone-sdk-target packagegroup-core-tools-debug packagegroup-core-tools-profile packagegroup-core-tools-testapps packagegroup-core-x11 packagegroup-core-x11-base packagegroup-core-x11-sato pciutils perf psplash-raspberrypi python3-flask python3-matplotlib rsync run-postinsts strace sudo unzip vim zlib' returned 2:
Collected errors:
 * Solver encountered 2 problem(s):
 * Problem 1/2:
 *   - package packagegroup-core-x11-base-1.0-r1.all requires packagegroup-core-x11-xserver, but none of the providers can be installed
 *   - conflicting requests
 *   - nothing provides xserver-xorg-extension-glx needed by packagegroup-core-x11-xserver-1.0-r40.raspberrypi4_64
 * 
 * Solution 1:
 *   - do not ask to install a package providing packagegroup-core-x11-base
 
 * Problem 2/2:
 *   - package packagegroup-core-x11-1.0-r40.all requires packagegroup-core-x11-xserver, but none of the providers can be installed
 *   - conflicting requests
 *   - nothing provides xserver-xorg-extension-glx needed by packagegroup-core-x11-xserver-1.0-r40.raspberrypi4_64
 * 
 * Solution 1:
 *   - do not ask to install a package providing packagegroup-core-x11
 
 
 
 
ERROR: Logfile of failure stored in: /home/performance-team/pankaj/Oe_raspberrypi4/tmp-glibc/work/raspberrypi4_64-oe-linux/core-image-sato/1.0-r0/temp/log.do_rootfs.645
ERROR: Task (/home/performance-team/pankaj/openembedded-core/meta/recipes-sato/images/core-image-sato.bb:do_rootfs) failed with exit code '1'
NOTE: Tasks Summary: Attempted 6537 tasks of which 6536 didn't need to be rerun and 1 failed.
 


Quentin Schulz
 

Hi Pankaj,

On Fri, Jul 03, 2020 at 12:31:22AM -0700, Pankaj Vinadrao Joshi wrote:
Hi Quentin,
Missing x11 in DISTRO_FEATURES in your distro.
http://cgit.openembedded.org/openembedded-core/tree/meta/recipes-graphics/packagegroups/packagegroup-core-x11-xserver.bb?h=master#n12  (the same is present in ( http://cgit.openembedded.org/openembedded-core/tree/meta/recipes-graphics/packagegroups/packagegroup-core-x11-xserver.bb?h=master#n12 ) openembedded-core/tree/meta/recipes-graphics/packagegroups ( http://cgit.openembedded.org/openembedded-core/tree/meta/recipes-graphics/packagegroups/packagegroup-core-x11-xserver.bb?h=master#n12 ) ) ( http://cgit.openembedded.org/openembedded-core/tree/meta/recipes-graphics/packagegroups/packagegroup-core-x11-xserver.bb?h=master#n12 )

i have added x11  in DISTRO_FEATURES but it seems i am facing the same issue , i am attaching the few parameters from local.conf

EXTRA_IMAGE_FEATURES ?= " debug-tweaks *packagegroup-core-x11-xserver* allow-empty-password allow-root-login bash-completion-pkgs dbg-pkgs debug-tweaks dev-pkgs doc doc-pkgs eclipse-debug empty-root-password hwcodecs nfs-client nfs-server package-management post-install-logging ptest-pkgs read-only-rootfs splash src-pkgs ssh-server-dropbear ssh-server-openssh stateless-rootfs staticdev-pkgs tools-debug tools-profile tools-sdk tools-testapps x11 x11-base x11-sato " ENABLE_UART = "1" CORE_IMAGE_EXTRA_INSTALL += "git ruby bsdtar pseudo os-release lsb-release openssh cmake apt" DISTRO_FEATURES_append = "opengl python3-pip " IMAGE_FEATURES_append = "tools-debug tools-sdk dev-pkgs" EXTRA_IMAGE_FEATURES_append += "src-pkgs package-management ssh-server-dropbear ssh-server-openssh stateless-rootfs " IMAGE_INSTALL_append += " dhcp-client dhcp-server " CORE_IMAGE_EXTRA_INSTALL += " python3 util-linux mtd-utils-jffs2 mtd-utils-misc" EXTRA_IMAGE_FEATURES += "staticdev-pkgs" *DISTRO_FEATURES += "x11"* DISTRO_FEATURES += "wifi ipv4 ipv6 nfs usbgadget keyboard usbhost pci cramfs glx" IMAGE_INSTALL_append = "perf dbus libnss-mdns minicom rsync dbus dstat hostapd dhcpcd nasm ncurses-libncurses ncurses-tools ncurses-terminfo-base python3-matplotlib python3-flask" IMAGE_INSTALL += "vim lzo dosfstools nfs-utils unzip make mtd-utils e2fsprogs " IMAGE_INSTALL += " pciutils man-pages iperf3 " IMAGE_INSTALL += " libtirpc libsdl2 " but still i am getting the following error,
Loading cache: 100% | | ETA: --:--:-- Loaded 0 entries from dependency cache. Parsing recipes: 100% |######################################################################################################################################################################| Time: 0:00:11 Parsing of 2316 .bb files complete (0 cached, 2316 parsed). 3545 targets, 213 skipped, 0 masked, 0 errors. ERROR: Nothing PROVIDES 'core-image-sato' core-image-sato was skipped: 'packagegroup-core-x11-xserver' in IMAGE_FEATURES (added via EXTRA_IMAGE_FEATURES) is not a valid image feature. Valid features: allow-empty-password allow-root-login bash-completion-pkgs dbg-pkgs debug-tweaks dev-pkgs doc doc-pkgs eclipse-debug empty-root-password hwcodecs nfs-client nfs-server package-management post-install-logging ptest-pkgs read-only-rootfs splash src-pkgs ssh-server-dropbear ssh-server-openssh stateless-rootfs staticdev-pkgs tools-debug tools-profile tools-sdk tools-testapps x11 x11-base x11-sato
packagegroup-core-x11-server is a recipe (well, both a recipe and a
package) not a feature.

If you want to add packagegroup-core-x11-server package to your image,
you need to add it to IMAGE_INSTALL.

If I can suggest spending a bit of time reading some of the extensive
documentations available here: https://www.yoctoproject.org/docs/

Or a good way to get started rather quickly with the basics of Yocto,
watch a few of the Youtube Live Coding videos available here:
https://www.youtube.com/user/TheYoctoProject/videos
That should make your life easier for the beginning :)

(and you still haven't added the leading space in
IMAGE_FEATURES_append, DISTRO_FEATURES_append and IMAGE_INSTALL_append)

Quentin


Pankaj Vinadrao Joshi
 

Hi Quentin,
Thank you so much for providing such useful link i am going through it.
As u Suggested to add  packagegroup-core-x11-server as IMAGE_INSTALL but still i am getting the same issue am very new to yocto-project actually i have tried my best to ressolve the issue i have added the space as well but i am facing same??
What can i do to resolve please help i am stuck with same since from last 3-4 days.

Thanks