|
OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD. |
|
Thread Tools | Display Modes |
|
|||
pkg_add - can't resolve <packagename>
Hi there,
after a shot journey into the world of NetBSD I switched back to OpenBSD (for several reasons). But now, after I reinstalled OpenBSD 4.4 I'm into a strange problem. I have added a PKG_PATH to my .profile (and logged out and in): Quote:
Quote:
Quote:
|
|
|||
No probs with both:
Quote:
|
|
|||
Kinda seems like you're setting the environment variable for a user.. but then.. logging into root to install the package.
How are you logging into root? login? su? sudo? More info please.. |
|
|||
Quote:
Funny thing - I just tried out a different mirror and it worked. Quote:
Quote:
|
|
|||
I found a similar problem but with AMD64. It seems to me that alot of the mirrors are missing packages or parts of packages. For example I had to look far and wide for a mirror that even had RARCRACK. pkg_add died in the middle so I wound up downloading the ports tree and building it from source instead.
This may be related to your problem or not.....
__________________
BSDForums.org refugee #27 Multibooting with LILO |
|
|||
Please consider this
Code:
j65nko@hercules[~]export PKG_PATH=ftp://ftp.freenet.de/pub/ftp.openbsd.org/pub/OpenBSD/4.4/packages/i386/ j65nko@hercules[~]echo $PKG_PATH ftp://ftp.freenet.de/pub/ftp.openbsd.org/pub/OpenBSD/4.4/packages/i386/ j65nko@hercules[~]su root Password: # echo $PKG_PATH ftp://ftp.freenet.de/pub/ftp.openbsd.org/pub/OpenBSD/4.4/packages/i386/ # exit j65nko@hercules[~]su - root Password: Terminal type? [xterm] root@hercules[~]echo $PKG_PATH root@hercules[~]
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump |
|
|||
Quote:
|
|
|||
It's pretty obviously, one resets the environment.. the other does not.
su - root is the deprecated form of su -l root. Quote:
|
|
|||
I set and export the variable PKG_PATH as user J65nko. That means that all subsequent commands will be able to see, and use the contents of PKG_PATH.
When I su root I switch user to 'root', but 'root' retains most of my environment, and thus the PKG_PATH variable. However, a su - root simulates a full login as root, and discards most of j65nko's environment variables, including the PKG_PATH. That is why echo'ing PKG_PATH produces nothing.
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump |
|
|||
I think this was a server problem.. relevant post below.
http://marc.info/?l=openbsd-ports&m=123317771715254&w=2 The fix in this case is simple.. export PKG_PATH=ftp://ftp.freenet.de/pub/ftp.openbsd.org/pub/OpenBSD/4.4/packages/i386 Remove the trailing forward slash. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
my pf won't allow my server to resolve | revzalot | OpenBSD Security | 21 | 12th September 2009 10:39 AM |
My version of pkg_add :) | DNAeon | FreeBSD Ports and Packages | 26 | 15th October 2008 06:58 AM |
pkg_add g95;g95 x.f95: cannot find g95 | enpey | OpenBSD Packages and Ports | 8 | 27th August 2008 12:48 AM |
pkg_add -r does not use exported packagesite | kasse | FreeBSD Ports and Packages | 16 | 26th August 2008 08:42 PM |
pkg_add error | buba | OpenBSD Packages and Ports | 4 | 13th June 2008 03:29 PM |