Hi,
I have problems with two FreeBSD 11.2-RELEASE-p8 prod machines when I try to run “pkg update”. The two machines is pretty much the same as one is master an the other is slave. They only get files from other servers via scp every hour and analyse them with some scripts, that’s it.
I installed 11.1 before and updated to 11.2 for some month ago. Everything worked perfect for some time with the updates etc. Recently, I can’t run “pkg update” any more. Freebsd-update fetch etc. works, it’s only pkg that’s is the problem.
On one machine I get:
I got the same on the other machine before (I think) and tried to reinstall pkg, but it won’t work. So I get this:
This is the info of the machines:
I have tried
In /usr/local/etc/pkg.conf I tried:
The servers have deleted /var/db/pkg/repo-FreeBSD.sqlite. I have one backup repo-FreeBSD.sqlite.xz on one server, and I tried it, doesn’t work.
I have
DNS etc. works fine on the servers.
Does someone have some tip?
//hilda
I have problems with two FreeBSD 11.2-RELEASE-p8 prod machines when I try to run “pkg update”. The two machines is pretty much the same as one is master an the other is slave. They only get files from other servers via scp every hour and analyse them with some scripts, that’s it.
I installed 11.1 before and updated to 11.2 for some month ago. Everything worked perfect for some time with the updates etc. Recently, I can’t run “pkg update” any more. Freebsd-update fetch etc. works, it’s only pkg that’s is the problem.
On one machine I get:
Code:
# pkg update
Updating FreeBSD repository catalogue...
pkg: Repository FreeBSD load error: access repo file(/var/db/pkg/repo-FreeBSD.sqlite) failed: No such file or directory
pkg: http://pkg.FreeBSD.org/FreeBSD:11:amd64/latest/meta.txz: No route to host
repository FreeBSD has no meta file, using default settings
pkg: http://pkg.FreeBSD.org/FreeBSD:11:amd64/latest/packagesite.txz: No route to host
Unable to update repository FreeBSD
Error updating repositories!
I got the same on the other machine before (I think) and tried to reinstall pkg, but it won’t work. So I get this:
Code:
# pkg update
The package management tool is not yet installed on your system.
Do you want to fetch and install it now? [y/N]: y
Bootstrapping pkg from pkg+http://pkg.FreeBSD.org/FreeBSD:11:amd64/latest, please wait...
pkg: Error fetching http://pkg.FreeBSD.org/FreeBSD:11:amd64/latest/Latest/pkg.txz: Permission denied
A pre-built version of pkg could not be found for your system.
Consider changing PACKAGESITE or installing it from ports: 'ports-mgmt/pkg'.
This is the info of the machines:
Code:
# uname -a
FreeBSD 1934 11.2-RELEASE-p8 FreeBSD 11.2-RELEASE-p8 #0: Tue Jan 8 21:35:12 UTC 2019 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
Code:
# uname -UK
1102000 1102000
I have tried
# pkg -o OSVERSION=1102000 update -f
but no luck.In /usr/local/etc/pkg.conf I tried:
Code:
FETCH_RETRY = 3;
FETCH_TIMEOUT = 300;
OSVERSION = 1102000;
The servers have deleted /var/db/pkg/repo-FreeBSD.sqlite. I have one backup repo-FreeBSD.sqlite.xz on one server, and I tried it, doesn’t work.
I have
url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest",
in /etc/pkg/FreeBSD.conf .DNS etc. works fine on the servers.
Does someone have some tip?
//hilda