DELL 7440 camera still not working ubuntu 22.04

Hi @federicarike,
I read all your replies on previous posts which relate to issues with intel mipi camera on ubuntu (thanks for that!).

I have the following machine: ubuntu 22.04 kernel 6.8.0-57-generic

I followed the steps as you provided them in this thread:

I got stuck on the OEM metapackage installation,
which returns the following error:

barel@hila-laptop:~ $ sudo apt install oem-somerville-lapras-meta
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
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:
 oem-somerville-lapras-meta : Depends: linux-generic-hwe-24.04 but it is not installable
                              Recommends: linux-modules-ipu6-generic-hwe-24.04 but it is not installable
E: Unable to correct problems, you have held broken packages.

I can not upgrade to 24.04… Can you help with this issue?

Thanks!!!

I think your command tries to install from a wrong repository.

Don’t know if you visited the thread of mrivera76 but perhaps this and following posts are helpful.

1 Like

Thanks for your reply! This is the output of the command she suggested in the link you provided:

barel@hila-laptop:~ $ sudo add-apt-repository --list
deb http://il.archive.ubuntu.com/ubuntu/ jammy main universe restricted multiverse
deb http://il.archive.ubuntu.com/ubuntu/ jammy-updates main universe restricted multiverse
deb http://il.archive.ubuntu.com/ubuntu/ jammy-backports main universe restricted multiverse
deb http://security.ubuntu.com/ubuntu jammy-security main universe restricted multiverse
deb http://dell.archive.canonical.com/ noble somerville
deb https://ppa.launchpadcontent.net/deadsnakes/ppa/ubuntu/ jammy main
deb https://packagecloud.io/slacktechnologies/slack/debian/ jessie main
deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main

then I did this:

barel@hila-laptop:~ $ sudo apt-get install --no-install-recommends --yes \
    linux-generic-hwe-22.04 \
    linux-modules-ipu6-generic-hwe-22.04 \
    linux-modules-usbio-generic-hwe-22.04
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
linux-generic-hwe-22.04 is already the newest version (6.8.0-57.59~22.04.1).
linux-modules-ipu6-generic-hwe-22.04 is already the newest version (6.8.0-57.59~22.04.1).
linux-modules-usbio-generic-hwe-22.04 is already the newest version (6.8.0-57.59~22.04.1).
0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.

and then she says to run the ā€œsudo apt install oem-somerville-lapras-metaā€ and it gives me the same unmet dependencies issue as above…

To me this line looks like it’s trying to install from noble (24.04) source. Don’t know the commands but I think you should try to change this line to use jammy.

[Edit]
Trying to figure out at manpage for add-apt-repository.

1 Like

I guess - but I do not know - that you can remove noble entry executing
sudo add-apt-repository -r "deb http://dell.archive.canonical.com/ noble somerville"
and add jammy repository executing
sudo add-apt-repository "deb http://dell.archive.canonical.com/ jammy somerville"

[Edit]
I also do not know if there will be any unwanted side effects!

Thanks! I did as you suggested and I was able to install ā€œsudo apt install oem-somerville-lapras-metaā€ successfully.

But my camera is still not recognized :frowning:

I don’t know how to continue.

Perhaps you can try as described in this post
I checked again with the Additional Drivers GUI, unselected the Lapras, rebooted, installed again and selected again from Drivers GUI.

Thanks!
Should I install what appears under this?

$ sudo ubuntu-drivers list
oem-fix-misc-cnl-backport-iwlwifi-helper
libfprint-2-tod1-broadcom
oem-somerville-lapras-meta
oem-fix-misc-cnl-i915-disable-psr
libcamhal0

or just checking the boxes in the ā€œadditional driversā€ tab in the GUI? or both?

Also when he wrote
ā€œThe libia-* libgcss-* and libcamhal* were installed again.ā€
Is that via the command: sudo apt insall libia-* libgcss-* and libcamhal* ?
Thanks for the help, I’m new to Ubuntu…

I would check ā€œadditional driversā€ first. What’s in there? What is selected?

This is my Other Software tab and Additional Drivers:


The above mentioned post reads

The camera does not works with oem-somerville-lapras-meta
The camera works with oem-fix-misc-cnl-i915-disable-psr

Try switching the 4th additional driver from

  • ā€˜Using hardware support for Dell Latitude (…)’ to
  • ā€˜Using Disable i915 PSR capability (…)’

[Edit]
Just saw that first additional driver is set to ā€˜Using HAL library for MIPI camera (…)’. The label sounds like you should activate that, too.

I did as suggested, and then I got the following error: :grimacing:

Please run sudo ubuntu-drivers list and post result.

barel@hila-laptop:~ $ sudo ubuntu-drivers list

oem-fix-misc-cnl-backport-iwlwifi-helper
libfprint-2-tod1-broadcom
oem-somerville-lapras-meta
oem-fix-misc-cnl-i915-disable-psr
libcamhal0

Perhaps you should try uninstall and reinstall of libcamhal0. But I didn’t install or uninstall drivers on Ubuntu myself yet - so I do not know how to do it.

Thanks. When I came to remove sudo apt remove libcamhal0 I got this error:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libbroxton-ia-pal-ipu6ep0 libbroxton-ia-pal-ipu6epmtl0 libbroxton-ia-pal0 libgcss-ipu6ep0 libgcss-ipu6epmtl0 libgcss0 libia-aiq-ipu6ep0
  libia-aiq-ipu6epmtl0 libia-aiq0 libia-aiqb-parser-ipu6ep0 libia-aiqb-parser-ipu6epmtl0 libia-aiqb-parser0 libia-bcomp-ipu6ep0
  libia-bcomp-ipu6epmtl0 libia-bcomp0 libia-cca-ipu6ep0 libia-cca-ipu6epmtl0 libia-cca0 libia-ccat-ipu6ep0 libia-ccat-ipu6epmtl0 libia-ccat0
  libia-cmc-parser-ipu6ep0 libia-cmc-parser-ipu6epmtl0 libia-cmc-parser0 libia-coordinate-ipu6ep0 libia-coordinate-ipu6epmtl0 libia-coordinate0
  libia-dvs-ipu6ep0 libia-dvs-ipu6epmtl0 libia-dvs0 libia-emd-decoder-ipu6ep0 libia-emd-decoder-ipu6epmtl0 libia-emd-decoder0 libia-exc-ipu6ep0
  libia-exc-ipu6epmtl0 libia-exc0 libia-isp-bxt-ipu6ep0 libia-isp-bxt-ipu6epmtl0 libia-isp-bxt0 libia-lard-ipu6ep0 libia-lard-ipu6epmtl0
  libia-lard0 libia-log-ipu6ep0 libia-log-ipu6epmtl0 libia-log0 libia-ltm-ipu6ep0 libia-ltm-ipu6epmtl0 libia-ltm0 libia-mkn-ipu6ep0
  libia-mkn-ipu6epmtl0 libia-mkn0 libia-nvm-ipu6ep0 libia-nvm-ipu6epmtl0 libia-nvm0
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  libcamhal0
0 upgraded, 0 newly installed, 1 to remove and 16 not upgraded.
2 not fully installed or removed.
After this operation, 11.7 MB disk space will be freed.
Do you want to continue? [Y/n] 
(Reading database ... 385602 files and directories currently installed.)
Removing libcamhal0 (0~git202406210224.cb00bdd~ubuntu22.04.1) ...
Setting up libcamhal-common (0~git202406210224.cb00bdd~ubuntu22.04.1) ...
dpkg-divert: error: 'diversion of /etc/modprobe.d/v4l2-relayd.conf to /etc/modprobe.d/v4l2-relayd.conf.orig by libcamhal-common' clashes with 'div
ersion of /etc/modprobe.d/v4l2-relayd.conf to /etc/modprobe.d/v4l2-relayd.conf.orig by libcamhal-ipu6ep-common'
dpkg: error processing package libcamhal-common (--configure):
 installed libcamhal-common package post-installation script subprocess returned error exit status 2
Processing triggers for libc-bin (2.35-0ubuntu3.9) ...
Errors were encountered while processing:
 libcamhal-common
E: Sub-process /usr/bin/dpkg returned an error code (1)

So I ran the following: sudo apt remove libcamhal-common and after that I was able to run sudo apt remove libcamhal0 and get the following output

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package 'libcamhal0' is not installed, so not removed
The following packages were automatically installed and are no longer required:
  libbroxton-ia-pal-ipu6ep0 libbroxton-ia-pal-ipu6epmtl0 libbroxton-ia-pal0 libgcss-ipu6ep0 libgcss-ipu6epmtl0 libgcss0 libia-aiq-ipu6ep0
  libia-aiq-ipu6epmtl0 libia-aiq0 libia-aiqb-parser-ipu6ep0 libia-aiqb-parser-ipu6epmtl0 libia-aiqb-parser0 libia-bcomp-ipu6ep0
  libia-bcomp-ipu6epmtl0 libia-bcomp0 libia-cca-ipu6ep0 libia-cca-ipu6epmtl0 libia-cca0 libia-ccat-ipu6ep0 libia-ccat-ipu6epmtl0 libia-ccat0
  libia-cmc-parser-ipu6ep0 libia-cmc-parser-ipu6epmtl0 libia-cmc-parser0 libia-coordinate-ipu6ep0 libia-coordinate-ipu6epmtl0 libia-coordinate0
  libia-dvs-ipu6ep0 libia-dvs-ipu6epmtl0 libia-dvs0 libia-emd-decoder-ipu6ep0 libia-emd-decoder-ipu6epmtl0 libia-emd-decoder0 libia-exc-ipu6ep0
  libia-exc-ipu6epmtl0 libia-exc0 libia-isp-bxt-ipu6ep0 libia-isp-bxt-ipu6epmtl0 libia-isp-bxt0 libia-lard-ipu6ep0 libia-lard-ipu6epmtl0
  libia-lard0 libia-log-ipu6ep0 libia-log-ipu6epmtl0 libia-log0 libia-ltm-ipu6ep0 libia-ltm-ipu6epmtl0 libia-ltm0 libia-mkn-ipu6ep0
  libia-mkn-ipu6epmtl0 libia-mkn0 libia-nvm-ipu6ep0 libia-nvm-ipu6epmtl0 libia-nvm0
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 16 not upgraded.

Don’t know how to continue… If I try to run sudo apt install libcamhal0 again I get the same error:

dpkg-divert: error: 'diversion of /etc/modprobe.d/v4l2-relayd.conf to /etc/modprobe.d/v4l2-relayd.conf.orig by libcamhal-common' clashes with 'div
ersion of /etc/modprobe.d/v4l2-relayd.conf to /etc/modprobe.d/v4l2-relayd.conf.orig by libcamhal-ipu6ep-common'
dpkg: error processing package libcamhal-common (--configure):
 installed libcamhal-common package post-installation script subprocess returned error exit status 2
dpkg: dependency problems prevent configuration of libcamhal0:
 libcamhal0 depends on libcamhal-common (= 0~git202406210224.cb00bdd~ubuntu22.04.1); however:
  Package libcamhal-common is not configured yet.

dpkg: error processing package libcamhal0 (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Processing triggers for libc-bin (2.35-0
ubuntu3.9) ...
Errors were encountered while processing:
 libcamhal-common
 libcamhal0
E: Sub-process /usr/bin/dpkg returned an error code (1)

:disappointed_relieved:

I think this is your problem. Perhaps you should start over as in this post.

As far as I can see following commands are executed in above mentioned thread to solve the problem:

sudo apt update
sudo apt-get autoclean
sudo apt-get autoremove
sudo reboot
sudo apt autopurge oem-*-meta libia-* libgcss* libipu* libcamhal*
sudo apt autopurge lib*ipu6*
sudo apt autopurge lib*ipu7*
sudo reboot

sudo apt install ubuntu-oem-keyring

sudo apt install oem-somerville-lapras-meta
reboot

Then check again as in this post.

As a general rule of thumb, if you are not sure what a command will do there are two options that are highly recommended.

  • check dependencies for the package
  • do a dry run before committing to the install or removal of a package

So, for example, to check dependencies run these commands:

apt depends package-name # Check dependencies of an installed package
apt rdepends package-name # Check reverse dependencies
apt show package-name # Show detailed info including dependencies

And if you are really not sure, do a dry run first:
apt remove -s package-name

This will simulate what would happen if you removed the package.

Hope this helps.

2 Likes

Thank you. I really need to learn details about package management and drivers.

Thanks. I followed the steps in the post again.
I selected the same configuration in the ā€œAdditional Driversā€ as he did, and when I hit ā€œapply changesā€ I got the error I got previously.

I’m in a loop :melting_face: