LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-26-2012, 04:34 AM   #1
k84834
Member
 
Registered: Aug 2012
Posts: 142

Rep: Reputation: Disabled
Unhappy I can not install any packages with dpkg!!


Hi
I have a problem with installed dpkg :
I have installed an LFS system and I want to install other packages with dpkg/apt. for this reason, I have installed dpkg but there are problems:
when I installed dpkg-1.15.8.13 package, there is not any status file. I run "touch /var/lib/dpkg/status" but the status file contained anything. now I can't install any packages with dpkg. this is one of my problems. alternative I recieve this message:
Code:
dpkg: error processing apt_0.5.4_i386.deb (--install):
 package architecture (i386) does not match system ()
Errors were encountered while processing:
 apt_0.5.4_i386.deb
how can I determine installed packages from source(that installed in LFS system) to dpkg?!
 
Old 11-26-2012, 08:26 AM   #2
VDP76
Member
 
Registered: Apr 2010
Location: Bayreuth, Germany
Distribution: CrunchBang Linux (#!)
Posts: 111

Rep: Reputation: 19
hi k84834,
are your system and OS 64bit!? you could try opening a terminal and typing in:
Code:
sudo dpkg --add-architecture i386
sudo apt-get update
and then re-issue the installation of apt_0.5.4_i386.deb

I hope it help.
 
Old 11-26-2012, 08:36 AM   #3
k84834
Member
 
Registered: Aug 2012
Posts: 142

Original Poster
Rep: Reputation: Disabled
Hi
thank you for your reply VDP76
No, my system is 32 bit. the result of "uname -m" command is "i686".
I installed dpkg-1.15.8.13 and it hasn't --add-architecture option. and I still dose not installed apt package. I peresent my question in debian forum, with more explanation. please see this link
 
Old 11-26-2012, 11:36 PM   #4
k84834
Member
 
Registered: Aug 2012
Posts: 142

Original Poster
Rep: Reputation: Disabled
can any one help me???
 
Old 11-27-2012, 03:11 AM   #5
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
A test with dpkg-1.13.11 on a non Debian OS :
touch /var/lib/dpkg/status
touch /var/lib/dpkg/available
touch /usr/local/sbin/update-rc.d
chmod 0755 /usr/local/sbin/update-rc.d
..... And no problems doing : # dpkg -i package_i386.deb
I.e. it works if the package has no dependencies.
An LFS OS has no trace of any Debian basic packages ( like glibc ),
and the option '--force-all' will be required to install *.deb.

About 'apt' : Please try out a later version. "apt_0.5.4" is 10 years old !
0.8.10.3 : http://ftp.de.debian.org/debian/pool...eeze1_i386.deb

.
 
Old 11-27-2012, 04:28 AM   #6
k84834
Member
 
Registered: Aug 2012
Posts: 142

Original Poster
Rep: Reputation: Disabled
Hi knudfl
I did your suggestion but occur same error as before.
Code:
root [ /sources ]# dpkg --force-all -i apt_0.8.10.3+squeeze1_i386.deb 
tar: Skipping to next header
tar: Exiting with failure status due to previous errors
dpkg-deb: subprocess tar returned error exit status 2
dpkg: error processing apt_0.8.10.3+squeeze1_i386.deb (--install):
 subprocess dpkg-deb --control returned error exit status 2
Errors were encountered while processing:
 apt_0.8.10.3+squeeze1_i386.deb


root [ /sources ]# dpkg --force-all -i dpkg_1.13.26_i386.deb 
tar: Skipping to next header
tar: Exiting with failure status due to previous errors
dpkg-deb: subprocess tar returned error exit status 2
dpkg: error processing dpkg_1.13.26_i386.deb (--install):
 subprocess dpkg-deb --control returned error exit status 2
Errors were encountered while processing:
 dpkg_1.13.26_i386.deb
root [ /sources ]#

Last edited by k84834; 11-27-2012 at 04:32 AM.
 
Old 11-27-2012, 04:47 AM   #7
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:
.. but occur same error as before
That's a new error, not shown before ?

Didn't you already have 'dpkg' installed ? Ref. post # 1.
The version dpkg_1.13.26 is a random choice used in post # 5.

And why do you want 'apt' ? No apt functions will work in an LFS OS.

Dpkg can be quite handy to have around. Unpacking .deb packages, etc.
And to install a few .deb packages.
But : The installpkg / removepkg tools from Slackware/a/pkgtools
seem more versatile : Works with packages.tgz / .txz .
And .deb / .rpm packages are easy to convert to .tgz .
Then you would have no dependency issues.

.
 
  


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
how to dpkg install from a folder containing all packages including dependencies?? bhupinderjitbawa Linux - Software 1 05-22-2011 01:54 PM
apt/dpkg: How do I segregate user application packages from system packages? boxyzzy Ubuntu 2 12-03-2010 11:04 AM
how to use apt-get/aptitude/dpkg in ubuntu to install packages on a HDD (booting ubuntu from CD) gujedan Linux - Newbie 1 10-07-2010 06:02 AM
Help using dpkg to build and install debian packages Mahonri Linux - General 1 07-24-2007 09:44 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 - Software

All times are GMT -5. The time now is 09:46 AM.

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