Linode.com Forum Forum Index Linode.com Forum
Linode Community Forums
 


blocks on a gentoo emerge -DavuN world (SOLVED)

Click here to go to the original topic

 
       Linode.com Forum Forum Index -> Linux, Apache, Mysql and PHP (LAMP) Forum
Author Message
fifo



Joined: 29 Sep 2005
Posts: 68
Location: Miami, Florida

Posted: Tue Dec 05, 2006 6:22 pm    Post subject: blocks on a gentoo emerge -DavuN world (SOLVED)  

[blocks B ] sys-apps/pam-login (is blocking sys-apps/shadow-4.0.18.1)

and

[blocks B ] <net-misc/dhcpcd-2.0.0 (is blocking sys-apps/baselayout-1.12.6)

I have already killed my linode trying to reslove these blocks can someone help me resolve these safely?

I tried emerging dhcpd and that killed my linode.
I also tried removing dhcpd and pam-login and that also killed my linode. Im not sure I guess the dhcpd is used to obtain the address from linode but im not sure exactly.

I have started a clean gentoo install and when I emerge -DavuN world I get these blocks but I am not sure how to get around them without making my linode useless.
Back to top  
fifo



Joined: 29 Sep 2005
Posts: 68
Location: Miami, Florida

Posted: Wed Dec 06, 2006 2:43 pm    Post subject:  

I found this but havent done it yet

Is this safe to do on a linode

"emerge -C pam-login && emerge -1 shadow"

or is this a better solution also from the same post

"emerge --buildpkgonly --nodeps shadow && emerge -C pam-login && emerge --usepkgonly shadow"

found in the following post
http://forums.gentoo.org/viewtopic-p-3178419.html#3178419


Im not sure what the difference would be can someone explain?
this still wouldnt resolve the dhcpdcp block though
Back to top  
fifo



Joined: 29 Sep 2005
Posts: 68
Location: Miami, Florida

Posted: Wed Dec 06, 2006 11:41 pm    Post subject: no guts no glory  

So I decided to give it a shot after reading up a bit!!!

emerge -C pam-login && emerge -1 shadow

it worked like a charm just remember to etc-update

Also restart sshd
/etc/init.d/sshd restart

now on to the dhcpcd problem
Back to top  
fifo



Joined: 29 Sep 2005
Posts: 68
Location: Miami, Florida

Posted: Thu Dec 07, 2006 12:26 am    Post subject:  

so I felt gutsy and tried the same with the other block and well of course it didn't work below is my output.


* The Gentoo Linux system initialization scripts have detected that
* your system does not support UDEV. Since Gentoo Linux has been
* designed with dynamic /dev in mind, it is highly suggested that you
* emerge sys-fs/udev and configure your system to use it.
* Please read the Gentoo Handbook for more information!

* http://www.gentoo.org/doc/en/handbook/

* Thanks for using Gentoo! :)

(hit Enter to continue or wait 15 seconds ...)
* Skipping root filesystem check (fstab's passno == 0) ... [ ok ]
* Remounting root filesystem read/write ... [ ok ]
* Checking all filesystems ... [ ok ]
* Mounting local filesystems ... [ ok ]
* Mounting misc binary format filesystem ... [ ok ]
* Activating (possible) swap ...swapon: cannot stat /dev/ubd/1: No such file or
directory
[ !! ]
* Setting system clock using the hardware clock [UML] ... [ ok ]
* Configuring kernel parameters ... [ ok ]
* Updating environment ... [ ok ]
* Cleaning /var/lock, /var/run ... [ ok ]
* Cleaning /tmp directory ... [ ok ]
* You should stop using /etc/hostname and use /etc/conf.d/hostname
* Setting hostname to ... [ ok ]
* Loading key mappings ... [ ok ]
* Setting user font ... [ ok ]
* Starting lo
* Bringing up lo
* 127.0.0.1/8
[ ok ]
* Adding routes
* 127.0.0.0/8 ... [ ok ]
* Initializing random number generator ... [ ok ]
INIT: Entering runlevel: 3
* sysklogd -> start: syslogd ... [ ok ]
* sysklogd -> start: klogd ... [ ok ]
* Starting eth0
* You are using a deprecated configuration syntax for eth0
* You are advised to read /etc/conf.d/net.example and upgrade it accordingly
* Bringing up eth0
* dhcp
* No DHCP client installed
[ !! ]
* ERROR: cannot start netmount as net.eth0 could not start
* ERROR: cannot start sshd as net.eth0 could not start
* Starting local ... [ ok ]
INIT: no more processes left in this runlevel
Back to top  
c1i77



Joined: 23 Sep 2004
Posts: 70
Location: Delft, Netherlands

Posted: Thu Dec 07, 2006 2:34 am    Post subject:  

fifo wrote:
Code:
 * Starting eth0
* You are using a deprecated configuration syntax for eth0
* You are advised to read /etc/conf.d/net.example and upgrade it accordingly
* Bringing up eth0
* dhcp
* No DHCP client installed
[ !! ]
* ERROR: cannot start netmount as net.eth0 could not start
* ERROR: cannot start sshd as net.eth0 could not start
...



Your emerge got rid of dhcpd (and the dhcp client), so broke your Gentoo/Linode.

A workaround -- until you manage to get dhcpd installed again -- is to add your Linode's IP/gateway addresses to the net.eth0 config file.

Your Linode IP/Gateway addresses are given at: https://www.linode.com/members/netinfo.cfm

For info on how to configure net devices under Gentoo, see:
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=4&chap=1

You'll need the following in the file /etc/init.d/net.eth0:
Code: config_eth0=( "<your Linode IP address>/32" )
routes_eth0=( "default via <Gateway address>" )

Then reboot your Linode.

Regards,

Cliff
Back to top  
fifo



Joined: 29 Sep 2005
Posts: 68
Location: Miami, Florida

Posted: Thu Dec 07, 2006 6:29 am    Post subject:  

Cliff,

Thanks for the reply. I am currently setting up my linode again but havent gotten to this step just yet. Is it wise to do that emerge the way I did? Should I just reemerge dhcpcd when the emerge -C dhcpcd && emerge -1 shadow is done and do my etc-update?
Back to top  
c1i77



Joined: 23 Sep 2004
Posts: 70
Location: Delft, Netherlands

Posted: Thu Dec 07, 2006 7:14 am    Post subject:  

Hi,

If your Linode has no configured network device (implied by the eth0 snippet you posted), you'll need to do the net.eth0 part first. And then run /etc/init.d/net.eth0 start (I guess).

Code:
[blocks B ] <net-misc/dhcpcd-2.0.0 (is blocking sys-apps/baselayout-1.12.6)


When you have network access again, emerge -uv dhcpcd. The latest package seems to be compatible with baselayout so you shouldn't have any trouble installing it ( http://packages.gentoo.org/search/?sstring=dhcpcd ).

Code:
[blocks B ] sys-apps/pam-login (is blocking sys-apps/shadow-4.0.18.1)


It looks as if pam-login has been deprecated -- it is no longer in portage: http://packages.gentoo.org/search/?sstring=pam-login

Code:
emerge -C pam-login && emerge -1 shadow


I guess 'shadow' will replace the functionality of pam-login and therefore, as others have suggested it is safe to do the above.

Good luck,

Cliff

(Debian User :)
Back to top  
fifo



Joined: 29 Sep 2005
Posts: 68
Location: Miami, Florida

Posted: Thu Dec 07, 2006 8:59 am    Post subject:  

Awesome that clears things up. Really appreciate your help. I will let you know how it goes!!! Thanks again!
Back to top  
fifo



Joined: 29 Sep 2005
Posts: 68
Location: Miami, Florida

Posted: Thu Dec 07, 2006 10:42 am    Post subject:  

Ok so heres what I did...

# emerge -c dhcpcd && emerge -1 shadow
# etc-update
# emerge -dhcpcd
# etc-update
# rm /etc/init.d/net.etho
# cd /etc/init.d
# ln -s net.lo net.eth0

This is what killed me that was not correct because I was using the old configuration style
edit /etc/conf.d/net
uncomment the following line
config_eth0=( "dhcp" )

/etc/init.d/net.eth0 restart

rc-update add net.eth0 default

and bam it worked!!!!

Thanks for all your help. Really appreciate it!!!
Back to top  
 
       Linode.com Forum Forum Index -> Linux, Apache, Mysql and PHP (LAMP) Forum
Page 1 of 1