LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 08-28-2010, 03:38 PM   #1
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791
Blog Entries: 62

Rep: Reputation: 56
Trying to build APT: "configure: error: cannot run /bin/bash buildlib/config.sub"


I am trying to build APT from source to replace the buggy APT in Ubuntu 10.04 only to run into the error described in the thread title.

I tried Googling it and all I got were a bunch of hard-to-read IRC logs.

When I clicked "Properties" after right-clicking config.sub in Nautilius, I found out that it was a broken symlink to /usr/share/misc/config.sub.

How do I install that /usr/share/misc/config.sub file (and the other config.guess file that also showed up as broken link) without APT?
 
Old 08-29-2010, 09:25 AM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
Assuming you don't want to compile your dependencies from source as well, you'll have to find a way to fetch the required .deb file(s) and install them manually with dpkg. The same goes for any dependencies of those files.

According to apt-file, that file is provided by the package autotools-dev, at least on Debian. For that matter you generally need to have -dev packages installed for all libraries that the program you're installing depends on.
 
Old 08-29-2010, 09:33 AM   #3
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791

Original Poster
Blog Entries: 62

Rep: Reputation: 56
The problem is that my APT (and for that matter dpkg) has an infinite loop in it. This means that trying to install anything from a .deb file will always hang at "Unpacking" - very painstaking indeed. I may have to reinstall Ubuntu 10.10 Alpha 3 altogether (still have my Live USB) and go from there. I may have to wait for an APT update before I go any further, perhaps when the Ubuntu community removes the infinite loop.
 
Old 08-29-2010, 11:11 AM   #4
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
Well, that's a problem then. But if dpkg alone is affected, then doesn't that make it a dpkg problem, rather than apt?

I can't say if it would work, but you might be able to temporarily replace your binaries with those from a similar working system. IOW, manually replace the /usr/bin executables themselves from a recent live disk or something. If the dependencies aren't too far off they might run.

Of course there's also the risk that it will hose things even further, but it is an idea.
 
Old 08-29-2010, 11:23 AM   #5
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791

Original Poster
Blog Entries: 62

Rep: Reputation: 56
See this bug report for information on my problem.
 
Old 08-29-2010, 11:27 AM   #6
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,887
Blog Entries: 28

Rep: Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534
Do you have an older version of apt in /var/cache/apt/archives? If you do try using dpkg to remove the current one then install the older version.

Or download aptitude and use it.
 
Old 08-29-2010, 05:06 PM   #7
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791

Original Poster
Blog Entries: 62

Rep: Reputation: 56
I also seem to have a similar problem with Ubiquity.
 
  


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
"dpkg error in --configure" in most all (508) programs after "apt-get dist-upgrade" fluffymuffins Debian 3 08-09-2010 03:47 AM
my apt-get does not work :(: "dpkg: error processing python-kaa-base (--configure):" frenchn00b Debian 3 04-22-2008 03:30 PM
error: "c compiler cannot create executables" when trying to run ./configure fedoraemu Linux - Software 2 04-24-2007 07:43 PM
software configure:3474: error: cannot run /bin/sh ./config.sub jialin Debian 0 10-01-2005 07:38 PM
why did bash 2.05b install delete /bin/bash & "/bin/sh -> bash"? johnpipe Linux - Software 2 06-06-2004 06:42 PM

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

All times are GMT -5. The time now is 12:51 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