[SOLVED] Issue when trying to add Python3 and upgrading Raspberry (bootloader issue)

Hello everyone,

We are trying to install Python 3 on our Raspberry Pi 3 Model B, using apt-get, here are some results :

sudo apt-get install python3 Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: python-picamera : Depends: libraspberrypi0 but it is not going to be installed python3 : Depends: python3.4 (>= 3.4.2-0) but it is not going to be installed Depends: python3-minimal (= 3.4.2-2) but it is not going to be installed Depends: libpython3-stdlib (= 3.4.2-2) but it is not going to be installed Depends: dh-python but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

It seems that libraspberrypi0 is missing. When trying to do the apt-get -f install command for fixing the problem, the result is the following :

Unpacking raspberrypi-bootloader (1.20161215-1) ... dpkg: error processing archive /var/cache/apt/archives/raspberrypi-bootloader_1.20161215-1_armhf.deb (--unpack): trying to overwrite '/boot/fixup_cd.dat', which is also in package raspberrypi-bootloader-emlid 1.3 dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Preparing to unpack .../libraspberrypi0_1.20161215-1_armhf.deb ... Unpacking libraspberrypi0 (1.20161215-1) ... dpkg: error processing archive /var/cache/apt/archives/libraspberrypi0_1.20161215-1_armhf.deb (--unpack): trying to overwrite '/opt/vc/lib/libmmal_core.so', which is also in package raspberrypi-userspace-emlid 1.6 dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Errors were encountered while processing: /var/cache/apt/archives/raspberrypi-bootloader_1.20161215-1_armhf.deb /var/cache/apt/archives/libraspberrypi0_1.20161215-1_armhf.deb E: Sub-process /usr/bin/dpkg returned an error code (1)

Looks like we cannot overwrite on the current bootloader (we are using the OS given on the EMLID Documentation). We need Python 3 to perform some command for image processing algorithms, but we don’t really want to rebuild a new image for the Raspberry.

Any help would be highly appreciated !!
Thank you

That is intentional.

I do want to point out that it’s very difficult to help you out unless you provide us with the info that is requested when you create a topic. Please, add this information:

  1. Image and ArduPilot version.
  2. Detailed problem description. How does expected behavior differ from the observed one?
  3. Your step by step actions.

Either way, I guess the easiest solution will be using the newest beta. It works fine with Python 3 (we’ll add it per default in the Release).

For now, I suggest this:

  1. Flash the newest beta
  2. sudo apt-get update && sudo apt-get install python3 python3-pip
  3. pip3 install --user picamera it’s better to use Python tools rather than distro tools

Hello George,

Thank you very much for the reply and your advices! Sorry for my bad description

Actually we did exactly the easiest solution you’ve suggested, and that works well. :slight_smile:

Thank you again,
Lucas