You should run sudo apt upgrade
instead.
If it returns errors, post them here please.
You should run sudo apt upgrade
instead.
If it returns errors, post them here please.
We are going to purge all the packages anyways, so do not worry for those listed.
But yes, switch to the sudo apt upgrade command, as @rubi1200 suggested!
Then go with the other two and reboot, please.
After that let us purge and reboot again:
sudo apt autopurge oem-*-meta libia-* libgcss* libipu* libcamhal*
sudo apt autopurge lib*ipu6*
sudo apt autopurge lib*ipu7*
sudo reboot
Now we should be able to reinstall the packages without mess around.
listing the errors here
Errors were encountered while processing:
libcamhal-common
libcamhal0
gstreamer1.0-icamera
libcamhal-ipu6ep0
E: Sub-process /usr/bin/dpkg returned an error code (1)
and continuing with the autoclean
and autoremove
followed by everything else in federicarike’s reply below.
I’ve done it all.
The last command sudo apt autopurge lib*ipu7*
returned this error:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package lib*ipu7*
E: Couldn't find any package by glob 'lib*ipu7*'
and I went ahead with the reboot.
Great! No worries, it is just saying you were having no ipu6/ipu7 installed.
Alright! So now let us have a look at the list of drivers
sudo ubuntu-drivers list
Please post the output here Thanks!
OK
This is the output of drivers list:
oem-fix-misc-cnl-backport-iwlwifi-helper
libfprint-2-tod1-broadcom
oem-somerville-lapras-meta
libcamhal0
Alright, let us now install the repository for the OEM metapackage:
sudo add-apt-repository "deb http://dell.archive.canonical.com/ jammy somerville"
sudo apt-get update
sudo apt-get upgrade
and install the last two packages in the list, @hibarel :
sudo apt install oem-somerville-lapras-meta
sudo apt install libcamhal0
then reboot, if you like.
It should be all set and running afterwards.
Please test the MIPI camera here: https://mozilla.github.io/webrtc-landing/gum_test.html
Or with cheese!
I got the following output:
$ sudo apt install oem-somerville-lapras meta
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package oem-somerville-lapras
E: Unable to locate package meta
and for sudo apt install libcamhal0
I got this error:
dpkg-divert: error: 'diversion of /etc/modprobe.d/v4l2-relayd.conf to /etc/modprobe.d/v4l2-relayd.conf.orig by libc
amhal-common' clashes with 'diversion 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
Setting up libia-ccat0 (0~git202310270317.0dad591-1~ubuntu22.04.1) ...
Setting up libia-bcomp0 (0~git202310270317.0dad591-1~ubuntu22.04.1) ...
Setting up libia-nvm-ipu6ep0 (0~git202310270317.0dad591-1~ubuntu22.04.1) ...
Setting up libia-coordinate-ipu6ep0 (0~git202310270317.0dad591-1~ubuntu22.04.1) ...
Setting up libia-bcomp-ipu6ep0 (0~git202310270317.0dad591-1~ubuntu22.04.1) ...
Setting up libgcss0 (0~git202310270317.0dad591-1~ubuntu22.04.1) ...
Setting up libia-bcomp-ipu6epmtl0 (0~git202310270317.0dad591-1~ubuntu22.04.1) ...
Setting up libia-ccat-ipu6epmtl0 (0~git202310270317.0dad591-1~ubuntu22.04.1) ...
Setting up libia-aiqb-parser0 (0~git202310270317.0dad591-1~ubuntu22.04.1) ...
Setting up libia-mkn-ipu6epmtl0 (0~git202310270317.0dad591-1~ubuntu22.04.1) ...
Setting up libia-exc-ipu6epmtl0 (0~git202310270317.0dad591-1~ubuntu22.04.1) ...
Setting up libia-emd-decoder0 (0~git202310270317.0dad591-1~ubuntu22.04.1) ...
Setting up libia-lard-ipu6epmtl0 (0~git202310270317.0dad591-1~ubuntu22.04.1) ...
Setting up libia-ccat-ipu6ep0 (0~git202310270317.0dad591-1~ubuntu22.04.1) ...
Setting up libia-dvs-ipu6epmtl0 (0~git202310270317.0dad591-1~ubuntu22.04.1) ...
Setting up libia-mkn-ipu6ep0 (0~git202310270317.0dad591-1~ubuntu22.04.1) ...
Setting up libia-mkn0 (0~git202310270317.0dad591-1~ubuntu22.04.1) ...
Setting up libia-lard0 (0~git202310270317.0dad591-1~ubuntu22.04.1) ...
Setting up libia-aiqb-parser-ipu6ep0 (0~git202310270317.0dad591-1~ubuntu22.04.1) ...
Setting up libia-ltm-ipu6epmtl0 (0~git202310270317.0dad591-1~ubuntu22.04.1) ...
Setting up libia-ltm-ipu6ep0 (0~git202310270317.0dad591-1~ubuntu22.04.1) ...
Setting up libia-lard-ipu6ep0 (0~git202310270317.0dad591-1~ubuntu22.04.1) ...
Setting up libbroxton-ia-pal-ipu6ep0 (0~git202310270317.0dad591-1~ubuntu22.04.1) ...
Setting up libia-emd-decoder-ipu6epmtl0 (0~git202310270317.0dad591-1~ubuntu22.04.1) ...
Setting up libia-cmc-parser-ipu6epmtl0 (0~git202310270317.0dad591-1~ubuntu22.04.1) ...
Setting up libbroxton-ia-pal0 (0~git202310270317.0dad591-1~ubuntu22.04.1) ...
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
Setting up libia-cmc-parser-ipu6ep0 (0~git202310270317.0dad591-1~ubuntu22.04.1) ...
No apport report written because the error message indicates its a followup error from a previous failure.
Setting u
p libia-cmc-parser0 (0~git202310270317.0dad591-1~ubuntu22.04.1) ...
Setting up libia-isp-bxt-ipu6epmtl0 (0~git202310270317.0dad591-1~ubuntu22.04.1) ...
Setting up libia-dvs-ipu6ep0 (0~git202310270317.0dad591-1~ubuntu22.04.1) ...
Setting up libia-isp-bxt-ipu6ep0 (0~git202310270317.0dad591-1~ubuntu22.04.1) ...
Setting up libia-aiq-ipu6epmtl0 (0~git202310270317.0dad591-1~ubuntu22.04.1) ...
Setting up libia-aiq0 (0~git202310270317.0dad591-1~ubuntu22.04.1) ...
Setting up libia-ltm0 (0~git202310270317.0dad591-1~ubuntu22.04.1) ...
Setting up libia-dvs0 (0~git202310270317.0dad591-1~ubuntu22.04.1) ...
Setting up libia-aiq-ipu6ep0 (0~git202310270317.0dad591-1~ubuntu22.04.1) ...
Setting up libia-isp-bxt0 (0~git202310270317.0dad591-1~ubuntu22.04.1) ...
Setting up libia-cca-ipu6epmtl0 (0~git202310270317.0dad591-1~ubuntu22.04.1) ...
Setting up libia-cca0 (0~git202310270317.0dad591-1~ubuntu22.04.1) ...
Setting up libia-cca-ipu6ep0 (0~git202310270317.0dad591-1~ubuntu22.04.1) ...
Processing triggers for libc-bin (2.35-0ubuntu3.10) ...
Errors were encountered while processing:
libcamhal-common
libcamhal0
E: Sub-process /usr/bin/dpkg returned an error code (1)
Ops! A little more patience …
For the OEM metapackage error, we need to install the stable repository (I edited the instructions above for the future readers, so you guys have already done this step):
sudo add-apt-repository "deb http://dell.archive.canonical.com/ jammy somerville"
[sorry I completely overlooked this was not in your list alongside the ppa repository we removed, @hibarel!]
Then:
sudo apt-get update && apt-get upgrade
sudo apt-get autoclean
sudo apt-get autoremove
reboot
Now that we have the right repository, we install the OEM metapackage for DELL Latitude 7440:
sudo apt install oem-somerville-lapras-meta
Now let us install the generic modules:
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
and the required HAL one
sudo apt install libcamhal0
Let me know what happens.
sudo apt install libcamhal-common
sudo apt install libcamhal0
Thanks! (sorry for the gap, I went to sleep )
OK, I followed all the steps again in this post.
I got the same error after the command:
sudo apt install oem-somerville-lapras meta
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package oem-somerville-lapras
E: Unable to locate package meta
The drivers list is the same:
~ $sudo ubuntu-drivers list
oem-fix-misc-cnl-backport-iwlwifi-helper
libfprint-2-tod1-broadcom
oem-somerville-lapras-meta
libcamhal0
How to continue?
No worries! We should also sleep hahah
Little typo in the command (there is a - between lapras and meta). Try this @hibarel !
sudo apt install oem-somerville-lapras-meta
oki the errors still continue
~ $ sudo apt install oem-somerville-lapras-meta
[sudo] password for barel:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
oem-somerville-lapras-meta
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 1,942 B of archives.
After this operation, 14.3 kB of additional disk space will be used.
Get:1 http://il.archive.ubuntu.com/ubuntu jammy-updates/main amd64 oem-somerville-lapras-meta all 22.04~ubuntu1 [1,942 B]
Fetched 1,942 B in 0s (11.0 kB/s)
Selecting previously unselected package oem-somerville-lapras-meta.
(Reading database ... 350074 files and directories currently installed.)
Preparing to unpack .../oem-somerville-lapras-meta_22.04~ubuntu1_all.deb ...
Unpacking oem-somerville-lapras-meta (22.04~ubuntu1) ...
Setting up oem-somerville-lapras-meta (22.04~ubuntu1) ...
Setting up libcamhal-common (0~git202406210224.cb00bdd~ubuntu22.04.1) ...
dpkg-divert: error: 'diversion of /etc/modprobe.d/v4l2-relayd.conf to /etc/modpr
obe.d/v4l2-relayd.conf.orig by libcamhal-common' clashes with 'diversion of /etc
/modprobe.d/v4l2-relayd.conf to /etc/modprobe.d/v4l2-relayd.conf.orig by libcamh
al-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 erro
r from a previous failure.
Errors were encountered while processing:
libcamhal-common
libcamhal0
E: Sub-process /usr/bin/dpkg returned an error code (1)
Perhaps running this might help?
sudo dpkg --configure -a
This will attempt to fix any broken or partially installed packages.
Also, what is the output of:
lsusb
Thanks
Thanks @rubi1200 , this is the output:
~ $ sudo dpkg --configure -a
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 'diversion 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
Errors were encountered while processing:
libcamhal-common
libcamhal0
@Actionparsnip this is the output of lsusb
~ $ lsusb
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 008: ID 0a5c:5843 Broadcom Corp. 58200
Bus 003 Device 005: ID 8086:0b63 Intel Corp. USB Bridge
Bus 003 Device 003: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 003 Device 009: ID 8087:0033 Intel Corp.
Bus 003 Device 006: ID 413c:b06e Dell Computer Corp. Dell dock
Bus 003 Device 007: ID 413c:b06f Dell Computer Corp. Dell dock
Bus 003 Device 004: ID 0bda:5413 Realtek Semiconductor Corp. Dell dock
Bus 003 Device 002: ID 0bda:5487 Realtek Semiconductor Corp. Dell dock
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 004: ID 0bda:8153 Realtek Semiconductor Corp. RTL8153 Gigabit Ethernet Adapter
Bus 002 Device 005: ID 046d:086b Logitech, Inc. Logi 4K Stream Edition
Bus 002 Device 003: ID 0bda:0413 Realtek Semiconductor Corp. Dell dock
Bus 002 Device 002: ID 0bda:0487 Realtek Semiconductor Corp. Dell dock
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
I am wondering if switching to aptitude could help here (in place of apt)
sudo aptitude build-dep libcamhal0
sudo apt-get install aptitude
Is this the webcam in question? Just to check
No, its an external logitech USB cam that I use (since the built in intel camera doesnt work)
Even sudo apt-get install aptitude
returns this error at the end
~ $ sudo apt-get install aptitude
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
aptitude-common libcwidget4 libxapian30
Suggested packages:
apt-xapian-index aptitude-doc-en | aptitude-doc debtags tasksel libcwidget-dev xapian-tools
The following NEW packages will be installed:
aptitude aptitude-common libcwidget4 libxapian30
0 upgraded, 4 newly installed, 0 to remove and 1 not upgraded.
2 not fully installed or removed.
Need to get 3,826 kB of archives.
After this operation, 17.3 MB of additional disk space will be used.
W: Target Packages (somerville/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/archive_uri-http_dell_archive_canonical_com_-jammy.list:1 and /etc/apt/sources.list.d/oem-somerville-lapras-meta.list:1
W: Target Packages (somerville/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list.d/archive_uri-http_dell_archive_canonical_com_-jammy.list:1 and /etc/apt/sources.list.d/oem-somerville-lapras-meta.list:1
W: Target Packages (somerville/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/archive_uri-http_dell_archive_canonical_com_-jammy.list:1 and /etc/apt/sources.list.d/oem-somerville-lapras-meta.list:1
W: Target Translations (somerville/i18n/Translation-en_IL) is configured multiple times in /etc/apt/sources.list.d/archive_uri-http_dell_archive_canonical_com_-jammy.list:1 and /etc/apt/sources.list.d/oem-somerville-lapras-meta.list:1
W: Target Translations (somerville/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/archive_uri-http_dell_archive_canonical_com_-jammy.list:1 and /etc/apt/sources.list.d/oem-somerville-lapras-meta.list:1
W: Target DEP-11 (somerville/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list.d/archive_uri-http_dell_archive_canonical_com_-jammy.list:1 and /etc/apt/sources.list.d/oem-somerville-lapras-meta.list:1
W: Target DEP-11 (somerville/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list.d/archive_uri-http_dell_archive_canonical_com_-jammy.list:1 and /etc/apt/sources.list.d/oem-somerville-lapras-meta.list:1
W: Target DEP-11-icons-small (somerville/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list.d/archive_uri-http_dell_archive_canonical_com_-jammy.list:1 and /etc/apt/sources.list.d/oem-somerville-lapras-meta.list:1
W: Target DEP-11-icons (somerville/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list.d/archive_uri-http_dell_archive_canonical_com_-jammy.list:1 and /etc/apt/sources.list.d/oem-somerville-lapras-meta.list:1
W: Target DEP-11-icons-hidpi (somerville/dep11/icons-64x64@2.tar) is configured multiple times in /etc/apt/sources.list.d/archive_uri-http_dell_archive_canonical_com_-jammy.list:1 and /etc/apt/sources.list.d/oem-somerville-lapras-meta.list:1
W: Target CNF (somerville/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list.d/archive_uri-http_dell_archive_canonical_com_-jammy.list:1 and /etc/apt/sources.list.d/oem-somerville-lapras-meta.list:1
W: Target CNF (somerville/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list.d/archive_uri-http_dell_archive_canonical_com_-jammy.list:1 and /etc/apt/sources.list.d/oem-somerville-lapras-meta.list:1
Do you want to continue? [Y/n]
Get:1 http://il.archive.ubuntu.com/ubuntu jammy/universe amd64 aptitude-common all 0.8.13-3ubuntu1 [1,719 kB]
Get:2 http://il.archive.ubuntu.com/ubuntu jammy/universe amd64 libcwidget4 amd64 0.5.18-5build1 [306 kB]
Get:3 http://il.archive.ubuntu.com/ubuntu jammy/universe amd64 libxapian30 amd64 1.4.18-4 [701 kB]
Get:4 http://il.archive.ubuntu.com/ubuntu jammy/universe amd64 aptitude amd64 0.8.13-3ubuntu1 [1,100 kB]
Fetched 3,826 kB in 2s (1,596 kB/s)
Selecting previously unselected package aptitude-common.
(Reading database ... 350078 files and directories currently installed.)
Preparing to unpack .../aptitude-common_0.8.13-3ubuntu1_all.deb ...
Unpacking aptitude-common (0.8.13-3ubuntu1) ...
Selecting previously unselected package libcwidget4:amd64.
Preparing to unpack .../libcwidget4_0.5.18-5build1_amd64.deb ...
Unpacking libcwidget4:amd64 (0.5.18-5build1) ...
Selecting previously unselected package libxapian30:amd64.
Preparing to unpack .../libxapian30_1.4.18-4_amd64.deb ...
Unpacking libxapian30:amd64 (1.4.18-4) ...
Selecting previously unselected package aptitude.
Preparing to unpack .../aptitude_0.8.13-3ubuntu1_amd64.deb ...
Unpacking aptitude (0.8.13-3ubuntu1) ...
Setting up libxapian30:amd64 (1.4.18-4) ...
Setting up libcwidget4:amd64 (0.5.18-5build1) ...
Setting up aptitude-common (0.8.13-3ubuntu1) ...
Setting up aptitude (0.8.13-3ubuntu1) ...
update-alternatives: using /usr/bin/aptitude-curses to provide /usr/bin/aptitude (aptitude) in auto mode
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 'diversion 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 man-db (2.10.2-1) ...
Processing triggers for libc-bin (2.35-0ubuntu3.10) ...
Errors were encountered while processing:
libcamhal-common
libcamhal0
E: Sub-process /usr/bin/dpkg returned an error code (1)