LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-27-2010, 09:04 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: 55
Which Ubuntu package includes the chroot command?


Code:
kenny_strawn@kenny-AOA110:/media/Arch Linux 2010.$ sudo chroot .
Floating point exception
kenny_strawn@kenny-AOA110:/media/Arch Linux 2010.$
I want to know how to reinstall chroot so it doesn't do this. What package is it in? I'm lost here. Is it coreutils? If so, reinstalling it didn't work.

Trying to install "chroot" by itself fails: no such package.
 
Old 10-27-2010, 09:25 PM   #2
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
`chroot` on my system is from the "coreutils" package. Will probably be the same on yours.
 
Old 10-28-2010, 01:34 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
Blog Entries: 62

Original Poster
Rep: Reputation: 55
Yeah, I tried (1) reinstalling the coreutils package on my Ubuntu system and (2) reinstalling bash (via tar, not pacman) on the Arch installation -- but neither of the procedures worked. So, I guess it's a bug either (1) with the Arch bash or (2) with Ubuntu's chroot. Will now file the bug.
 
Old 10-28-2010, 01:44 AM   #4
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

Original Poster
Rep: Reputation: 55
https://bugs.launchpad.net/ubuntu/+s...ls/+bug/667610
 
Old 10-28-2010, 07:37 PM   #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
Blog Entries: 62

Original Poster
Rep: Reputation: 55
Apparently, downgrading coreutils to the Lucid version doesn't do much good. It still causes a Floating Point Exception. So, I decided to report a bug on Arch's bug tracker:

https://bugs.archlinux.org/task/21519
 
Old 10-28-2010, 07:48 PM   #6
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,348

Rep: Reputation: 400Reputation: 400Reputation: 400Reputation: 400Reputation: 400
Quote:
Originally Posted by Kenny_Strawn View Post
Apparently, downgrading coreutils to the Lucid version doesn't do much good. It still causes a Floating Point Exception. So, I decided to report a bug on Arch's bug tracker:

https://bugs.archlinux.org/task/21519
I am wondering why you are filing bugs on this. I do not use Arch but have several installs of Ubuntu from 8.04 through 11.04-testing besides the OS I use all the time Debian testing with the 2.6.35 kernel.

I have no trouble with bash scripts at all. I chroot from one OS or another every day.

What I would be thinking about in your position is what I did to cause a self inflicted injury to two fairly different systems.

As one of the guys on the Ubuntu Forums testing sub-forum says in his sig "if it ain't broke you haven't tweeked it enough". I think that if may be that you have tweeked it enough.

Personally, I am very good at doing just that. Makes life so much more interesting.
 
Old 10-28-2010, 07:53 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
Blog Entries: 62

Original Poster
Rep: Reputation: 55
I personally think it is an issue with Arch's /bin/bash specifically, not Ubuntu's problems at all, as I tried downgrading Ubuntu's version of coreutils -- to no avail.

Here's what I get when trying to chroot into the drive:

Code:
kenny_strawn@kenny-AOA110:/media/Arch Linux 2010.$ sudo chroot "$PWD"
Floating point exception
kenny_strawn@kenny-AOA110:/media/Arch Linux 2010.$
See the pattern?

Last edited by Kenny_Strawn; 10-28-2010 at 07:54 PM.
 
Old 10-28-2010, 08:25 PM   #8
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,348

Rep: Reputation: 400Reputation: 400Reputation: 400Reputation: 400Reputation: 400
Not really.

First; while they get the kernel from the same place, the two distros are not closely related.

Second; while there have been some problems with bash in Ubuntu testing (10.04) it was a completion problem and was fixed long ago.

The only pattern I see here is that both systems you are having problems on are administered by you. This is not a condemnation. Maybe even a congratulation.

I have no idea what has caused this problem but I really suspect it to be some, perhaps very small, "improvement" you have made to your systems.

If you have the room, I would do a clean install of either one of them and start comparing your bash related files. It could be that if you do not have room for that, that you could use the Ubuntu Live CD to compare the Ubuntu installed files with.

I have not tried down grading the core utils package but do have some serious doubts that this is a good idea. There is a large difference in the kernel for 10.04 and 10.10. Have not compared the utils packages but I would be surprised if there were not some differences.
 
  


Reply

Tags
chroot, ubuntu+10.10


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
Is It Possible To Use The cd Command in chroot? x24804 Linux - Software 1 07-20-2010 02:57 PM
LXer: Ubuntu Package Management from Command line using apt LXer Syndicated Linux News 0 03-23-2009 08:40 AM
Must Be Wrong chroot or CD command browser Linux - Newbie 4 02-10-2008 08:45 AM
mount command not working in chroot. and now chroot not working mohit.jain Linux From Scratch 5 07-14-2006 04:57 AM
Which YaST package includes View Sytem Log? strangedub Suse/Novell 2 05-04-2005 06:34 AM


All times are GMT -5. The time now is 02:42 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration