DaemonForums  

Go Back   DaemonForums > NetBSD > NetBSD Package System (pkgsrc)

NetBSD Package System (pkgsrc) Installation and upgrading of packages on NetBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 20th September 2021
netbsdnew17 netbsdnew17 is offline
New User
 
Join Date: Sep 2021
Posts: 1
Default pkg_add pkgin error

#PKG_PATH=http://cdn.NetBSD.org/pub/pkgsrc/packages/NetBSD/$/i386/$/9.1/All/
# export PKG_PATH
# pkg_add pkgin
# pkg_add: Cant process file.....

pkg_add http://ftp.netbsd.org/pub/pkgsrc/pac...20.12.1nb1.tgz

pkg_add: cant process, pkg_add: no pkg found for, pkg_add: 1 package addition failed

Ping works
Reply With Quote
  #2   (View Single Post)  
Old 21st September 2021
Sensucht94's Avatar
Sensucht94 Sensucht94 is offline
Real Name: Paolo Vincenzo Olivo
Shell Scout
 
Join Date: Oct 2017
Location: Rome
Posts: 134
Default

Quote:
Originally Posted by netbsdnew17 View Post
#PKG_PATH=http://cdn.NetBSD.org/pub/pkgsrc/packages/NetBSD/$/i386/$/9.1/All/
This looks like a malformed URL. What are the '$' supposed to be expanded into? Also, remove the trailing slash (make it end with 'All' and as opposed to 'All/'). A properly formatted PKG_PATH for your use case would be
Code:
PKG_PATH="https://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/i386/9.1/All"
#or
PKG_PATH="https://ftp.NetBSD.org/pub/pkgsrc/packages/NetBSD/$(uname -p)/$(uname -r|cut -f '1 2' -d.|cut -f 1 -d_)/All"
You can set this repo (without quotation marks) in /usr/pkg/etc/pkgin/repositories.conf for pkgin to use.

pkgin-20.12.1 is not at patch level -1 for 9.1/i386 platform, remove *nb1*; the correct URL is: https://ftp.netbsd.org/pub/pkgsrc/pa...in-20.12.1.tgz (notice pkg_add/pkgin speak SSL, so you can safely fetch binary packages over an encrypted network).
__________________
“Mi casa tendrá dos piernas y mis sueños no tendrán fronteras„
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
pkg_add error Luarini OpenBSD Packages and Ports 3 19th July 2019 09:53 PM
pkgin pkgsrc pkg_add errors gpatrick NetBSD Package System (pkgsrc) 8 11th November 2015 10:42 PM
Weird PKG_ADD error EverydayDiesel OpenBSD Packages and Ports 3 3rd June 2015 01:24 AM
pkgin in vs. pkg_add DaBSD NetBSD Package System (pkgsrc) 3 3rd May 2015 11:48 PM
pkg_add error buba OpenBSD Packages and Ports 4 13th June 2008 03:29 PM


All times are GMT. The time now is 01:35 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick