Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Failure to install some packages with apt-get on RaspberryPi

Off-Topic discussions about science, technology, and non Debian specific topics.
Post Reply
Message
Author
THX1138b
Posts: 35
Joined: 2017-09-12 20:57

Failure to install some packages with apt-get on RaspberryPi

#1 Post 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 $ 
Last edited by THX1138b on 2017-10-10 08:03, edited 1 time in total.
antiX 16, Wyse V90L thin client with VIA Eden 32-bit 800 MHz CPU and 1 GB 533 MHz DDR2
Raspberry Pi 3 B and 3 B+, both running Raspbian Stretch

We don't inherit the Earth from our parents; we borrow it from our children.

User avatar
dilberts_left_nut
Administrator
Administrator
Posts: 5343
Joined: 2009-10-05 07:54
Location: enzed
Has thanked: 12 times
Been thanked: 66 times

Re: Failure to install some packages with apt-get

#2 Post 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.
AdrianTM wrote:There's no hacker in my grandma...

THX1138b
Posts: 35
Joined: 2017-09-12 20:57

Re: Failure to install some packages with apt-get

#3 Post 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.
antiX 16, Wyse V90L thin client with VIA Eden 32-bit 800 MHz CPU and 1 GB 533 MHz DDR2
Raspberry Pi 3 B and 3 B+, both running Raspbian Stretch

We don't inherit the Earth from our parents; we borrow it from our children.

User avatar
dilberts_left_nut
Administrator
Administrator
Posts: 5343
Joined: 2009-10-05 07:54
Location: enzed
Has thanked: 12 times
Been thanked: 66 times

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

#4 Post by dilberts_left_nut »

Debian doesn't have a RaspberryPi version.
AdrianTM wrote:There's no hacker in my grandma...

THX1138b
Posts: 35
Joined: 2017-09-12 20:57

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

#5 Post by THX1138b »

They made a derivative of Debian called Raspbian. It's definitely based on Debian.
antiX 16, Wyse V90L thin client with VIA Eden 32-bit 800 MHz CPU and 1 GB 533 MHz DDR2
Raspberry Pi 3 B and 3 B+, both running Raspbian Stretch

We don't inherit the Earth from our parents; we borrow it from our children.

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

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

#6 Post 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

THX1138b
Posts: 35
Joined: 2017-09-12 20:57

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

#7 Post by THX1138b »

Oh, thanks, Debiman. I really thought this Raspberry Pi was my ticket to easy street! :(
antiX 16, Wyse V90L thin client with VIA Eden 32-bit 800 MHz CPU and 1 GB 533 MHz DDR2
Raspberry Pi 3 B and 3 B+, both running Raspbian Stretch

We don't inherit the Earth from our parents; we borrow it from our children.

User avatar
RU55EL
Posts: 546
Joined: 2014-04-07 03:42
Location: /home/russel

Re: Failure to install some packages with apt-get

#8 Post 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.

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

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

#9 Post 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...
MX Linux packager and developer

User avatar
pylkko
Posts: 1802
Joined: 2014-11-06 19:02

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

#10 Post 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

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

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

#11 Post 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.
Last edited by stevepusser on 2017-10-12 17:46, edited 2 times in total.
MX Linux packager and developer

User avatar
pylkko
Posts: 1802
Joined: 2014-11-06 19:02

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

#12 Post 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.

THX1138b
Posts: 35
Joined: 2017-09-12 20:57

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

#13 Post 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).
antiX 16, Wyse V90L thin client with VIA Eden 32-bit 800 MHz CPU and 1 GB 533 MHz DDR2
Raspberry Pi 3 B and 3 B+, both running Raspbian Stretch

We don't inherit the Earth from our parents; we borrow it from our children.

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

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

#14 Post 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.
MX Linux packager and developer

arochester
Emeritus
Emeritus
Posts: 2435
Joined: 2010-12-07 19:55
Has thanked: 14 times
Been thanked: 54 times

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

#15 Post 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

THX1138b
Posts: 35
Joined: 2017-09-12 20:57

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

#16 Post 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.
antiX 16, Wyse V90L thin client with VIA Eden 32-bit 800 MHz CPU and 1 GB 533 MHz DDR2
Raspberry Pi 3 B and 3 B+, both running Raspbian Stretch

We don't inherit the Earth from our parents; we borrow it from our children.

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

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

#17 Post 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.
MX Linux packager and developer

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

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

#18 Post 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)

Post Reply