installing libbluetooth-dev:armhf

Asked by anne ranch

I like to install most reset , working , version 5.50 of libbluetooth-dev:armhf
No matter what I do I always end up with 5.37 amd64 architecture.

I am using this resource

https://launchpad.net/ubuntu/disco/+package/libbluetooth3-dbg

I have tried -dbg version with same results.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

For diagnostic purposes please provide the output that you receive for the commands

uname -a
lsb_release -crid
dpkg -l | grep blue
apt-cache policy libbluetooth-dev libbluetooth3
dpkg --print-architecture
dpkg --print-foreign-architectures

Revision history for this message
anne ranch (anneranch) said :
#2

jim@jim-desktop:~$ dpkg --print-architecture
amd64

jim@jim-desktop:~$ dpkg --print-foreign-architectures
i386
armhf

jim@jim-desktop:~$ apt-cache policy libbluetooth-dev libbluetotth3
libbluetooth-dev:
  Installed: 5.37-0ubuntu5.1
  Candidate: 5.37-0ubuntu5.1
  Version table:
 *** 5.37-0ubuntu5.1 500
        500 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages
        100 /var/lib/dpkg/status
     5.37-0ubuntu5 500
        500 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
        500 http://uk.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
N: Unable to locate package libbluetotth3

jim@jim-desktop:~$ dpkg -l|grep blue
ii bluez 5.37-0ubuntu5.1 amd64 Bluetooth tools and daemons
ii bluez-obexd 5.37-0ubuntu5.1 amd64 bluez obex daemon
ii libbluetooth-dev 5.37-0ubuntu5.1 amd64 Development files for using the BlueZ Linux Bluetooth library
ii libbluetooth3:amd64 5.37-0ubuntu5.1 amd64 Library to use the BlueZ Linux Bluetooth stack
ii libbluetooth3:i386 5.37-0ubuntu5.1 i386 Library to use the BlueZ Linux Bluetooth stack
ii libgnome-bluetooth13:amd64 3.18.2-1ubuntu2 amd64 GNOME Bluetooth tools - support library

jim@jim-desktop:~$ lsb_release -crid
Distributor ID: Ubuntu
Description: Ubuntu 16.04.6 LTS
Release: 16.04
Codename: xenial

jim@jim-desktop:~$ uname -a
Linux jim-desktop 4.15.0-46-generic #49~16.04.1-Ubuntu SMP Tue Feb 12 17:45:24 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
jim@jim-desktop:~$

jim@jim-desktop:~$ apt-cache policy libbluetooth-dev libbluetooth3'libbluetooth-dev:
  Installed: 5.37-0ubuntu5.1
  Candidate: 5.37-0ubuntu5.1
  Version table:
 *** 5.37-0ubuntu5.1 500
        500 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages
        100 /var/lib/dpkg/status
     5.37-0ubuntu5 500
        500 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
        500 http://uk.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
libbluetooth3:
  Installed: 5.37-0ubuntu5.1
  Candidate: 5.37-0ubuntu5.1
  Version table:
 *** 5.37-0ubuntu5.1 500
        500 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages
        100 /var/lib/dpkg/status
     5.37-0ubuntu5 500
        500 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
        500 http://uk.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
jim@jim-desktop:~$ '

Revision history for this message
anne ranch (anneranch) said :
#3

I cannot tell , but it seems to be searching for wrong repository.
When I run "Software Install " from GUI I get no progress report /trace.
Is there a log I could look at?

This is on of the source files I used

libbluetooth3-dbg_5.50-0ubuntu2_armhf.deb

Revision history for this message
anne ranch (anneranch) said :
#4

Is it OK for me to use multi-architecture ?

After reading some doc it may not be available in the Unbutu versions I am using.
I am VERY reluctant / hesitant to upgrade to 18 , hab bad experience I trying it couple months ago.

Revision history for this message
anne ranch (anneranch) said :
#5

Maybe this will help.
I changed a repository link,

I did try to install l lilbluetoorth-dev:armhf and made a type.
Here is a output:

jim@jim-desktop:/etc/apt$ sudo apt install lubbluetooth-dev:armhf
Reading package lists... Done
Building dependency tree
Reading state information... Done
W: Target Packages (main/binary-amd64/Packages) is configured multiple
times in /etc/apt/sources.list:54 and /etc/apt/sources.list:56
W: Target Packages (main/binary-all/Packages) is configured multiple times
in /etc/apt/sources.list:54 and /etc/apt/sources.list:56
W: Target Translations (main/i18n/Translation-en_US) is configured multiple
times in /etc/apt/sources.list:54 and /etc/apt/sources.list:56
W: Target Translations (main/i18n/Translation-en) is configured multiple
times in /etc/apt/sources.list:54 and /etc/apt/sources.list:56
W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple
times in /etc/apt/sources.list:54 and /etc/apt/sources.list:56
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple
times in /etc/apt/sources.list:54 and /etc/apt/sources.list:56
W: Target Packages (universe/binary-amd64/Packages) is configured multiple
times in /etc/apt/sources.list:54 and /etc/apt/sources.list:56
W: Target Packages (universe/binary-all/Packages) is configured multiple
times in /etc/apt/sources.list:54 and /etc/apt/sources.list:56
W: Target Translations (universe/i18n/Translation-en_US) is configured
multiple times in /etc/apt/sources.list:54 and /etc/apt/sources.list:56
W: Target Translations (universe/i18n/Translation-en) is configured
multiple times in /etc/apt/sources.list:54 and /etc/apt/sources.list:56
W: Target DEP-11 (universe/dep11/Components-amd64.yml) is configured
multiple times in /etc/apt/sources.list:54 and /etc/apt/sources.list:56
W: Target DEP-11-icons (universe/dep11/icons-64x64.tar) is configured
multiple times in /etc/apt/sources.list:54 and /etc/apt/sources.list:56
E: Unable to locate package lubbluetooth-dev:armhf

*AFTER I corrected the typo the output was much terse *

jim@jim-desktop:/etc/apt$ sudo apt install libbluetooth-dev:armhf
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libbluetooth-dev:armhf

Of course this still works:

jim@jim-desktop:/etc/apt$ sudo apt install libbluetooth-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libbluetooth-dev is already the newest version (5.37-0ubuntu5.1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
jim@jim-desktop:/etc/apt$

On Wed, Apr 3, 2019 at 2:17 PM Manfred Hampl <
<email address hidden>> wrote:

> Your question #679753 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/679753
>
> Status: Open => Needs information
>
> Manfred Hampl requested more information:
> For diagnostic purposes please provide the output that you receive for
> the commands
>
> uname -a
> lsb_release -crid
> dpkg -l | grep blue
> apt-cache policy libbluetooth-dev libbluetooth3
> dpkg --print-architecture
> dpkg --print-foreign-architectures
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/ubuntu/+question/679753
>
> You received this question notification because you asked the question.
>

Revision history for this message
Manfred Hampl (m-hampl) said :
#6

1. As far as I can see you have a system with a CPU that is based on Intel x86 architecture (in dpkg terms amd64 and i386). What do you expect from installing a package for armhf architecture? This is for a different processor architecture (e.g. the CPUs in some kind of mobile phones or a Raspberry Pi) and the programs will not run on your CPU. Do you want to do cross-compiling?

2. If you need to install packages for an architecture different from amd64 and i386 (e.g. armhf), then you have to add a special repository to your package management configuration, namely ports.ubuntu.com.
Something like
deb [arch=i386,amd64] http://archive.ubuntu.com/ubuntu <codename> main universe
deb [arch=armhf] http://ports.ubuntu.com/ <codename> main universe

What is the output of the command
find /etc/apt -name '*.list' -exec bash -c 'echo -e "\n$1\n"; cat -n "$1"' _ '{}' \;

Revision history for this message
Manfred Hampl (m-hampl) said :
#7

And an additional comment:

You are running Ubuntu 16.04 xenial, but trying to add the libbluetooth3-dbg package for Ubuntu 19.04 disco. This does not make any sense.

Revision history for this message
anne ranch (anneranch) said :
#8

Manfred,
Many thanks for the reply.
I really appreciate your help.

Do you want to do cross-compiling?
YES!!!!!!!
That is the WHOLE point of this exercise !!

deb [arch=i386,amd64] http://archive.ubuntu.com/ubuntu <codename> main
universe
deb [arch=armhf] http://ports.ubuntu.com/ <codename> main universe

I did do that,but I did it wrong.
I need to do some editing.

jim@jim-desktop:~$ find /etc/apt -name '*.list' -exec bash -c 'echo -e
"\n$1\n"; cat -n "$1"' _ '{}' \;

/etc/apt/sources.list.d/hanipouspilot-ubuntu-bluetooth-xenial.list

     1 deb http://ppa.launchpad.net/hanipouspilot/bluetooth/ubuntu
xenial main
     2 # deb-src http://ppa.launchpad.net/hanipouspilot/bluetooth/ubuntu
xenial main

/etc/apt/sources.list.d/danielrichter2007-ubuntu-grub-customizer-xenial.list

     1 deb
http://ppa.launchpad.net/danielrichter2007/grub-customizer/ubuntu xenial
main
     2 # deb-src
http://ppa.launchpad.net/danielrichter2007/grub-customizer/ubuntu xenial
main

/etc/apt/sources.list.d/yannubuntu-ubuntu-boot-repair-xenial.list

     1 deb http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu xenial
main
     2 # deb-src http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu
xenial main

/etc/apt/sources.list.d/shutter-ubuntu-ppa-xenial.list

     1 deb http://ppa.launchpad.net/shutter/ppa/ubuntu xenial main
     2 # deb-src http://ppa.launchpad.net/shutter/ppa/ubuntu xenial main

/etc/apt/sources.list.d/nodesource.list

     1 deb https://deb.nodesource.com/node_10.x xenial main
     2 deb-src https://deb.nodesource.com/node_10.x xenial main

/etc/apt/sources.list.d/js-reynaud-ubuntu-kicad-5-xenial.list

     1 deb http://ppa.launchpad.net/js-reynaud/kicad-5/ubuntu xenial main
     2 # deb-src http://ppa.launchpad.net/js-reynaud/kicad-5/ubuntu
xenial main

/etc/apt/sources.list.d/openscad-ubuntu-releases-xenial.list

     1 deb http://ppa.launchpad.net/openscad/releases/ubuntu xenial main
     2 # deb-src http://ppa.launchpad.net/openscad/releases/ubuntu
xenial main

/etc/apt/sources.list

     1 # deb cdrom:[Ubuntu 16.04.3 LTS _Xenial Xerus_ - Release amd64
(20170801)]/ xenial main restricted
     2
     3 # See http://help.ubuntu.com/community/UpgradeNotes for how to
upgrade to
     4 # newer versions of the distribution.
     5 deb http://us.archive.ubuntu.com/ubuntu/ xenial main restricted
     6 # deb-src http://us.archive.ubuntu.com/ubuntu/ xenial main
restricted
     7
     8 ## Major bug fix updates produced after the final release of the
     9 ## distribution.
    10 deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates main
restricted
    11 # deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-updates
main restricted
    12
    13 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by
the Ubuntu
    14 ## team. Also, please note that software in universe WILL NOT
receive any
    15 ## review or updates from the Ubuntu security team.
    16 deb http://us.archive.ubuntu.com/ubuntu/ xenial universe
    17 # deb-src http://us.archive.ubuntu.com/ubuntu/ xenial universe
    18 deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates universe
    19 # deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-updates
universe
    20
    21 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by
the Ubuntu
    22 ## team, and may not be under a free licence. Please satisfy
yourself as to
    23 ## your rights to use the software. Also, please note that
software in
    24 ## multiverse WILL NOT receive any review or updates from the
Ubuntu
    25 ## security team.
    26 deb http://us.archive.ubuntu.com/ubuntu/ xenial multiverse
    27 # deb-src http://us.archive.ubuntu.com/ubuntu/ xenial multiverse
    28 deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
    29 # deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-updates
multiverse
    30
    31 ## N.B. software from this repository may not have been tested as
    32 ## extensively as that contained in the main release, although it
includes
    33 ## newer versions of some applications which may provide useful
features.
    34 ## Also, please note that software in backports WILL NOT receive
any review
    35 ## or updates from the Ubuntu security team.
    36 deb http://us.archive.ubuntu.com/ubuntu/ xenial-backports main
restricted universe multiverse
    37 # deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-backports
main restricted universe multiverse
    38
    39 ## Uncomment the following two lines to add software from
Canonical's
    40 ## 'partner' repository.
    41 ## This software is not part of Ubuntu, but is offered by
Canonical and the
    42 ## respective vendors as a service to Ubuntu users.
    43 # deb http://archive.canonical.com/ubuntu xenial partner
    44 # deb-src http://archive.canonical.com/ubuntu xenial partner
    45
    46 deb http://security.ubuntu.com/ubuntu xenial-security main
restricted
    47 # deb-src http://security.ubuntu.com/ubuntu xenial-security main
restricted
    48 deb http://security.ubuntu.com/ubuntu xenial-security universe
    49 # deb-src http://security.ubuntu.com/ubuntu xenial-security
universe
    50 deb http://security.ubuntu.com/ubuntu xenial-security multiverse
    51 # deb-src http://security.ubuntu.com/ubuntu xenial-security
multiverse
    52 deb http://download.virtualbox.org/virtualbox/debian xenial
contrib
    53 # deb-src http://download.virtualbox.org/virtualbox/debian xenial
contrib
    54 deb [arch=amd64,i386] http://uk.archive.ubuntu.com/ubuntu/ xenial
main universe
    55 # deb-src [arch=amd64,i386] http://uk.archive.ubuntu.com/ubuntu/
xenial main universe
    56 deb [arch=amd64,amrhf] http://uk.archive.ubuntu.com/ubuntu/
xenial main universe
    57
    58 #chnaged CCC to arch=amd64 armhf
    59
    60 # deb-src [arch=i386,amrhf] http://uk.archive.ubuntu.com/ubuntu/
xenial main universe
jim@jim-desktop:~$

On Thu, Apr 4, 2019 at 1:53 AM Manfred Hampl <
<email address hidden>> wrote:

> Your question #679753 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/679753
>
> Status: Open => Needs information
>
> Manfred Hampl requested more information:
> 1. As far as I can see you have a system with a CPU that is based on
> Intel x86 architecture (in dpkg terms amd64 and i386). What do you
> expect from installing a package for armhf architecture? This is for a
> different processor architecture (e.g. the CPUs in some kind of mobile
> phones or a Raspberry Pi) and the programs will not run on your CPU. Do
> you want to do cross-compiling?
>
> 2. If you need to install packages for an architecture different from
> amd64 and i386 (e.g. armhf), then you have to add a special repository to
> your package management configuration, namely ports.ubuntu.com.
> Something like
> deb [arch=i386,amd64] http://archive.ubuntu.com/ubuntu <codename> main
> universe
> deb [arch=armhf] http://ports.ubuntu.com/ <codename> main universe
>
> What is the output of the command
> find /etc/apt -name '*.list' -exec bash -c 'echo -e "\n$1\n"; cat -n "$1"'
> _ '{}' \;
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/ubuntu/+question/679753
>
> You received this question notification because you asked the question.
>

Revision history for this message
anne ranch (anneranch) said :
#9

Manfred,
I did try different ways to download the libbluetooth3-dbg and probably did
not pay attention to OS.
My mistake.
I do not want to confuse the issue , but originally I did try to run
"configure" on source package "bluez".
I am pretty sure I forgot to option for cross-complier , hence the library
file created was always for x86-64 architecture.
I just realized that today, sorry.
I may try to go back to try it again, so please stand-by.
I would not want you to waste your time on this if the "bluez"
crosscompiles library of correct architecture.

On Thu, Apr 4, 2019 at 1:53 AM Manfred Hampl <
<email address hidden>> wrote:

> Your question #679753 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/679753
>
> Manfred Hampl posted a new comment:
> And an additional comment:
>
> You are running Ubuntu 16.04 xenial, but trying to add the
> libbluetooth3-dbg package for Ubuntu 19.04 disco. This does not make any
> sense.
>
> --
> You received this question notification because you asked the question.
>

Revision history for this message
Manfred Hampl (m-hampl) said :
#10

It seems that I have to go deeper into details about the required changes for armhf.

It is not just adding a few additional lines, but replacing and duplicating most of the references.

I recommend that you start with a removal of the lines that you have added at the end of /etc/apt/sources.list

Each line that starts with "deb" and that refers to an Ubuntu repository server has to be replaced by two lines.

e.g. line 5

deb http://us.archive.ubuntu.com/ubuntu/ xenial main restricted

has to be changed into these two lines

deb [arch=amd64,i386] http://us.archive.ubuntu.com/ubuntu/ xenial main restricted
deb [arch=armhf] http://ports.ubuntu.com/ubuntu-ports/ xenial main restricted

Similar changes have to be done for the lines 10, 16, 18, 26, 28, 36, 46, 48, 50

As far as I know, there is no need to change or duplicate the "deb-src ... " lines

And for line 52, I assume that you have to add "[arch=amd64,i386]" but not duplicate the line.

After all these changes, what is the output of the command
sudo apt update
?

Can you help with this problem?

Provide an answer of your own, or ask anne ranch for more information if necessary.

To post a message you must log in.