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 2 Weeks Ago
dnslc dnslc is offline
Port Guard
 
Join Date: Jun 2020
Location: Australia
Posts: 12
Default Problem with pkg_add

I am trying to install packages on NetBSD but it isn't working.

Code:
armv7$ export PKG_PATH="http://cdn.netbsd.org/pub/pkgsrc/packages/NetBSD/earmv7hf/9.0/All"
armv7$ pkg_add -v sudo
pkg_add: Can't create pkgdb entry: /var/db/pkg/sudo-1.8.31: Permission denied
pkg_add: no files matching ``/var/db/pkg/sudo-1.8.31/+*'' found: No such file or directory
pkg_add: 1 package addition failed
so I log into root and install it
Code:
armv7$ su
Password:
armv7# pkg_add -v sudo
and sudo successfully installed

but now I can't install anything else
Code:
armv7$ sudo pkg_add -v wget
pkg_add: no pkg found for 'wget', sorry.
pkg_add: 1 package addition failed
armv7$ sudo pkg_add -v emacs
pkg_add: no pkg found for 'emacs', sorry.
pkg_add: 1 package addition failed
armv7$ echo $PKG_PATH
ftp://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/earmv7hf/9.0/All
I have tried both
Code:
armv7$ export PKG_PATH="http://cdn.netbsd.org/pub/pkgsrc/packages/NetBSD/earmv7hf/9.0/All"
and
Code:
armv7$ export PKG_PATH="ftp://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/earmv7hf/9.0/All"
It was working just a few minutes ago, not sure why it stopped.
I have also been to those links and confirmed that the packages are in fact there.
I am still able to ping websites so it isn't a network problem.
Reply With Quote
  #2   (View Single Post)  
Old 2 Weeks Ago
dnslc dnslc is offline
Port Guard
 
Join Date: Jun 2020
Location: Australia
Posts: 12
Default

Just started working again
Code:
armv7$ pkg_add -v mg
pkg_add: Can't create pkgdb entry: /var/db/pkg/mg-20110905nb4: Permission denied
pkg_add: no files matching ``/var/db/pkg/mg-20110905nb4/+*'' found: No such file or directory
pkg_add: 1 package addition failed
Not sure why, maybe it was the server?

Edit:
Code:
armv7$ pkg_add -v pkgin
pkg_add: Can't create pkgdb entry: /var/db/pkg/pkg_install-20191008nb1: Permission denied
pkg_add: no files matching ``/var/db/pkg/pkg_install-20191008nb1/+*'' found: No such file or directory
pkg_add: Can't install dependency pkg_install>=20130901
pkg_add: 1 package addition failed
armv7$ sudo pkg_add -v pkgin
pkg_add: no pkg found for 'pkgin', sorry.
pkg_add: 1 package addition failed
armv7$ pkg_add -v pkgin
pkg_add: Can't create pkgdb entry: /var/db/pkg/pkg_install-20191008nb1: Permission denied
pkg_add: no files matching ``/var/db/pkg/pkg_install-20191008nb1/+*'' found: No such file or directory
pkg_add: Can't install dependency pkg_install>=20130901
pkg_add: 1 package addition failed
armv7$ su
Password:
armv7# pkg_add -v pkgin
[...] installed
Still behaving strangely, even though my account is in the wheel group and can use `sudo' for other commands, only root is able to use `pkg_add'
Reply With Quote
Reply

Tags
armv7, netbsd, pkg_add, pkg_path

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
pkg_add php-fpm psypro OpenBSD Packages and Ports 7 28th March 2016 12:22 PM
pkg_add claxsis NetBSD Package System (pkgsrc) 14 24th March 2016 11:07 PM
pkgin in vs. pkg_add DaBSD NetBSD Package System (pkgsrc) 3 3rd May 2015 11:48 PM
pkg_add g95;g95 x.f95: cannot find g95 enpey OpenBSD Packages and Ports 8 27th August 2008 12:48 AM


All times are GMT. The time now is 09:13 PM.


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