Unable to locate package for ARM processor?

Help with issues regarding installation of Debian

Unable to locate package for ARM processor?

Postby COROVICD » 2018-07-09 16:23

I am trying to install an important package for cross-compiling from PC to ARM processors.

Package is clearly available on the Debian's site, i found it here: https://packages.debian.org/stretch/armhf/libicu-dev/download

This is a command I am using from terminal:

sudo apt-get install libicu-dev:armhf

But I get response:

Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libicu-dev:armhf

Why it can't locate package libicu-dev:armhf when I can clearly find it on Debian's site?

I found on google that Gdebi desktop application should be able to help me. I installed it but no luck. Gdebi gave the answer: "Error: Wrong architecture 'armhf' -- Run dpkg --add-architecture to ad it and update afterward". I've run "sudo dpkg --add-architecture armhf" before all this happens and didn't get any errors.

I download the package "libicu-dev_57.1-6+deb9u2_armhf.deb" directly to my hard drive. And I did this command in Terminal:

sudo gdebi libicu-dev_57.1-6+deb9u2_armhf.deb

Output was:

Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading state information... Done
This package is uninstallable
Dependency is not satisfiable: libicu57 (= 57.1-6+deb9u2)

Do I still have any options to try or is this package completely uninstallable?
Last edited by COROVICD on 2018-07-09 16:40, edited 1 time in total.
COROVICD
 
Posts: 9
Joined: 2018-07-06 20:10

Re: Unable to locate package for ARM processor?

Postby arzgi » 2018-07-09 16:33

You have to enable multiarch support: https://wiki.debian.org/Multiarch/
arzgi
 
Posts: 333
Joined: 2008-02-21 17:03
Location: Finland

Re: Unable to locate package for ARM processor?

Postby COROVICD » 2018-07-09 17:25

Can somebody please be more specific? That Multiarch is a something ultra complicated. I just need a small part to compile for ARM processors.

I can't find multiarch package. Is there a simple set of instructions that I need to follow?
COROVICD
 
Posts: 9
Joined: 2018-07-06 20:10

Re: Unable to locate package for ARM processor?

Postby GarryRicketson » 2018-07-09 18:35

I notice the wiki points to this, did you read it ? :
https://wiki.debian.org/Multiarch/HOWTO

Note that nothing will really change until you do an

apt-get update

to update the available package lists.

I don't see in your post that you did run 'apt-get update' after the other things you needed to do.
I found on google that Gdebi desktop application should be able to help me. I installed it but no luck. Gdebi gave the answer: "Error: Wrong architecture 'armhf' -- Run dpkg --add-architecture to ad it and update afterward". I've run "sudo dpkg --add-architecture armhf" before all this happens and didn't get any errors.

all you show is that you ran the --add-architecture .
The above links is about the most simple set of instructions I know of.
User avatar
GarryRicketson
 
Posts: 5035
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: Unable to locate package for ARM processor?

Postby COROVICD » 2018-07-09 19:36

Thank for the input. I didn't see instructions bellow.

Maybe its just frustration. I reinstalled Debian not less than 10 times. After reading and watching content about Multiarch it appeared as something really complicated that can create lots of mess if setup wrongly and destroy all the work I've done so far. And I am a rookie who barely understands what he's doing.
COROVICD
 
Posts: 9
Joined: 2018-07-06 20:10

Re: Unable to locate package for ARM processor?

Postby arzgi » 2018-07-09 20:26

COROVICD wrote:Thank for the input. I didn't see instructions bellow.

Maybe its just frustration. I reinstalled Debian not less than 10 times. After reading and watching content about Multiarch it appeared as something really complicated that can create lots of mess if setup wrongly and destroy all the work I've done so far. And I am a rookie who barely understands what he's doing.


For me it was not all complicated, alttough I needed i386 support to my amd64 Debian.

You said you are trying install armhf package, so as root:
Code: Select all
dpkg --add-architecture armhf


Then
Code: Select all
apt update
as GarryRickteson has pointed.
arzgi
 
Posts: 333
Joined: 2008-02-21 17:03
Location: Finland

Re: Unable to locate package for ARM processor?

Postby Head_on_a_Stick » 2018-07-10 04:59

ESTRAGON: We always find something, eh, Didi, to give us the impression we exist?
VLADIMIR (impatiently): Yes, yes, we're magicians.
User avatar
Head_on_a_Stick
 
Posts: 7893
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Unable to locate package for ARM processor?

Postby COROVICD » 2018-07-10 15:40

It almost worked, but plot gets thicker. I did:

sudo apt-get update

than I tried this:

dejan@Debian940:~/Downloads$ sudo gdebi libicu-dev_57.1-6+deb9u2_armhf.deb

Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading state information... Done
Requires the installation of the following packages: gcc-6-base:armhf libc6:armhf libgcc1:armhf libicu57:armhf libstdc++6:armhf

and it failed because it needs all the above packages? So I did:

sudo apt-get install gcc-6-base:armhf

E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
COROVICD
 
Posts: 9
Joined: 2018-07-06 20:10

Re: Unable to locate package for ARM processor?

Postby stevepusser » 2018-07-10 16:17

Did you leave the terminal with gdebi open? Only one process can use apt at a time.

Also, gdebi automatically fetches and installs missing dependencies for you, so I don't know why you're making it more complicated than it needs to be.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: GIMP 2.10.6, Pale Moon 28.0.1, wine-staging 3.15, qBittorrent 4.1.2, Linux kernel 4.18.6, virtualbox 5.2.18
User avatar
stevepusser
 
Posts: 9895
Joined: 2009-10-06 05:53

Re: Unable to locate package for ARM processor?

Postby arzgi » 2018-07-10 16:21

COROVICD wrote:It almost worked, but plot gets thicker. I did:

sudo apt-get update

than I tried this:

dejan@Debian940:~/Downloads$ sudo gdebi libicu-dev_57.1-6+deb9u2_armhf.deb

Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading state information... Done
Requires the installation of the following packages: gcc-6-base:armhf libc6:armhf libgcc1:armhf libicu57:armhf libstdc++6:armhf

and it failed because it needs all the above packages? So I did:

sudo apt-get install gcc-6-base:armhf

E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?



If you now have enabled multiarch, you don't need the downloaded libicu-dev, just install it with apt or apt-get, and it pulls dependencies right.

Code: Select all
apt install libicu-dev:armhf
arzgi
 
Posts: 333
Joined: 2008-02-21 17:03
Location: Finland


Return to Installation

Who is online

Users browsing this forum: No registered users and 5 guests

fashionable