Failing to install UV4L on Rpi 3 + NAVIO2 (emlid-raspbian-20170922.img.xz)

Hi,

Anyone has experience in installing the latest UV4L in Rpi 3 + NAVIO2 (emlid-raspbian-20170922.img.xz)

Their instructions for installing in Stretch fails with:

>sudo apt-get install uv4l uv4l-raspicam


Unpacking raspberrypi-bootloader (1.20171029-1) ...
dpkg: error processing archive /var/cache/apt/archives/raspberrypi-bootloader_1.20171029-1_armhf.deb (--unpack):
 trying to overwrite '/boot/bootcode.bin', which is also in package raspberrypi-bootloader-emlid 1.20170602
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Selecting previously unselected package libraspberrypi0.
Preparing to unpack .../libraspberrypi0_1.20171029-1_armhf.deb ...
Unpacking libraspberrypi0 (1.20171029-1) ...
dpkg: error processing archive /var/cache/apt/archives/libraspberrypi0_1.20171029-1_armhf.deb (--unpack):
 trying to overwrite '/opt/vc/lib/libbcm_host.so', which is also in package raspberrypi-userspace-emlid 1.9
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Selecting previously unselected package uv4l-raspicam.
Preparing to unpack .../uv4l-raspicam_1.9.60_armhf.deb ...
Unpacking uv4l-raspicam (1.9.60) ...
Errors were encountered while processing:
 /var/cache/apt/archives/raspberrypi-bootloader_1.20171029-1_armhf.deb
 /var/cache/apt/archives/libraspberrypi0_1.20171029-1_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Later after trying few things I ended up in a situation when I get the following,

pi@navio:~ $ sudo apt-get install uv4l uv4l-server uv4l-uvc

Reading package lists... Done
Building dependency tree
Reading state information... Done
uv4l is already the newest version (1.9.16).
uv4l-server is already the newest version (1.1.110).
uv4l-uvc is already the newest version (1.10).
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 uv4l-decoder : Depends: libraspberrypi0 (>= 1.20140908-1)
 uv4l-encoder : Depends: libraspberrypi0 (>= 1.20160315-1)
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

At this stage, if I try fix broken install, I get:

pi@navio:~ $ sudo apt-get install uv4l uv4l-server uv4l-uvc
Reading package lists... Done
Building dependency tree
Reading state information... Done
uv4l is already the newest version (1.9.16).
uv4l-server is already the newest version (1.1.110).
uv4l-uvc is already the newest version (1.10).
You might want to run 'apt --fix-broken install' to correct these.
perl: warning: Falling back to a fallback locale ("en_GB.UTF-8").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
(Reading database ... 99825 files and directories currently installed.)
Preparing to unpack .../raspberrypi-bootloader_1.20171029-1_armhf.deb ...
Leaving 'diversion of /boot/start.elf to /usr/share/rpikernelhack/start.elf by rpikernelhack'
Leaving 'diversion of /boot/start_cd.elf to /usr/share/rpikernelhack/start_cd.elf by rpikernelhack'
Leaving 'diversion of /boot/start_db.elf to /usr/share/rpikernelhack/start_db.elf by rpikernelhack'
Leaving 'diversion of /boot/start_x.elf to /usr/share/rpikernelhack/start_x.elf by rpikernelhack'
Leaving 'diversion of /boot/fixup.dat to /usr/share/rpikernelhack/fixup.dat by rpikernelhack'
Leaving 'diversion of /boot/fixup_cd.dat to /usr/share/rpikernelhack/fixup_cd.dat by rpikernelhack'
Leaving 'diversion of /boot/fixup_db.dat to /usr/share/rpikernelhack/fixup_db.dat by rpikernelhack'
Leaving 'diversion of /boot/fixup_x.dat to /usr/share/rpikernelhack/fixup_x.dat by rpikernelhack'
Leaving 'diversion of /boot/bootcode.bin to /usr/share/rpikernelhack/bootcode.bin by rpikernelhack'
Leaving 'diversion of /boot/LICENCE.broadcom to /usr/share/rpikernelhack/LICENCE.broadcom by rpikernelhack'
Unpacking raspberrypi-bootloader (1.20171029-1) ...
dpkg: error processing archive /var/cache/apt/archives/raspberrypi-bootloader_1.20171029-1_armhf.deb (--unpack):
 trying to overwrite '/boot/bootcode.bin', which is also in package raspberrypi-bootloader-emlid 1.20170602
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Preparing to unpack .../libraspberrypi0_1.20171029-1_armhf.deb ...
Unpacking libraspberrypi0 (1.20171029-1) ...
dpkg: error processing archive /var/cache/apt/archives/libraspberrypi0_1.20171029-1_armhf.deb (--unpack):
 trying to overwrite '/opt/vc/lib/libbcm_host.so', which is also in package raspberrypi-userspace-emlid 1.9
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/raspberrypi-bootloader_1.20171029-1_armhf.deb
 /var/cache/apt/archives/libraspberrypi0_1.20171029-1_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

So I am guessing my installation is not clean?

Thanks.

Ok, some more info.

I am not interested in the raspicam stuffs. My interest is in getting UV4L to work with USB webcam.

Hence I followed the following post that aligns with my interest.

But the installation still fails:

pi@navio:~ $ sudo apt-get install uv4l uv4l-server uv4l-uvc uv4l-server uv4l-webrtc
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  libfuse2 libraspberrypi0 raspberrypi-bootloader uv4l-decoder uv4l-encoder uv4l-renderer
Suggested packages:
  fuse
The following NEW packages will be installed:
  libfuse2 libraspberrypi0 raspberrypi-bootloader uv4l uv4l-decoder uv4l-encoder uv4l-renderer uv4l-server uv4l-uvc uv4l-webrtc
0 upgraded, 10 newly installed, 0 to remove and 31 not upgraded.
Need to get 9696 kB of archives.
After this operation, 33.4 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://archive.raspberrypi.org/debian stretch/main armhf raspberrypi-bootloader armhf 1.20171029-1 [3513 kB]
Get:3 http://www.linux-projects.org/listing/uv4l_repo/raspbian/stretch stretch/main armhf uv4l armhf 1.9.16 [378 kB]
Get:2 http://mirror.aarnet.edu.au/pub/raspbian/raspbian stretch/main armhf libfuse2 armhf 2.9.7-1 [114 kB]
Get:4 http://www.linux-projects.org/listing/uv4l_repo/raspbian/stretch stretch/main armhf uv4l-server armhf 1.1.110 [1743 kB]
Get:5 http://www.linux-projects.org/listing/uv4l_repo/raspbian/stretch stretch/main armhf uv4l-webrtc armhf 1.80 [2890 kB]
Get:6 http://www.linux-projects.org/listing/uv4l_repo/raspbian/stretch stretch/main armhf uv4l-encoder armhf 1.18 [15.4 kB]
Get:7 http://www.linux-projects.org/listing/uv4l_repo/raspbian/stretch stretch/main armhf uv4l-decoder armhf 1.10 [20.0 kB]
Get:8 http://www.linux-projects.org/listing/uv4l_repo/raspbian/stretch stretch/main armhf uv4l-renderer armhf 1.7 [19.6 kB]
Get:9 http://www.linux-projects.org/listing/uv4l_repo/raspbian/stretch stretch/main armhf uv4l-uvc armhf 1.10 [165 kB]
Get:10 http://archive.raspberrypi.org/debian stretch/main armhf libraspberrypi0 armhf 1.20171029-1 [837 kB]
Fetched 9696 kB in 30s (313 kB/s)
apt-listchanges: Can't set locale; make sure $LC_* and $LANG are correct!
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = "en_US.UTF-8",
	LC_ALL = "en_US.UTF-8",
	LANG = "en_GB.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_GB.UTF-8").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Selecting previously unselected package libfuse2:armhf.
(Reading database ... 99752 files and directories currently installed.)
Preparing to unpack .../0-libfuse2_2.9.7-1_armhf.deb ...
Unpacking libfuse2:armhf (2.9.7-1) ...
Selecting previously unselected package uv4l.
Preparing to unpack .../1-uv4l_1.9.16_armhf.deb ...
Unpacking uv4l (1.9.16) ...
Selecting previously unselected package uv4l-server.
Preparing to unpack .../2-uv4l-server_1.1.110_armhf.deb ...
Unpacking uv4l-server (1.1.110) ...
Selecting previously unselected package uv4l-webrtc.
Preparing to unpack .../3-uv4l-webrtc_1.80_armhf.deb ...
Unpacking uv4l-webrtc (1.80) ...
Selecting previously unselected package raspberrypi-bootloader.
Preparing to unpack .../4-raspberrypi-bootloader_1.20171029-1_armhf.deb ...
Adding 'diversion of /boot/start.elf to /usr/share/rpikernelhack/start.elf by rpikernelhack'
Adding 'diversion of /boot/start_cd.elf to /usr/share/rpikernelhack/start_cd.elf by rpikernelhack'
Adding 'diversion of /boot/start_db.elf to /usr/share/rpikernelhack/start_db.elf by rpikernelhack'
Adding 'diversion of /boot/start_x.elf to /usr/share/rpikernelhack/start_x.elf by rpikernelhack'
Adding 'diversion of /boot/fixup.dat to /usr/share/rpikernelhack/fixup.dat by rpikernelhack'
Adding 'diversion of /boot/fixup_cd.dat to /usr/share/rpikernelhack/fixup_cd.dat by rpikernelhack'
Adding 'diversion of /boot/fixup_db.dat to /usr/share/rpikernelhack/fixup_db.dat by rpikernelhack'
Adding 'diversion of /boot/fixup_x.dat to /usr/share/rpikernelhack/fixup_x.dat by rpikernelhack'
Adding 'diversion of /boot/bootcode.bin to /usr/share/rpikernelhack/bootcode.bin by rpikernelhack'
Adding 'diversion of /boot/LICENCE.broadcom to /usr/share/rpikernelhack/LICENCE.broadcom by rpikernelhack'
Unpacking raspberrypi-bootloader (1.20171029-1) ...
dpkg: error processing archive /tmp/apt-dpkg-install-cbZmDC/4-raspberrypi-bootloader_1.20171029-1_armhf.deb (--unpack):
 trying to overwrite '/boot/bootcode.bin', which is also in package raspberrypi-bootloader-emlid 1.20170602
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Selecting previously unselected package libraspberrypi0.
Preparing to unpack .../5-libraspberrypi0_1.20171029-1_armhf.deb ...
Unpacking libraspberrypi0 (1.20171029-1) ...
dpkg: error processing archive /tmp/apt-dpkg-install-cbZmDC/5-libraspberrypi0_1.20171029-1_armhf.deb (--unpack):
 trying to overwrite '/opt/vc/lib/libbcm_host.so', which is also in package raspberrypi-userspace-emlid 1.9
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Selecting previously unselected package uv4l-encoder.
Preparing to unpack .../6-uv4l-encoder_1.18_armhf.deb ...
Unpacking uv4l-encoder (1.18) ...
Selecting previously unselected package uv4l-decoder.
Preparing to unpack .../7-uv4l-decoder_1.10_armhf.deb ...
Unpacking uv4l-decoder (1.10) ...
Selecting previously unselected package uv4l-renderer.
Preparing to unpack .../8-uv4l-renderer_1.7_armhf.deb ...
Unpacking uv4l-renderer (1.7) ...
Selecting previously unselected package uv4l-uvc.
Preparing to unpack .../9-uv4l-uvc_1.10_armhf.deb ...
Unpacking uv4l-uvc (1.10) ...
Errors were encountered while processing:
 /tmp/apt-dpkg-install-cbZmDC/4-raspberrypi-bootloader_1.20171029-1_armhf.deb
 /tmp/apt-dpkg-install-cbZmDC/5-libraspberrypi0_1.20171029-1_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Hello!

There was a very similar issue a couple of year ago. Take a look here. There’s a possibility there’s also a couple of dependencies that need to be fixed. But you can do it on your own by dpkg -x and then dh_building the package once again. You’ll need to change all occurrences of raspberrypi-bootloader to raspberrypi-bootloader-emlid.

Thanks @george.staroselskiy for the prompt reply.

I get the solution you are suggesting but at this point, I will park it and look into alternative approaches for my solution.

Consider this resolved.

But for curiosity, do you think the next update of the Emlid image will solve this or it will remain since Emlid provides its own bootloader and raspberrypi0 package?

Thanks,

Mohammad

This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.