Re: Problems in pkg

2021-11-10 Thread Baptiste Daroussin
On Wed, Nov 10, 2021 at 02:01:09PM -0300, Cristian Cardoso wrote:
> The problem was actually user nobody, which was deleted from the system.
> I recreated and solved the problem.
> 
> Em qua., 10 de nov. de 2021 às 06:36, Baptiste Daroussin
>  escreveu:
> >
> > On Mon, Nov 08, 2021 at 03:48:51PM -0300, Cristian Cardoso wrote:
> > > I'm trying to use pkg to install/update packages, but I'm getting the
> > > following error:
> > >
> > > # pkg update
> > > Updating FreeBSD repository catalogue...
> > > Fetching meta.conf: 100%163 B   0.2kB/s00:01
> > > Fetching packagesite.pkg: 100%6 MiB   6.7MB/s00:01
> > > pkg: Unable to drop privileges: No error: 0
> > > pkg: No signature found
> >
> > This indiquate that probably the nobody user does not exist in your system.
> >
> > btw I would make a better error message
> >
> > Best regards,
> > Bapt

FYI I updated the error message for Unable to drop privileges to make it more
useful: 

https://github.com/freebsd/pkg/commit/ac82ad8481dcbedc83b80899b8486b29bbccee51

Best regards,
Bapt



Re: Problems in pkg

2021-11-10 Thread Cristian Cardoso
The problem was actually user nobody, which was deleted from the system.
I recreated and solved the problem.

Em qua., 10 de nov. de 2021 às 06:36, Baptiste Daroussin
 escreveu:
>
> On Mon, Nov 08, 2021 at 03:48:51PM -0300, Cristian Cardoso wrote:
> > I'm trying to use pkg to install/update packages, but I'm getting the
> > following error:
> >
> > # pkg update
> > Updating FreeBSD repository catalogue...
> > Fetching meta.conf: 100%163 B   0.2kB/s00:01
> > Fetching packagesite.pkg: 100%6 MiB   6.7MB/s00:01
> > pkg: Unable to drop privileges: No error: 0
> > pkg: No signature found
>
> This indiquate that probably the nobody user does not exist in your system.
>
> btw I would make a better error message
>
> Best regards,
> Bapt



Re: Problems in pkg

2021-11-09 Thread Graham Perrin

On 08/11/2021 18:48, Cristian Cardoso wrote:


pkg: Unable to drop privileges: No error: 0
pkg: No signature found
Cross-reference  for FreeBSD 
13.0⋯




Problems in pkg

2021-11-08 Thread Cristian Cardoso
I'm trying to use pkg to install/update packages, but I'm getting the
following error:

# pkg update
Updating FreeBSD repository catalogue...
Fetching meta.conf: 100%163 B   0.2kB/s00:01
Fetching packagesite.pkg: 100%6 MiB   6.7MB/s00:01
pkg: Unable to drop privileges: No error: 0
pkg: No signature found
Unable to update repository FreeBSD
Error updating repositories!


I tried to run the following command to try to adjust, but without success:

# pkg bootstrap -f

There is no file in /usr/local/etc/pkg/repos/FreeBSD.conf, follow pkg variables

# pkg -vv
Version : 1.17.2
PKG_DBDIR = "/var/db/pkg";
PKG_CACHEDIR = "/var/cache/pkg";
PORTSDIR = "/usr/ports";
INDEXDIR = "";
INDEXFILE = "INDEX-13";
HANDLE_RC_SCRIPTS = false;
DEFAULT_ALWAYS_YES = false;
ASSUME_ALWAYS_YES = false;
REPOS_DIR [
"/etc/pkg/",
"/usr/local/etc/pkg/repos/",
]
PLIST_KEYWORDS_DIR = "";
SYSLOG = true;
ABI = "FreeBSD:13:amd64";
ALTABI = "freebsd:13:x86:64";
DEVELOPER_MODE = false;
VULNXML_SITE = "http://vuxml.freebsd.org/freebsd/vuln.xml.xz;;
FETCH_RETRY = 3;
PKG_PLUGINS_DIR = "/usr/local/lib/pkg/";
PKG_ENABLE_PLUGINS = true;
PLUGINS [
]
DEBUG_SCRIPTS = false;
PLUGINS_CONF_DIR = "/usr/local/etc/pkg/";
PERMISSIVE = false;
REPO_AUTOUPDATE = true;
NAMESERVER = "";
HTTP_USER_AGENT = "pkg/1.17.2";
EVENT_PIPE = "";
FETCH_TIMEOUT = 30;
UNSET_TIMESTAMP = false;
SSH_RESTRICT_DIR = "";
PKG_ENV {
}
PKG_SSH_ARGS = "";
DEBUG_LEVEL = 0;
BY THE WAY {
all-depends = "query %dn-%dv";
annotations = "info -A";
build-depends = "info -qd";
cinfo = "info -Cx";
comment = "query -i \"%c\"";
csearch = "search -Cx";
desc = "query -i \"%e\"";
download = "fetch";
iinfo = "info -ix";
isearch = "search -ix";
prime-list = "query -e '%a = 0' '%n'";
prime-origins = "query -e '%a = 0' '%o'";
leaf = "query -e '%#r == 0' '%n-%v'";
list = "info -ql";
noauto = "query -e '%a == 0' '%n-%v'";
options = "query -i \"%n - %Ok: %Ov\"";
origin = "info -qo";
provided-depends = "info -qb";
rall-depends = "rquery %dn-%dv";
raw = "info -R";
rcomment = "rquery -i \"%c\"";
rdesc = "rquery -i \"%e\"";
required-depends = "info -qr";
roptions = "rquery -i \"%n - %Ok: %Ov\"";
shared-depends = "info -qB";
mes = "info -f -k";
size = "info -sq";
unmaintained = "query -e '%m = \"po...@freebsd.org\"' '%o (%w)'";
runmaintained = "rquery -e '%m = \"po...@freebsd.org\"' '%o (%w)'";
}
CUDF_SOLVER = "";
SAT_SOLVER = "";
RUN_SCRIPTS = true;
CASE_SENSITIVE_MATCH = false;
LOCK_WAIT = 1;
LOCK_RETRIES = 5;
SQLITE_PROFILE = false;
WORKERS_COUNT = 0;
READ_LOCK = false;
PLIST_ACCEPT_DIRECTORIES = false;
IP_VERSION = 0;
AUTOMERGE = true;
VERSION_SOURCE = "";
CONSERVATIVE_UPGRADE = true;
PKG_CREATE_VERBOSE = false;
AUTOCLEAN = false;
DOT_FILE = "";
REPOSITORIES {
}
VALID_URL_SCHEME [
"pkg+http",
"pkg+https",
"https",
"http",
"filet",
"ssh",
"ftp",
"ftps",
"pkg+ssh",
"pkg+ftp",
"pkg+ftps",
]
ALLOW_BASE_SHLIBS = false;
WARN_SIZE_LIMIT = 1048576;
METALOG = "";
OSVERSION = 1300139;
IGNORE_OSVERSION = false;
BACKUP_LIBRARIES = false;
BACKUP_LIBRARY_PATH = "/usr/local/lib/compat/pkg";
PKG_TRIGGERS_DIR = "/usr/local/share/pkg/triggers";
PKG_TRIGGERS_ENABLE = true;
AUDIT_IGNORE_GLOB [
]
AUDIT_IGNORE_REGEX [
"NULL",
]
COMPRESSION_LEVEL = -1;
ARCHIVE_SYMLINK = false;
REPO_ACCEPT_LEGACY_PKG = false;


Repositories:
  FreeBSD: {
url : "pkg+http://pkg.FreeBSD.org/FreeBSD:13:amd64/quarterly;,
enabled : yes,
priority : 0,
mirror_type : "SRV",
signature_type : "FINGERPRINTS",
fingerprints : "/usr/share/keys/pkg"
  }


Does anyone happen to know any way to resolve this?
Thanks for any help.