Failure to install some packages with apt-get on RaspberryPi

If it doesn't relate to Debian, but you still want to share it, please do it here

Failure to install some packages with apt-get on RaspberryPi

Postby THX1138b » 2017-10-10 07:23

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

We don't inherit the Earth from our parents; we borrow it from our children.
THX1138b
 
Posts: 30
Joined: 2017-09-12 20:57

Re: Failure to install some packages with apt-get

Postby dilberts_left_nut » 2017-10-10 07:36

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...
User avatar
dilberts_left_nut
 
Posts: 4687
Joined: 2009-10-05 07:54
Location: enzed

Re: Failure to install some packages with apt-get

Postby THX1138b » 2017-10-10 08:02

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

We don't inherit the Earth from our parents; we borrow it from our children.
THX1138b
 
Posts: 30
Joined: 2017-09-12 20:57

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

Postby dilberts_left_nut » 2017-10-10 12:57

Debian doesn't have a RaspberryPi version.
AdrianTM wrote:There's no hacker in my grandma...
User avatar
dilberts_left_nut
 
Posts: 4687
Joined: 2009-10-05 07:54
Location: enzed

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

Postby THX1138b » 2017-10-10 13:34

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

We don't inherit the Earth from our parents; we borrow it from our children.
THX1138b
 
Posts: 30
Joined: 2017-09-12 20:57

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

Postby debiman » 2017-10-10 15:27

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
User avatar
debiman
 
Posts: 1528
Joined: 2013-03-12 07:18

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

Postby THX1138b » 2017-10-10 16:51

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

We don't inherit the Earth from our parents; we borrow it from our children.
THX1138b
 
Posts: 30
Joined: 2017-09-12 20:57

Re: Failure to install some packages with apt-get

Postby RU55EL » 2017-10-10 16:52

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
RU55EL
 
Posts: 310
Joined: 2014-04-07 03:42
Location: /home/russel

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

Postby stevepusser » 2017-10-10 19:21

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...
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Krita 3.3.2.1, Pale Moon 27.6.0, Audacity 2.2.0, mpv 0.27.0, Corebird 1.7.1, Firefox 57.0, SMPlayer 17.11.2
User avatar
stevepusser
 
Posts: 8902
Joined: 2009-10-06 05:53

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

Postby pylkko » 2017-10-11 14:00

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
pylkko
 
Posts: 1174
Joined: 2014-11-06 19:02

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

Postby stevepusser » 2017-10-12 17:09

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.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Krita 3.3.2.1, Pale Moon 27.6.0, Audacity 2.2.0, mpv 0.27.0, Corebird 1.7.1, Firefox 57.0, SMPlayer 17.11.2
User avatar
stevepusser
 
Posts: 8902
Joined: 2009-10-06 05:53

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

Postby pylkko » 2017-10-12 17:44

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.
User avatar
pylkko
 
Posts: 1174
Joined: 2014-11-06 19:02

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

Postby THX1138b » 2017-10-12 18:38

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

We don't inherit the Earth from our parents; we borrow it from our children.
THX1138b
 
Posts: 30
Joined: 2017-09-12 20:57

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

Postby stevepusser » 2017-10-12 19:35

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.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Krita 3.3.2.1, Pale Moon 27.6.0, Audacity 2.2.0, mpv 0.27.0, Corebird 1.7.1, Firefox 57.0, SMPlayer 17.11.2
User avatar
stevepusser
 
Posts: 8902
Joined: 2009-10-06 05:53

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

Postby arochester » 2017-10-12 20:53

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
"Something to be aware of: Debian is a core or source distribution. This means there are many Debian-based distributions. THEY ARE NOT DEBIAN."
arochester
 
Posts: 1084
Joined: 2010-12-07 19:55

Next

Return to Offtopic

Who is online

Users browsing this forum: No registered users and 7 guests

fashionable