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

 

 

 

Unable to locate package for ARM processor?

Ask for help with issues regarding the Installations of the Debian O/S.
Post Reply
Message
Author
COROVICD
Posts: 9
Joined: 2018-07-06 20:10

Unable to locate package for ARM processor?

#1 Post by COROVICD »

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/arm ... v/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.

arzgi
Posts: 1185
Joined: 2008-02-21 17:03
Location: Finland
Been thanked: 31 times

Re: Unable to locate package for ARM processor?

#2 Post by arzgi »

You have to enable multiarch support: https://wiki.debian.org/Multiarch/

COROVICD
Posts: 9
Joined: 2018-07-06 20:10

Re: Unable to locate package for ARM processor?

#3 Post by COROVICD »

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?

User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: Unable to locate package for ARM processor?

#4 Post by GarryRicketson »

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.

COROVICD
Posts: 9
Joined: 2018-07-06 20:10

Re: Unable to locate package for ARM processor?

#5 Post by COROVICD »

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.

arzgi
Posts: 1185
Joined: 2008-02-21 17:03
Location: Finland
Been thanked: 31 times

Re: Unable to locate package for ARM processor?

#6 Post by arzgi »

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.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Unable to locate package for ARM processor?

#7 Post by Head_on_a_Stick »

deadbang

COROVICD
Posts: 9
Joined: 2018-07-06 20:10

Re: Unable to locate package for ARM processor?

#8 Post by COROVICD »

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?

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

Re: Unable to locate package for ARM processor?

#9 Post by stevepusser »

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

arzgi
Posts: 1185
Joined: 2008-02-21 17:03
Location: Finland
Been thanked: 31 times

Re: Unable to locate package for ARM processor?

#10 Post by arzgi »

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

Post Reply