Page 1 of 1

Failure to install some packages with apt-get on RaspberryPi

Posted: 2017-10-10 07:23
by THX1138b
I tried to follow an instruction to get ready to compile a 32-bit version of a program on my 64-bit Pi but it doesn't work out. Is this caused by the Raspberry Pi version of Debian or would any other Debian variant give the same error? Thanks.

Code: Select all

pi@raspberrypi:~/Teleprompter 32-bit/Teleprompter-Electron $ sudo apt-get install --no-install-recommends -y gcc-multilib g++-multilib
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package gcc-multilib is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'gcc-multilib' has no installation candidate
E: Unable to locate package g++-multilib
E: Couldn't find any package by regex 'g++-multilib'
pi@raspberrypi:~/Teleprompter 32-bit/Teleprompter-Electron $ 

Re: Failure to install some packages with apt-get

Posted: 2017-10-10 07:36
by dilberts_left_nut
They are both available in the main repo

https://packages.debian.org/stretch/gcc-multilib
https://packages.debian.org/stretch/g++-multilib

Maybe you aren't using Debian.

Re: Failure to install some packages with apt-get

Posted: 2017-10-10 08:02
by THX1138b
dilberts_left_nut wrote:They are both available in the main repo

https://packages.debian.org/stretch/gcc-multilib
https://packages.debian.org/stretch/g++-multilib

Maybe you aren't using Debian.
Sorry for not being more clear. I'm using the latest Raspberry Pi version of Debian.

Re: Failure to install some packages with apt-get on Raspber

Posted: 2017-10-10 12:57
by dilberts_left_nut
Debian doesn't have a RaspberryPi version.

Re: Failure to install some packages with apt-get on Raspber

Posted: 2017-10-10 13:34
by THX1138b
They made a derivative of Debian called Raspbian. It's definitely based on Debian.

Re: Failure to install some packages with apt-get on Raspber

Posted: 2017-10-10 15:27
by debiman
THX1138b, you have been open about which operating systems you use and started your threads in Offtopic.
that deserves some merit.

i still think you would receive better help at raspbian forums, but whatever:

1 thing about your output stands out (apart from the error itself):
"Package gcc-multilib is not available, but is referred to by another package."

please run

Code: Select all

apt update
and show us the output.
also your sources.

...actually, i think you can strike all that:
https://www.raspberrypi.org/forums/view ... 87#p701324

Re: Failure to install some packages with apt-get on Raspber

Posted: 2017-10-10 16:51
by THX1138b
Oh, thanks, Debiman. I really thought this Raspberry Pi was my ticket to easy street! :(

Re: Failure to install some packages with apt-get

Posted: 2017-10-10 16:52
by RU55EL
THX1138b wrote:[...] Sorry for not being more clear. I'm using the latest Raspberry Pi version of Debian.
Raspberry Pi is not a version of Debian.
THX1138b wrote:They made a derivative of Debian called Raspbian. It's definitely based on Debian.
That is true, but not quite what you said in an earlier post.

I'm not trying to be a pain in the ass, just making a clarification. I have several Raspberry Pi computers and really like them. One of the key things I like is that if you know Debian, working with Raspbian is much easier.

Re: Failure to install some packages with apt-get on Raspber

Posted: 2017-10-10 19:21
by stevepusser
The simple answer is that there is no armhf versions of those packages in the Debian repositories, which is the current architecture used by Rasbian. I do not see any 64-bit versions of Raspbian, either...they chose to just make a 32-bit version that is still compatible with older Pi models, as far as my research can dig up.

I have been able to set up a QEMU pdebuilder cross-compile setup for Jessie armhf on my own amd64 laptop and built a few packages with it; let's see if I can add Raspbian Stretch armhf...it only takes a couple hundred extra MB.

Code: Select all

sudo OS=raspbian DIST=stretch ARCH=armhf pbuilder --create
Downloading...

Re: Failure to install some packages with apt-get on Raspber

Posted: 2017-10-11 14:00
by pylkko
There is no Raspbian 64bit but there are several other distributions that run 64bit on Rpi. These may or may not have these packages

There is also a Raspbian qemu image. If you want to cross compile

And I believe that these packages that are not in Debian are in Ubuntu, see:
https://packages.ubuntu.com/xenial/armh ... b/download

So, you could pull the sources for those and compile a Debian package

Re: Failure to install some packages with apt-get on Raspber

Posted: 2017-10-12 17:09
by stevepusser
pylkko wrote:There is no Raspbian 64bit but there are several other distributions that run 64bit on Rpi. These may or may not have these packages

There is also a Raspbian qemu image. If you want to cross compile

And I believe that these packages that are not in Debian are in Ubuntu, see:
https://packages.ubuntu.com/xenial/armh ... b/download

So, you could pull the sources for those and compile a Debian package
Hmmm...compiling gcc on a Pi? Good luck! This is where cross-compiling it on a powerful x86 machine is required, as in my pbuilder setup for armhf, which was successful in its creation, BTW.

Also, you have to keep in mind that Stretch's default gcc is gcc-6.3, so if you compile and install gcc-5.3 as suggested above, you'll have to specify that your program use the gcc-5.3...which I haven't been able to tack onto pbuilder yet, though there are some guides on how to set up your new packages in a directory on your machine as a repo and then have pbuilder hook onto it...jeesh, it may be a good idea to set up an Ubuntu pbuilder first and see if it can build programs:

Code: Select all

sudo OS=ubuntu DIST=xenial ARCH=armhf pbuilder --create
oops, that fails on a Jessie base, cuz Jessie's debootstrap doesn't know anything about xenial. But a backport of Stretch's should fix that. https://packages.debian.org/jessie-back ... ebootstrap

Hmm...also required an update of the ubuntu-archive-keyring package to the Stretch version, and now the Ubuntu mirror that it's trying to download doesn't have any armhf packages: http://no.archive.ubuntu.com/ubuntu/dists/xenial/main/

Let me go see what's going on with other mirrors...yeah, turns out that very few Ubuntu mirrors have anything except the x86 packages. This one has a few extra arches, including armhf: http://ports.ubuntu.com/

But I'm going down the rabbit hole; this sounds like a XY problem in that the OP can't really be running 64-bit Raspbian, as it does not exist.

Re: Failure to install some packages with apt-get on Raspber

Posted: 2017-10-12 17:44
by pylkko
Yeah, but I was suggesting using the Raspbian virtual on x86 and cross compiling and running the stuff on the image Raspbian qemu image.

Also, in the link that I posted you can of course chose which version you want and the .deb in zesty armf is 6.3, for example.

Re: Failure to install some packages with apt-get on Raspber

Posted: 2017-10-12 18:38
by THX1138b
Indeed my Raspbian is 32-bit (I thought it would be 64-bit just because the CPU is and did not consider that most people don't have need for it to be 64-bit). I could install a different OS which is 64-bit. The thing I've been ultimately trying to achieve is to compile/use a specific teleprompter software from here: https://github.com/ImaginarySense/Teleprompter-Core

The versions already compiled are all 64-bit and of course won't install on my Pi and even if I install 64-bit Linux, I guess won't work with this weird mobile processor (all processors are weird to a noob like me; these are just harder because I can't get my ideal Teleprompter software precompiled for it).

Re: Failure to install some packages with apt-get on Raspber

Posted: 2017-10-12 19:35
by stevepusser
It seems Teleprompter itself is written in javascript and css, so would be architecture-independent and doesn't need to be compiled, but the deb they are distributing installs the 64-bit Electron "engine" to interpret those. Electron is based on the Chromium web browser. It seems they could find an armhf Electron and add Teleprompter to that, but I don't know if any exist or how to go about that myself. I see they did create a 32-bit Electron version for Windows...There's also an AppImage, but I'm sure that just packages the 64-bit Electron version, too.

Re: Failure to install some packages with apt-get on Raspber

Posted: 2017-10-12 20:53
by arochester
ARM aside.

There may be a little confusion here about Hardware and Software.

What MODEL of Raspberry Pi are we talking about?

The Raspberry Pi 3 is Quad Core and can run actual 64 bit Debian, not just Raspbian ... https://wiki.debian.org/RaspberryPi3

Re: Failure to install some packages with apt-get on Raspber

Posted: 2017-10-12 21:00
by THX1138b
It's pi version three. but even if I can run 64 bit Linux, I'll still have to try to compile Teleprompter to run on this arm processor.

I'm not sure what the disadvantage of running teleprompter in a browser is. I'll have to check it responds to the keyboard shortcuts I'd need.

Re: Failure to install some packages with apt-get on Raspber

Posted: 2017-10-13 00:13
by stevepusser
Teleprompter itself does not get compiled, since it's written in scripting language. It just needs an engine to interpret the scripts, and they tack on the 64-bit Electron engine to do that. If they have a armhf Electron, it should be simple for them to tack that on, too.

Re: Failure to install some packages with apt-get on Raspber

Posted: 2017-10-13 06:09
by debiman
i think electron is the keyword here.
apart from being the ultimate, most recent example of bloatware crap, i also had problems with running an electron app on my ARM laptop!
problems as in, no go, electron does not support that architecture.
good luck compiling it! (<== sarcasm)