Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
PORTAGE_BZIP2_COMMAND setting is invalid: 'bzip2'
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
xsilentmurmurx
Apprentice
Apprentice


Joined: 23 Oct 2009
Posts: 233

PostPosted: Sun Nov 25, 2012 10:34 pm    Post subject: PORTAGE_BZIP2_COMMAND setting is invalid: 'bzip2' Reply with quote

Hello everyone

I am trying to install Gentoo on my laptop using a Fedora 17 live CD.

I followed the steps in the Installation docs found on the Gentoo website as well as the handbook, but when i reached the step for chrooting and env-update, i received the following error:

Code:
localhost / # env-update
PORTAGE_BZIP2_COMMAND setting is invalid: 'bzip2'
PORTAGE_BZIP2_COMMAND setting from make.globals is invalid: 'bzip2'
>>> Regenerating /etc/ld.so.cache...


How do I go about fixing this issue so I dont get this error any more and I can continue with my installation smoothly?

All help is GREATLY appreciated!!!!

also an unrelated question

I have Windows 7 already installed on the laptop and I want to set up my grub in such a way that if gentoo is not chosen by the user during the GRUB menu, the system will automatically boot into Windows 7. Here is my partition layout:

Code:
[root@localhost gentoo]# fdisk -l /dev/sda

Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xac03e4ef

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1              63    29366819    14683378+  27  Hidden NTFS WinRE
/dev/sda2   *    29366820    29575664      104422+   7  HPFS/NTFS/exFAT
/dev/sda3        29575665   404516699   187470517+   7  HPFS/NTFS/exFAT
/dev/sda4       404516700   488397167    41940234    5  Extended
/dev/sda5       404518748   404723547      102400   83  Linux
/dev/sda6       404725596   411017051     3145728   82  Linux swap / Solaris
/dev/sda7       411019100   488397167    38689034   83  Linux


sda1 is the hidden partition, sda2 is the recovery partition, sda3 is the main Windows 7 Partition (The C:/ partition) and Sda5 is /boot, sda6 is swap and sda7 is /root which are all for Gentoo.

What should I do in my grub.conf file to make Windows 7 boot by default if no one chooses anything from the menu?


Thanks for ALL of your help!

oh! one last question, will it be possible for me to install X, LXDE, and wireless adapter drivers all through the chrooted environment or do i have to boot into the new environment before?
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Sun Nov 25, 2012 11:50 pm    Post subject: Reply with quote

xsilentmurmurx,

Did you make any changes to /usr/share/portage/config/make.globals or override it make.conf :?:

The entry should be PORTAGE_BZIP2_COMMAND="bzip2"

For grub to default to win set the default variable to whatever windows is :wink:
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
xsilentmurmurx
Apprentice
Apprentice


Joined: 23 Oct 2009
Posts: 233

PostPosted: Tue Nov 27, 2012 12:54 am    Post subject: Reply with quote

BillWho wrote:
xsilentmurmurx,

Did you make any changes to /usr/share/portage/config/make.globals or override it make.conf :?:

The entry should be PORTAGE_BZIP2_COMMAND="bzip2"

For grub to default to win set the default variable to whatever windows is :wink:


Hey there

I tried the PORTAGE_BZIP2_COMMAND="bzip2" in make.conf but that didnt work either!

how do i set the default to windows in grub?

Sorry for all of the questions, im still learning!
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Tue Nov 27, 2012 1:26 am    Post subject: Reply with quote

xsilentmurmurx wrote:
how do i set the default to windows in grub? ,


Just follow the boot loader setup page here

Code:
# Which listing to boot as default. 0 is the first, 1 the second etc.
default 1

title Gentoo Linux 3.4.9
# Partition where the kernel image (or operating system) is located
root (hd0,0)
kernel /boot/kernel-3.4.9-gentoo root=/dev/sda3

title Windows XP
rootnoverify (hd0,5)
makeactive
chainloader +1

The above will default to Windows XP
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
BobWya
Apprentice
Apprentice


Joined: 12 Aug 2012
Posts: 228
Location: Cambridge,UK

PostPosted: Mon Sep 02, 2013 11:02 pm    Post subject: Re: PORTAGE_BZIP2_COMMAND setting is invalid: 'bzip2' Reply with quote

xsilentmurmurx wrote:
Hello everyone

I am trying to install Gentoo on my laptop using a Fedora 17 live CD.

I followed the steps in the Installation docs found on the Gentoo website as well as the handbook, but when i reached the step for chrooting and env-update, i received the following error:

Code:
localhost / # env-update
PORTAGE_BZIP2_COMMAND setting is invalid: 'bzip2'
PORTAGE_BZIP2_COMMAND setting from make.globals is invalid: 'bzip2'
>>> Regenerating /etc/ld.so.cache...


How do I go about fixing this issue so I dont get this error any more and I can continue with my installation smoothly?



Hey better late than never... Might help someone else out in this situation... :-)

My procedure for chrooting into Gentoo from other distros...

Code:
gentoo_root_mountpoint=???
mount -o bind /proc "${gentoo_root_mountpoint}/proc"
mount --rbind /sys "${gentoo_root_mountpoint}/sys"
mount --rbind /dev "${gentoo_root_mountpoint}/dev"

chroot "${gentoo_root_mountpoint}" /bin/env -i TERM=$TERM "/bin/bash"


Then (in the chroot environment) enter:
Code:
source /etc/profile
env-update
export PS1="(CHROOT) $PS1"



It's basically a PATH refresh issue (or lack of)...
On Gentoo:
Code:
whereis bzip2
bzip2: /bin/bzip2 /usr/share/man/man1/bzip2.1.bz2


On Arch (- probably will be the same on Fedora):
Code:
whereis bzip2
bzip2: /usr/bin/bzip2 /usr/share/man/man1/bzip2.1.gz


Bob
Back to top
View user's profile Send private message
ClientAlive
n00b
n00b


Joined: 07 Jul 2011
Posts: 33

PostPosted: Sun Oct 27, 2013 9:11 pm    Post subject: Reply with quote

Bob,

Just wanted to let you know it did help me. So often a person finds the relevant post for their problem; but, somewhere along the line, the op says he solved it but doesn't tell how, or, for whatever reason the answer is not actually disclosed (just tell you it was solved but not how). Thanks man. Much appreciated.

Fwiw, I was going off of http://www.gentoo.org/doc/en/altinstall.xml <- which lists env-update before source /etc/profile (that was giving me an error). When I issued them in the reverse order (source /etc/profile first) all seems to have worked fine. At least there were no errors anyway.


Peace
Jake
Back to top
View user's profile Send private message
BobWya
Apprentice
Apprentice


Joined: 12 Aug 2012
Posts: 228
Location: Cambridge,UK

PostPosted: Sun Oct 27, 2013 10:58 pm    Post subject: Reply with quote

ClientAlive wrote:
Bob,

Just wanted to let you know it did help me. So often a person finds the relevant post for their problem; but, somewhere along the line, the op says he solved it but doesn't tell how, or, for whatever reason the answer is not actually disclosed (just tell you it was solved but not how). Thanks man. Much appreciated.

Fwiw, I was going off of http://www.gentoo.org/doc/en/altinstall.xml <- which lists env-update before source /etc/profile (that was giving me an error). When I issued them in the reverse order (source /etc/profile first) all seems to have worked fine. At least there were no errors anyway.


Peace
Jake


No problem Jake,

Understanding why the order of the commands is useful. Both commands, source /etc/profile & env-update are basically just calling "human-readable" scripts - just fire them update in your text editor of choice!

The /etc/profile BASH script sets all the essential system paths.
env-update (which is a python script) will not work if your python path (or default version) is different between the "host distro" and the Gentoo chroot. But naturally it will work after source /etc/profile is executed - as all the system paths are then correctly initialised for the Gentoo installed applications...

All the best,
Robert
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum