LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 04-04-2012, 07:20 AM   #1
nass
Member
 
Registered: Apr 2006
Location: Athens, Greece
Distribution: slackware, debian, ubuntu
Posts: 666

Rep: Reputation: 39
can't install packages in debian etch under scratchbox - an ARM(EL) architecture


hello every,
i am running the development environment 'scratchbox' , which is pretty much an emulated linux environment for developing code for arm.

the environment is based on debian squeeze and so many tools exist as is from debian.
for example apt-get and dpkg.
basically, i'm trying to install gdb by doing

apt-get update
apt-get install gdb

1st problem was with the update - apt-get couldn't find the package list file in
Quote:
W: Failed to fetch ftp://ftp.debian.org/debian/dists/squeeze/main/binary-arm/Packages.gz Unable to fetch file, server said 'Failed to open file. ' [IP: 130.89.148.12 21]
the problem, as i read, was that binary-arm is being fed from dpkg and it is the systems architecture. so debian has binary-armel folder now, not binary arm.
I managed to circumvent that obstacle by running

fakeroot apt-get -o APT::architecture=armel update

so the update completed nicely.
then I tried to install gdb

Quote:
fakeroot apt-get install gdb
Reading package lists... Done
Building dependency tree... Done
E: Couldn't find package gdb
so i added the arch info again: and things started downloading fine (in jact, it asked me to install quite a few more recent packages and I said yes)

after the packages where downloaded, dpkg halts the execution and says:
Quote:
dpkg: error processing /var/cache/apt/archives/dpkg_1.15.8.12_armel.deb (--unpack):
package architecture (armel) does not match system (arm)
Errors were encountered while processing:
/var/cache/apt/archives/dpkg_1.15.8.12_armel.deb
E: Sub-process dpkg returned an error code (1)
so my question is, how can I install the packages?

Thank you for your help

Last edited by nass; 04-04-2012 at 07:21 AM.
 
Old 04-04-2012, 08:55 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Quote:
dpkg: error processing /var/cache/apt/archives/dpkg_1.15.8.12_armel.deb
Looks like you are trying to replace 'dpkg'. Probably not a good idea.


About gdb : The packages for Debian Lenny includes an 'arm' and an 'armel'.
http://packages.debian.org/lenny/gdb


.
 
Old 04-04-2012, 09:39 AM   #3
nass
Member
 
Registered: Apr 2006
Location: Athens, Greece
Distribution: slackware, debian, ubuntu
Posts: 666

Original Poster
Rep: Reputation: 39
well i'm not. apt-get seems to want to though....
i'm sorry to ask - i'm not familiar with debian - but why do you offer Lenny packages?
I think my scratchbox installation contains squeeze stuff....
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] scratchbox + arm + qemu = "cannot execute c compiled programs" Gobliins Linux - Embedded & Single-board computer 4 02-15-2011 02:21 AM
Hi from Herman, running Debian Squeeze on Sheeva PLUG, ARM architecture herman_swartz LinuxQuestions.org Member Intro 2 06-09-2010 10:30 PM
Installing Bluez on qemu arm using scratchbox cross compiler tums Debian 1 06-01-2008 11:05 AM
install script to install scratchbox in debian culin Debian 1 09-26-2007 12:40 AM
using dpkg to install packages for wrong architecture linuxmandrake Linux - General 2 09-23-2005 04:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 06:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration