How to solve unmet dependancies, Raspberry Pi 4B

68 visualizzazioni (ultimi 30 giorni)
xxxxxxxxx@raspberrypi:~ $ sudo apt-get install matlab-rpi
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:
matlab-rpi:armhf : Depends: ntpdate:armhf (>= 1:4.2.6.p5+dfsg-7+deb8u2) but it is not installable
Depends: sense-hat:armhf (>= 1.2) but it is not installable
Depends: python3-pip:armhf but it is not installable
Depends: python3-tornado:armhf but it is not going to be installed
Depends: python3-cffi:armhf but it is not installable
E: Unable to correct problems, you have held broken packages.

Risposta accettata

MathWorks MATLAB Hardware Team
Hi !
Seems like there is issue with the operating system release of your raspberrypi.
Please check Operating System release by typing following command in your raspberrypi.
$ cat /etc/os-release
if the "VERSION_CODENAME" is not stretch, buster or bullseye, then the error is expected because MATLAB Support Package for Raspberrypi Hardware only supports stretch , buster and bullseye debian releases.
if the "VERSION_CODENAME" is stretch, buster or bullseye,
Please feel free to contact our Technical Support if you need further assistance.
https://www.mathworks.com/support/contact_us.html
Thanks,
MATLAB Hardware Team
MathWorks
  4 Commenti
제형
제형 il 23 Feb 2024
Hello, I've got same error even the "VERSION_CODENAME" of mine is bullseye.
How can I solve it?
Brandon
Brandon il 7 Mar 2024
I have the same issue on a Raspberry Pi Zero 2 W with bullseye.

Accedi per commentare.

Più risposte (5)

Brandon
Brandon il 7 Mar 2024
For anyone reading this, this is what solved it for me:
I had the 64-bit release installed. Unfortunately, MATLAB is only supported on the 32-bit release. I re-imaged my SD card to 32-bit, and everything worked perfectly.
  2 Commenti
MathWorks MATLAB Hardware Team
Currently,MATLAB Support package for the raspberry pi is only supported for 32 bit OS. The support for 64 bit OS is not yet available.
One can check whether the OS version is 32 bit or 64 bit by executing the following commnad in raspberry pi
$uname -m
if the output is aarch64, then MATLAB Support package for raspberry pi will not work.
Thanks,
MATLAB Hardware Support Team

Accedi per commentare.


MathWorks MATLAB Hardware Team
Currently,MATLAB Support package for the raspberry pi is only supported for 32 bit OS. The support for 64 bit OS is not yet available.
One can check whether the OS version is 32 bit or 64 bit by executing the following commnad in raspberry pi
$uname -m
if the output is aarch64, then MATLAB Support package for raspberry pi will not work.
Thanks,
MATLAB Hardware Support Team
  2 Commenti
Manmeet
Manmeet il 10 Dic 2024
Is this still the case?
Iam using Raspberry Pi 5, bookworm version.
Matlab :24.2.0.2712019 (R2024b)
Mine message upon running "sudo apt-get install matlab-rpi" is following
"The following packages have unmet dependencies:
raspi-utils-core: Breaks: libraspberrypi-bin but 1:2+git20231018~131943+3c97
6-1 is to be installed
raspi-utils-dt: Breaks: libraspberrypi-bin but 1:2+git20231018~131943+3c97176
1 is to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by he
1d packages."
Walter Roberson
Walter Roberson il 10 Dic 2024
"You can set up your Raspberry Pi hardware using any 32-bit Raspberry Pi operating system on your Raspberry Pi, namely Buster, Bullseye or Bookworm."

Accedi per commentare.


Manmeet
Manmeet il 10 Dic 2024
  1. Upon running these two lines of codes
"ssh=matlabshared.internal.ssh2client('192.168.1.190','admin','admin123');
raspi.internal.firmware.setupPythonVirtualEnvironment(ssh)"
It returns the: logical 1.
2. Now resource Monitor app of Matlab connects. All System Processes is then shown. If this is of any help.
3. Do you recommend me to install the Rasbian 32 bit version Bullseye?

Manmeet
Manmeet il 11 Dic 2024
Now Iam able to connect Pi5 running bookwarm version with app "Raspberry Pi Resource Monitor" of Matlab. See attached file for steps taken.
When I press "Verify Packages and Libraries" it says "all the required packages and libraries are installed on Raspberry Pi."
Still upon running the command "sudo apt-get install matlab-rpi" it comes up with errors as before.

Manmeet
Manmeet il 7 Gen 2025 alle 12:09
for Pi5 running Bookworm function and Matlab 2024b, I followed the steps (command window) below to get the code deployed. These steps are similar to what is metioned here with very minor difference.
1) r=raspi
2)board = targetHardware('Raspberry Pi')
3)board.CoderConfig.TargetLang = 'C++' % by default it is C
4)dlcfg = coder.DeepLearningConfig('arm-compute') % This version will be '20.02.1' and architecture 'armv8'
5)dlcfg.ArmArchitecture = 'armv7' % in my case I have to change the version 7 from 8 to download
6) deploy(board,'YOUR_FUNCTION') %
Note: after installation of arm compute library using add on "matlab support package for Raspberry Pi hardware" check the location of the file "libarm_compute.so" inside "/opt/ComputeLibrary". It shall be here. If Its somewhere else then envirnment must be changed for that location.

Categorie

Scopri di più su Introduction to Installation and Licensing in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by