|
OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD. |
|
Thread Tools | Display Modes |
|
|||
"No package available in the PKG_PATH" error
Good evening,
I retouve with an error PHP Code:
I DNS resolution in my BSDBox it in my Lesolv.conf PHP Code:
|
|
|||
What is your PKG_PATH? Please post the output of:
Code:
$ echo $PKG_PATH Code:
# nameserver 192.168.1.1 nameserver 208.67.222.222 nameserver 208.67.220.220
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump Last edited by J65nko; 11th January 2009 at 02:03 AM. Reason: Use 'echo' instead of 'cat'. Thanks, jggimi ;) |
|
|||
Hello
Apparently when I type the command echo $PKG_PATH PHP Code:
|
|
|||
I use a simple script to set and export the PKG_PATH variable.
Code:
# Set PKG_PATH and PKG_CACHE # $Id: PKGenv,v 1.2 2009/01/11 12:29:54 j65nko Exp $ # ------------------------------ # IMPORTANT use "." to source this script!!! # # . ./PKGenv # ------------------------------ # The PKG_PATH variable needs to be set # and exported in the current shell/xterm ! # 'sh ./PKGenv' will not work! if [ "$(id -u)" -ne 0 ]; then echo PKGenv : Remember you are not ROOT !! fi # ---- VERSION or RELEASE VERSION=snapshots VERSION=4.4 # --- Architecture ARCH=amd64 ARCH=i386 # -- from man pkg_add (1) # If the environment variable PKG_CACHE is set, every package retrieved # from a distant location will also be copied here. # -- make sure the PATH ends with a '/' ! PKG_CACHE=/home/packages/ export PKG_CACHE mkdir -p ${PKG_CACHE} # -- make sure the PATH ends with a '/' ! PKGDIR=pub/OpenBSD/${VERSION}/packages/${ARCH}/ # -- sites export alberta=ftp://ftp.openbsd.org/${PKGDIR} export stacken=ftp://ftp.stacken.kth.se/${PKGDIR} export plig=ftp://ftp.plig.org/${PKGDIR} export hostfuss=ftp://mirror.hostfuss.com/${PKGDIR} export calyx=ftp://ftp.calyx.nl/${PKGDIR} export nluug=ftp://ftp.nluug.nl/${PKGDIR} export plato=scp://plato.utp.xnet/home/packages/ # -- for testing #for site in alberta stacken plig hostfuss calyx nluug plato; do # eval echo \$${site} #done # -- actual setting and export #PKG_PATH=${PKG_CACHE}:${alberta} PKG_PATH=${plig} export PKG_PATH echo ------------------------------------ # env TZ=Europe/Amsterdam date # env TZ=UTC date # env TZ=Canada/Mountain date # env TZ=MST date # echo ------------------------------------ dmesg | head -2 echo Current settings echo ------------------------------------ env | grep PKG echo ------------------------------------ Code:
$ . ./PKGenv j65nko@hercules[~]. ./PKGenv PKGenv : Remember you are not ROOT !! ------------------------------------ OpenBSD 4.2 (GENERIC) #1179: Tue Aug 28 10:37:50 MDT 2007 deraadt@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC Current settings ------------------------------------ PKG_CACHE=/home/packages/ PKG_PATH=ftp://ftp.plig.org/pub/OpenBSD/4.4/packages/i386/ ------------------------------------
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump |
|
|||
Jggimi, I wrote this script for snapshot packages testing. For snapshots I always had to replace <my.nearest.mirror> with
<my.nearest.mirror.which.has.completely.rsynced.wi th.ftp.openbsd.org> By storing the ftp sites in variables named 'plig' or 'stacken', I can easily do things like this Code:
# export PKG_PATH=${stacken} # echo $PKG_PATH ftp://ftp.stacken.kth.se/pub/OpenBSD/snapshots/packages/amd64/ Code:
# export PKG_PATH=$plato:$PKG_PATH # echo $PKG_PATH scp://plato.utp.xnet/home/packages/:ftp://ftp.stacken.kth.se/pub/OpenBSD/snapshots/packages/amd64/ You also can place two ftp sites in your PKG_PATH. If one happens to be temporarily out of service, or the name cannot be resolved in DNS, then the other one will be used: Code:
# export PKG_PATH=$plig:$stacken # echo $PKG_PATH ftp://ftp.plig.org/pub/OpenBSD/4.4/packages/amd64/:ftp://ftp.stacken.kth.se/pub/OpenBSD/4.4/packages/amd64/
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump |
|
|||
in which directory I add the file PKGenv.txt ?
|
|
|||
Because I always become root to add packages, I have it in root's home directory "/root".
Code:
j65nko@hercules[~]su - root Password: Terminal type? [xterm] root@hercules[~]mv /home/j65nko/PKGenv.txt PKGenv Code:
root@hercules[~]. ./PKGenv ------------------------------------ OpenBSD 4.2 (GENERIC) #1179: Tue Aug 28 10:37:50 MDT 2007 deraadt@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC Current settings ------------------------------------ PKG_CACHE=/home/packages/ PKG_PATH=ftp://ftp.plig.org/pub/OpenBSD/4.4/packages/amd64/ ------------------------------------ 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 |
|
|||
Hello
I just do the same manipulation it m'affiche toujour error PHP Code:
Tape the command pkg_add error pkg_path Last edited by Nk2Network; 11th January 2009 at 10:02 PM. |
|
|||
Which error? I noticed you edited your post, but you still have not shown us exactly the command you typed, and which error message it produced
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump |
|
|||
When I use the command pkg_add pkg_add ftp://ftp.openbsd.org/pub/OpenBSD/4....get-1.11.3.tgz pas de problème il fonctionne
When I use the command pkg_add pkg_add gimp error pkg_path |
|
|||
Set the PKG_PATH to ftp.openbsd.org in Alberta, Canada with:
Code:
# export PKG_PATH=$alberta
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump |
|
|||
Bonjour,
merci beaucoup exemple que je tape la command en ssh thank you very much when I type the command shh pkg_add gimp PHP Code:
pkg_add gimp PHP Code:
|
|
|||
Nk2Network, It is clear that you cannot comprehend our instructions.. perhaps it might be worth reading the FAQ in your language of choice.
This will save us from repeating instructions in frustration. http://openbsd.org/faq/fr/index.html http://openbsd.org/faq/fr/faq15.html Take care. |
|
|||
@BSDfan666: I see progress in the posts. Besides, I understand French
Nk2Network,: If you use ssh to login to another machine you have another login session. The PKG_PATH setting is local to your login session. For example : Code:
j65nko@hercules[~]. ./PKGenv PKGenv : Remember you are not ROOT !! ------------------------------------ OpenBSD 4.2 (GENERIC) #1179: Tue Aug 28 10:37:50 MDT 2007 deraadt@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC Current settings ------------------------------------ PKG_CACHE=/home/packages/ PKG_PATH=ftp://ftp.plig.org/pub/OpenBSD/4.4/packages/amd64/ ------------------------------------ j65nko@hercules[~]echo $PKG_PATH ftp://ftp.plig.org/pub/OpenBSD/4.4/packages/amd64/ Code:
j65nko@hercules[~]ssh j65nko@parmenides.utp.xnet Last login: Mon Jan 12 01:28:58 2009 from hercules.utp.xnet [snip] Welcome to OpenBSD: The proactively secure Unix-like operating system. [snip] j65nko@parmenides[~]echo $PKG_PATH j65nko@parmenides[~]exit Connection to parmenides.utp.xnet closed. But it still is set on 'hercules': Code:
j65nko@hercules[~]echo $PKG_PATH ftp://ftp.plig.org/pub/OpenBSD/4.4/packages/amd64/ j65nko@hercules[~] Code:
$ dig ftp.plig.org Does it help if you specify the complete package name: pkg_add -vv gimp-2.4.6p1.tgz ?
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump |
|
|||
Hello,
I just follow the instructions you have given me apparently it works properly PHP Code:
specify the complete package name pkg_add -vv gimp-2.4.6p1.tgz PHP Code:
To concludI e my first problem solved, it remains just a small error It's not very serious I watch this more closely Thank you for your help and again sorry for my english is not very good |
|
|||
Hello,
I'm not misinformed about the problems I think my problem is dnsd,Manual network config via "ifconfig" it shows more thoroughly the properties of network connections. PHP Code:
In the file /etc/resolv.conf default gateway: 192.168.1.1 (nameserver 192.168.1.1), the same IP address is assigned to my Internet access providers to configure the router.Modem is connected has a network (switch) 5 port currently 2 computer log |
|
|||
I reinstalled and it works.
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Fixed "xinit" after _7 _8, "how" here in case anyones' "X" breaks... using "nvidia" | jb_daefo | Guides | 0 | 5th October 2009 09:31 PM |
"Thanks" and "Edit Tags". | diw | Feedback and Suggestions | 2 | 29th March 2009 12:06 AM |
Help! My system "lost" my bind94 package... | pormogo | FreeBSD Ports and Packages | 2 | 19th August 2008 03:41 PM |
CF, as wd0, 4.3 dmesg "DMA error" | s2scott | OpenBSD Installation and Upgrading | 11 | 10th May 2008 08:21 AM |