LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 07-07-2009, 07:22 PM   #1
BigVig
Member
 
Registered: Feb 2006
Location: Chi-town
Distribution: Debian Sid Amd64
Posts: 108

Rep: Reputation: 15
Question Help uninstalling ia32-apt-get


I am using Debian unstable with the 2.6.28-1-amd64 kernel.

The recent changes in the 32-bit libraries were confusing, I tried to change some stuff, I tried to uninstall some stuff and things are broken.

Now, when I attempt to update my system using synaptic I get the following message ...
Code:
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
Preconfiguring packages ...
(Reading databse ... 176015 files and directories currently installed.)
Removing ia32-apt-get ...
find: '/etc/ia32-apt///': No such file or directory
dpkg: error processing ia32-apt-get (--remove):
 subprocess installed post-removal script returned error exit status 1
Errors were encountered while processing:
 ia32-apt-get

Not all changes and updates succeeded.  For furhter details fo the failure, please expand the 'Details' panel below.
Which is funny because I have no idea where this mystical 'Details' panel is located.

Now, I am going to try to create an ia32-apt-get directory with nothing in it and see if that works, but the man pages have not been helpful, and I'm hoping someone here can point out the least painful way to get my updates working again.
 
Old 07-07-2009, 08:37 PM   #2
mark_alfred
Senior Member
 
Registered: Jul 2003
Location: Toronto, Ontario, Canada
Distribution: Ubuntu Linux
Posts: 1,033

Rep: Reputation: 95
Try "apt-get -f install", or "apt-get -f remove" ("-f" is short for "fix broken"). For more of these tips, see this site here.

Last edited by mark_alfred; 07-07-2009 at 08:43 PM.
 
Old 07-07-2009, 11:00 PM   #3
BigVig
Member
 
Registered: Feb 2006
Location: Chi-town
Distribution: Debian Sid Amd64
Posts: 108

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by mark_alfred View Post
Try "apt-get -f install", or "apt-get -f remove" ("-f" is short for "fix broken"). For more of these tips, see this site here.
I just took a flier and created an '/etc/ia32-apt/' directory and ran 'dpkg --purge ia32-apt-get'. And it seemed to work.

But, then, I typed "sudo apt-get update" and "sudo: apt-get: command not found" is what I got in response. So both my amd64 and ia32 versions of apt-get are goners. I would really like to reinstall apt-get or apt or whatever will restore apt to its proper function.

I tried to update using synaptic and got the following.

Code:
dpkg (subprocess):  failed to exec dpkg-deb to extract control information: no such file or directory
dpkg: error processing /var/cache/apt/archives/ncurses-bin_5.7+20090606-1_amd64.deb (--unpack):
  subprocess dpkg-deb --control returned error exit status 2
Errors were encountered while processing:
  /var/cache/apt/archives/ncurses-bin_5.7+20090606-1_amd64.deb

Not all changes and updates succeeded.  For further details of the failure, please expand the 'Details' panel below.
More 'Details' panel that I cannot find.

Would erasing the contents /var/cache/archives/ be helpful at all?
 
Old 07-08-2009, 01:36 PM   #4
mark_alfred
Senior Member
 
Registered: Jul 2003
Location: Toronto, Ontario, Canada
Distribution: Ubuntu Linux
Posts: 1,033

Rep: Reputation: 95
Getting apt working

Quote:
Originally Posted by BigVig View Post
Would erasing the contents /var/cache/archives/ be helpful at all?
I'm not sure. What I would try is to install (or reinstall) the package apt. So, try downloading the sid apt deb package from sid amd64 apt download page, and then on the downloaded apt package run the command "dpkg -i apt*.deb" on it. It may cite dependency problems, meaning that you'll have to also fetch other packages to install. For this, check out http://packages.debian.org/sid/apt, which tells what all the dependencies for apt are (and, if need be, you can go get those packages, and install them).

Another thing to try too is aptitude (which would spare you having to mess around with dependencies). If apt is broken, perhaps you can install apt via aptitude ("aptitude install apt"), and see if that works.

If apt is already installed, try "dpkg-reconfigure apt", and see if that helps.

Last edited by mark_alfred; 07-08-2009 at 01:47 PM.
 
Old 07-09-2009, 07:34 PM   #5
BigVig
Member
 
Registered: Feb 2006
Location: Chi-town
Distribution: Debian Sid Amd64
Posts: 108

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by BigVig View Post
Code:
dpkg (subprocess):  failed to exec dpkg-deb to extract control information: no such file or directory
dpkg: error processing /var/cache/apt/archives/ncurses-bin_5.7+20090606-1_amd64.deb (--unpack):
  subprocess dpkg-deb --control returned error exit status 2
Errors were encountered while processing:
  /var/cache/apt/archives/ncurses-bin_5.7+20090606-1_amd64.deb

Not all changes and updates succeeded.  For further details of the failure, please expand the 'Details' panel below.
Regardless of which package I attempt to install, I get a variation of the message above.

It seems that dpkg-deb cannot find the control information when attempting to install a package. So, 'dpkg -i *.deb' where *=any package at all does not work.

I have exhausted my shallow set of knowledge and skills here, and I am afraid my only option is to attempt to re-install the system. And I really don't want to do that.

Any further suggestions or help would be appreciated.
 
Old 07-09-2009, 08:06 PM   #6
mark_alfred
Senior Member
 
Registered: Jul 2003
Location: Toronto, Ontario, Canada
Distribution: Ubuntu Linux
Posts: 1,033

Rep: Reputation: 95
It appears that reinstalling is the best option. But, perhaps you could first try installing the source package of dpkg (at http://packages.debian.org/sid/dpkg) and the sources package of apt (at http://packages.debian.org/sid/apt) first, and then see if you can get things going.
 
  


Reply

Tags
amd64, apt, ia32, synaptic


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
removing a IA32 chroot system? deroB Debian 3 02-13-2006 08:46 AM
chroot ia32 on debian linuxmandrake Debian 3 12-11-2005 03:10 PM
amd64 chroot to ia32 kpachopoulos Debian 3 12-02-2005 03:53 PM
linux ia32 or ia 64? Niflheim Linux - Newbie 5 02-25-2005 11:55 AM
IA32, IA64... Which one? kaega2 Linux - Software 1 09-28-2003 04:48 AM


All times are GMT -5. The time now is 02:28 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration