From owner-freebsd-questions@FreeBSD.ORG Wed Jun 4 22:54:52 2008 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 B7DF51065671 for ; Wed, 4 Jun 2008 22:54:52 +0000 (UTC) (envelope-from phusion2k@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.248]) by mx1.freebsd.org (Postfix) with ESMTP id 6DBF18FC23 for ; Wed, 4 Jun 2008 22:54:52 +0000 (UTC) (envelope-from phusion2k@gmail.com) Received: by an-out-0708.google.com with SMTP id b33so84143ana.13 for ; Wed, 04 Jun 2008 15:54:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=BhTXimzFHMT9L8MxHRN1u4sWmTKHzj2wPps5tSy8Yr0=; b=NUFGB/XbT3ZFWk3O0xurLsUJ2ByMvDcu06aC49kirwVwbOwiDP+Mi1z+Eo9B3FVkZ3 808PqQdqxApwrNEIQ9QkDoMHFjcEINEhCRGZKJ+9GfQMr2u18T2j4/uFW6rfecgEvQsz GSSsqswR8wW8mpN6Dg1938k90iyLQPRUySYng= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=dVQibPc77Bt0Fs50b7WjY+GT+GwUoGgm4qo3GogpCvNe1/9tfJPXWejbof4aYhI9M2 QYaZBS5oWkufNlrtpPnsuwLrZlk/glU7+Lbi93KJvQpILOp3uUwS1uV9c5LkyvNsFb/I SQUXJDKNRDWiGtpOADpoHbPrd1wM4sNfTpno4= Received: by 10.100.172.16 with SMTP id u16mr883338ane.9.1212618429261; Wed, 04 Jun 2008 15:27:09 -0700 (PDT) Received: by 10.100.239.12 with HTTP; Wed, 4 Jun 2008 15:27:09 -0700 (PDT) Message-ID: Date: Wed, 4 Jun 2008 17:27:09 -0500 From: Phusion To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: Errors with pkg_add X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Jun 2008 22:54:52 -0000 I am running FreeBSD 7.0-STABLE i386 and am having problems with pkg_add. I can install packages as the root user without problems. - pkg_add -r packages, works when running as root - pkg_add -r packages, errors out when using sudo % sudo pkg_add -r openssl Error: FTP Unable to get ftp://ftp4.us.freebsd.org/pub/FreeBSD/ports/i386/packages-7-stable/Latest/openssl.tbz: Syntax error, command unrecognized pkg_add: unable to fetch 'ftp://ftp4.us.freebsd.org/pub/FreeBSD/ports/i386/packages-7-stable/Latest/openssl.tbz' by URL % cat /usr/local/etc/sudoers Defaults env_keep += "PKG_PATH PKG_DBDIR PKG_TMPDIR TMPDIR PACKAGEROOT PACKAGESITE PKGDIR" Defaults env_keep += "PORTSDIR PORTS_INDEX PORTS_DBDIR PACKAGES PKGTOOLS_CONF" root ALL=(ALL) ALL %wheel ALL=(ALL) NOPASSWD: ALL This user is a member of the wheel group so no password is required. Both this user and root user are using the csh with the following in .cshrc. setenv PACKAGESITE ftp://ftp4.us.freebsd.org/pub/FreeBSD/ports/i386/packages-7-stable/Latest/ Let me know if you have any ideas. Thanks. Phusion