Click here to Skip to main content
14,580,039 members

Linux Programming

 
GeneralRe: Change package architecture - no go Pin
Vaclav_25-Mar-19 6:12
MemberVaclav_25-Mar-19 6:12 
GeneralRe: Change package architecture - no go Pin
k505425-Mar-19 7:30
mvek505425-Mar-19 7:30 
GeneralRe: linker error file not recognized: File format not recognized Pin
Member 1419936827-Mar-19 1:12
MemberMember 1419936827-Mar-19 1:12 
GeneralRe: linker error file not recognized: File format not recognized Pin
Vaclav_27-Mar-19 3:15
MemberVaclav_27-Mar-19 3:15 
GeneralRe: linker error file not recognized: File format not recognized Pin
Richard Deeming27-Mar-19 5:37
mveRichard Deeming27-Mar-19 5:37 
AnswerRe: SOLVED ??? linker error file not recognized: File format not recognized Pin
k505426-Mar-19 8:15
mvek505426-Mar-19 8:15 
GeneralRe: SOLVED ??? linker error file not recognized: File format not recognized Pin
Vaclav_26-Mar-19 9:44
MemberVaclav_26-Mar-19 9:44 
GeneralRe: SOLVED ??? linker error file not recognized: File format not recognized Pin
k505426-Mar-19 11:41
mvek505426-Mar-19 11:41 
You can fix that by editing /etc/apt/sources.list and changing all the lines that start
deb http://...
to
deb [arch=amd64,i386] http://...
and add the ubuntu ports repo
deb [arch=armhf] http://ports.ubuntu.com/ubuntu-ports bionic main universe
However, that doesn't help a lot - then you get:
sudo apt-get install libbluetooth-dev:armhf
Reading package lists... Done
Building dependency tree<br />
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 resolve the situation:

The following packages have unmet dependencies:
 libbluetooth-dev:armhf : Depends: libbluetooth3:armhf (= 5.48-0ubuntu3) but it is not going to be installed
                          Depends: libc6-dev:armhf but it is not going to be installed or
                                   libc-dev:armhf
E: Unable to correct problems, you have held broken packages.
I tried following along by adding all the dependencies manually e.g.
$sudo apt-get libbluetooth-dev:armhf libbluetooth3:armhf libc6-dev:armhf
thinking I'd eventually get all the dependencies were added, but then you get to gcc-8-base:armhf and you get this
$ sudo apt-get install gcc-8-base:armhf
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  amd64-microcode gcc-7-arm-linux-gnueabihf-base gcc-7-cross-base
  gcc-8-cross-base libasan4-armhf-cross libatomic1-armhf-cross
  libc6-armhf-cross libc6-dev-armhf-cross libcilkrts5-armhf-cross
  libgcc-7-dev-armhf-cross libgcc1-armhf-cross libgomp1-armhf-cross
  libstdc++6-armhf-cross libubsan0-armhf-cross linux-libc-dev
  linux-libc-dev-armhf-cross m17n-db manpages-dev ncurses-term vim-gui-common
  vim-runtime
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  accountsservice acl acpi-support acpid adduser adwaita-icon-theme aisleriot
  alsa-base alsa-utils anacron apg apparmor apport apport-gtk appstream apt

[ ... about 300 lines removed ...]

  xserver-xorg-video-vesa xserver-xorg-video-vmware xul-ext-ubufox xwayland
  xxd xz-utils yelp zeitgeist-core zenity zip zlib1g
The following NEW packages will be installed:
  gcc-8-base:armhf
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  apt adduser (due to apt) gpgv (due to apt) libapt-pkg5.0 (due to apt)
  libc6 (due to apt) libgcc1 (due to apt) libgnutls30 (due to apt)

[ .. more lines removed ...]

0 upgraded, 1 newly installed, 1421 to remove and 0 not upgraded.
Need to get 18.2 kB of archives.
After this operation, 3,343 MB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
 ?] no
Abort.
$ apt list --installed 2>/dev/null | wc -l
1648
$
So that's not the way to go, either. There seems to be something broken with Ubuntu's foreign-arch handling.
Debian and Ubuntu are very close, so maybe you could switch to Debian for your PC rather than Ubuntu - otherwise, you could try installing virtualbox or VmWare, and install Debian as a guest OS. Guest OS's run only very slightly slower than the host. For example, it took about 4 minutes to compile the source code for postgresql-11.1 on my host, and about 4:30 on the guest. Not much in it, and eclipse is available for Debian, so you should be at home. If you run your host in full-screen mode, you'd hardly be aware you're not running the OS natively on the PC.

modified 26-Mar-19 17:49pm.

GeneralRe: SOLVED ??? linker error file not recognized: File format not recognized Pin
Vaclav_26-Mar-19 16:24
MemberVaclav_26-Mar-19 16:24 
GeneralUsing virtualbox to load Debian OS Pin
Vaclav_27-Mar-19 3:23
MemberVaclav_27-Mar-19 3:23 
GeneralRe: Using virtualbox to load Debian OS Pin
k505427-Mar-19 5:05
mvek505427-Mar-19 5:05 
GeneralRe: Using virtualbox to load Debian OS Pin
Vaclav_27-Mar-19 5:32
MemberVaclav_27-Mar-19 5:32 
GeneralRe: Using virtualbox to load Debian OS Pin
k505427-Mar-19 6:25
mvek505427-Mar-19 6:25 
GeneralRe: Using virtualbox to load Debian OS Pin
Vaclav_27-Mar-19 10:54
MemberVaclav_27-Mar-19 10:54 
QuestionBlueZ part 3 - English translation please Pin
Vaclav_9-Mar-19 4:14
MemberVaclav_9-Mar-19 4:14 
GeneralRe: BlueZ part 3 - English translation please Pin
k50549-Mar-19 6:59
mvek50549-Mar-19 6:59 
AnswerRe: BlueZ part 3 - English translation please Pin
Richard MacCutchan9-Mar-19 21:46
mveRichard MacCutchan9-Mar-19 21:46 
GeneralRe: BlueZ part 3 - English translation please Pin
Gerry Schmitz10-Mar-19 5:26
mveGerry Schmitz10-Mar-19 5:26 
QuestionBlueZ part 2 - which "bluetooth" library is actually used / linked to? Pin
Vaclav_9-Mar-19 3:46
MemberVaclav_9-Mar-19 3:46 
AnswerRe: BlueZ part 2 - which "bluetooth" library is actually used / linked to? Pin
Richard MacCutchan9-Mar-19 4:07
mveRichard MacCutchan9-Mar-19 4:07 
GeneralRe: BlueZ part 2 - which "bluetooth" library is actually used / linked to? Pin
Vaclav_9-Mar-19 4:19
MemberVaclav_9-Mar-19 4:19 
GeneralRe: BlueZ part 2 - which "bluetooth" library is actually used / linked to? Pin
k50549-Mar-19 4:27
mvek50549-Mar-19 4:27 
AnswerRe: BlueZ part 2 - which "bluetooth" library is actually used / linked to? Pin
k50549-Mar-19 4:18
mvek50549-Mar-19 4:18 
GeneralRe: BlueZ part 2 - which "bluetooth" library is actually used / linked to? Pin
Vaclav_9-Mar-19 5:37
MemberVaclav_9-Mar-19 5:37 
GeneralRe: BlueZ part 2 - which "bluetooth" library is actually used / linked to? Pin
k50549-Mar-19 6:13
mvek50549-Mar-19 6:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.