From owner-freebsd-questions@FreeBSD.ORG Mon Oct 1 06:02:56 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DE818106566B for ; Mon, 1 Oct 2012 06:02:56 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id 9FB808FC0C for ; Mon, 1 Oct 2012 06:02:56 +0000 (UTC) Received: from r56.edvax.de (port-92-195-72-25.dynamic.qsc.de [92.195.72.25]) by mx01.qsc.de (Postfix) with ESMTP id D09993CC17; Mon, 1 Oct 2012 08:02:54 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id q9162s54001943; Mon, 1 Oct 2012 08:02:54 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Mon, 1 Oct 2012 08:02:54 +0200 From: Polytropon To: Rod Person Message-Id: <20121001080254.46572b2e.freebsd@edvax.de> In-Reply-To: <20121001200829.2c8afade@atomizer64> References: <20121001200829.2c8afade@atomizer64> Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: "freebsd-questions@freebsd.org" Subject: Re: Port update hosed entire system X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Oct 2012 06:02:57 -0000 On Mon, 1 Oct 2012 20:08:29 -0400, Rod Person wrote: > Hi All, > > I was attempting to update ports that used libogg with the command > > portmaster -d -y -r libogg > > I went away and came back some hours later and some updates had failed. > Now my shell segfaults on any command such as ls, clear or su > I tried to login on another console as root and after giving the > password it just goes back to login. I am at a loss as to what to do to > fix this one. That sounds like a really weird problem. FreeBSD and the ports (which portmaster deals with) are separated systems, so even if you totally hose your ports, the OS should not be affected. You're mentioning the shell: Which one is it? In case it's a shell from ports, _maybe_ that is a problem. In case of root, it should have the system's default shell /bin/csh; the system's scripting and emergency shell /bin/sh should also work. You can get into a state for "tests under mostly defined circumstances" by entering the single user mode and check things, then continue to boot, and finally install what was lost. In worst case, reinstall everything (see EXAMPLES section in "man portmaster"). In ultra-worst case, remove the /usr/local subtree (copy everything you might need afterwards, e. g. config files and your scripts!), repopulate it using the mtree file, and reinstall what you need. That will pull in any dependencies you may not have thought of in the first place. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...