Install package on different architecture

Status
Not open for further replies.

anneranch

Active Member
Joined
Mar 16, 2019
Messages
223
Reaction score
43
Credits
2,078
I am trying this
sudo apt install libbluetooth-dev :armhf
I hope the syntax is OK but I need to add correct repostory.
 


Currently on Ubuntu 21.04
I know I can install this package for specific hardware - :armhf.
What I am asking - is there a generic way to find and then add repository to install it from .
It this case it is NOT in standard Ubuntu repository.
 
https://pkgs.org/download/libbluetooth-dev

Click the entry for Hirsute Hippo - if you are not sure your computer supports ARM, take the .deb package.

Wizard
OK, real stupid questions.
I got all the way to this

1. It mentions libbluetooth-dev is "good for all architectures "
I am operating on an assumption I have installed WRONG architecture and now it tells me it is good for all - confused,
2. Then is has separate version for ARM...

and finally
how to I actually download the package ?

I do not see any buttons to download and I am not in favor to just
click around and watch for smoke
 
In a Terminal input: sudo apt install libbluetooth-dev
 
In a Terminal input: sudo apt install libbluetooth-dev
That is where I started and the issue is - will libbluetooth-dev run / functions on ARM when being installed on X86.

However , I may have some other issue linking my C code to correct architecture and I need to clarify that first.
Especially when libbluetooth-dev being installed is (allegedly) architecture independent.

I cannot simply prove where is my iussue - in actual linking or wrong (?) libbluetooth-dev.
 
OK, real stupid questions.

Not really - pkgs.org is not the most user-friendly site for navigation, just useful once you get the hang of it.

I'll come back to that.

At your earliest opportunity, can you please post the output of (my comments preceded by a hash)

Code:
dpkg --print-architecture

# and

dpkg --print-foreign-architectures

# note the 's' at end

Cheers

Wiz
 
Not really - pkgs.org is not the most user-friendly site for navigation, just useful once you get the hang of it.

I'll come back to that.

At your earliest opportunity, can you please post the output of (my comments preceded by a hash)

Code:
dpkg --print-architecture

# and

dpkg --print-foreign-architectures

# note the 's' at end

Cheers

Wiz
qw@qw-desktop:~$ dpkg --print-architecture
amd64
qw@qw-desktop:~$ dpkg --print-foreign-architectures
i386
qw@qw-desktop:~$

and on RPi
pi@raspberrypi:~ $ dpkg --print-architecture
armhf
pi@raspberrypi:~ $ dpkg --print-foreign-architectures
pi@raspberrypi:~ $
 
OK, Ta for that.

With Pi's and ARM I go out of my comfort zone, so I will likely defer to Pi users.

You haven't said whether the Pi is
  1. Running a Linux, if so which? and
  2. Whether it has internet connectivity?
If yes to both, then you could likely download the package straight to the Pi, provided the Linux Distro is Debian-based. But if that is the case, then it will likely be in your Repositories, and you could follow the procedure outline by @arochester above.

Given, on your Desktop, your output to "foreign" was

i386

and not

i386
armhf

... you could download the ARM package but not use it, you would have to transfer it to the PI.

If you go the pkgs.org route, I'll give you an example, this for AMD, to be followed by ARM one.

1, At pkgs.org, you will have searched for

libbluetooth-dev

2. Click the chosen entry for Hirsute Hippo. It will take you to a page where you scroll down to Downloads, and there will be a URL saying


3. Copy and paste that URL into Terminal and preface it with

wget and a space, so it may be be

Code:
cd Downloads
wget http://archive.ubuntu.com/ubuntu/pool/main/b/bluez/libbluetooth-dev_5.56-0ubuntu4_amd64.deb

and press Enter and it will download

4. If you wish to get the ARM one, backtrack to an earlier level and choose its link and enter to get the Downloads page.

Different URL, so it will be

Code:
wget http://ports.ubuntu.com/pool/main/b/bluez/libbluetooth-dev_5.56-0ubuntu4_arm64.deb

and Enter.

Once downloaded, you can use

dpkg or
gdebi or
apt

to install.

BUT

(Wizard's but usually follows close behind him)

Two points.

a. If this is all about running the package on the Pi, you should be in

https://linux.org/forums/single-board-computers.12/

b. and I note you had this at Launchpad two and a half years ago, have not read it all

https://answers.launchpad.net/ubuntu/+question/679753

Was that of any use to you?

Wizard
 
This is turning into rather typical discussion.
Since I often get into trouble duplicating stuff - mostly from people with limited reading skill and who
also have a issue "connecting ALL the dots".

So I will just repeat what is basic and important to this issue.

What OS is running on RPi is NOT the issue.

The issue indicator is - crosscompiler running on PC cannot find libbluetooth-dev
I do not know if it is because my options (-l -L) are incorrect or the libbluetooth-dev was downloaded for wrong architecture.
I do know
some libbluetooth-dev version is allegedly good for ANY architecture
I do not know how to verify that.

I can install libluetooth-dev on my RPi - ARM architecture no problem and it bypasses need to conncet to correct repository etc....

I can scp the libluetooth-dev FOLDER to my PC

BUT
using the
qw@qw-desktop:~$ dpkg --print-foreign-architectures

That is very helpful tool to troubleshoot this issue.Thanks

DOES NOT SHOW ARM !!

so - I am using scp wrong way !

That is my troubleshooting direction - why scp did not copy the ibbluetooth-dev.

I suspect I need to scp Linux package and NOT the libbluetooth-dev "folder "

PS
Yes, I forgot all about the past inquiry and at this point I rather do the above then going to past .
I am not so sure the past is related to today's problem.
BUT it may, I'll check that later to make sure.
No need to reinvent the wheel...

PPS thaks for telling me how to install from specific repository - I will do that if the above "fixing scp " does not work. .
 
Status
Not open for further replies.


Top