Failed to update


#1

Hi there, I tried to update my Trident unsuccessful in a week, I got this error when running the update :

========================================================================
[2019-02-12 14:19:32] Checking for system updates…

Updating package remote database

[pkg-static: Repository FreeBSD load error: access repo file(/var/db/sysup/pkgdb/repo-FreeBSD.sqlite) failed: No such file or directory

pkg-static: packagesite URL error for pkg+http://pkg.FreeBSD.org/FreeBSD:13:amd64/latest/meta.txz – pkg+:// implies SRV mirror type

pkg-static: packagesite URL error for pkg+http://pkg.FreeBSD.org/FreeBSD:13:amd64/latest/packagesite.txz – pkg+:// implies SRV mirror type

]

ERROR: Failed running pkg update:pkg-static: Repository FreeBSD load error: access repo file(/var/db/sysup/pkgdb/repo-FreeBSD.sqlite) failed: No such file or directory

pkg-static: packagesite URL error for pkg+http://pkg.FreeBSD.org/FreeBSD:13:amd64/latest/meta.txz – pkg+:// implies SRV mirror type

pkg-static: packagesite URL error for pkg+http://pkg.FreeBSD.org/FreeBSD:13:amd64/latest/packagesite.txz – pkg+:// implies SRV mirror type

exit status 70

[2019-02-12 14:21:24] Finished: ERROR (1)

Looks like something wrong with my local file, but the URL also wrong, it worked before but failed just recently any idea ?


#2

Looks like your system “considers itself to be freebsd instead of being trident/trueos” as it checks freebsd servers instead of trident/trueos servers for updates.
But then again, the command leading to these error messages isn’t shown…

If you used Rod’s recommended update command I’d re-apply his recommended script.

On my U2 system using the new gui updater worked just fine to update to U3.


#3

I simply update via GUI no command line used


#4

If I issue the command line update “pkg update” I got similar error :

========================================================

Updating Trident repository catalogue…
Trident repository is up to date.
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: packagesite URL error for pkg+http://pkg.FreeBSD.org/FreeBSD:13:amd64/latest/meta.txz – pkg+:// implies SRV mirror type
repository FreeBSD has no meta file, using default settings
pkg: packagesite URL error for pkg+http://pkg.FreeBSD.org/FreeBSD:13:amd64/latest/packagesite.txz – pkg+:// implies SRV mirror type
Unable to update repository FreeBSD
Error updating repositories!

I did not and don’t know how to update via other means beside the build in system update feature GUI and simple command line, I am not sure if Trident is a so called ‘rolling release’ need not to manual reinstall a newer version, Debian on the other hand is ‘rolling’ that I used to, may be they work differently.


#5

Have you tried this?


#6

Sorry I am not familiar with the update process of Trident/FreeBSD, I am currently running U3 and I just thought the same update command will do all versions, so that I can update from a RC to U3 without the need of the in between, and I don’t understand why the build in update didn’t work properly out of the box, is it simply correct pointing to the right server will fix that, I am still adjusting my mind switching from Linux…


#7

In the past, from one update to another I had to re-apply that script aftwerwards even though I updated a (working) BE. Not sure why that happened.

At least to me (just a bsd tester) it looks as if the system is checking servers it should not - or that those servers are currently not reachable.

All that script does is deactivating files/servers that are outdated (e.g. TrueOS legacy) and activating new ones (Trident / TrueOS new).

If you want to be sure, wait a little bit until the guy in the US get up. @RodMyers e.g. probably has a much better insight than me.


#8

Thanks I will, for what I found in the search I see similar update server unreachable post on FreeBSD forum people already used to that


#9

sudo sysup -check
sudo sysup -update


#10

Tried but same result.

sudo sysup -check

Updating package remote database
[pkg-static: Repository FreeBSD load error: access repo file(/var/db/sysup/pkgdb/repo-FreeBSD.sqlite) failed: No such file or directory
pkg-static: packagesite URL error for pkg+http://pkg.FreeBSD.org/FreeBSD:13:amd64/latest/meta.txz – pkg+:// implies SRV mirror type
pkg-static: packagesite URL error for pkg+http://pkg.FreeBSD.org/FreeBSD:13:amd64/latest/packagesite.txz – pkg+:// implies SRV mirror type
]
ERROR: Failed running pkg update:pkg-static: Repository FreeBSD load error: access repo file(/var/db/sysup/pkgdb/repo-FreeBSD.sqlite) failed: No such file or directory

pkg-static: packagesite URL error for pkg+http://pkg.FreeBSD.org/FreeBSD:13:amd64/latest/meta.txz – pkg+:// implies SRV mirror type

pkg-static: packagesite URL error for pkg+http://pkg.FreeBSD.org/FreeBSD:13:amd64/latest/packagesite.txz – pkg+:// implies SRV mirror type

exit status 70

sudo sysup -update

Updating package remote database
[pkg-static: Repository FreeBSD load error: access repo file(/var/db/sysup/pkgdb/repo-FreeBSD.sqlite) failed: No such file or directory
pkg-static: packagesite URL error for pkg+http://pkg.FreeBSD.org/FreeBSD:13:amd64/latest/meta.txz – pkg+:// implies SRV mirror type
pkg-static: packagesite URL error for pkg+http://pkg.FreeBSD.org/FreeBSD:13:amd64/latest/packagesite.txz – pkg+:// implies SRV mirror type
]
ERROR: Failed running pkg update:pkg-static: Repository FreeBSD load error: access repo file(/var/db/sysup/pkgdb/repo-FreeBSD.sqlite) failed: No such file or directory

pkg-static: packagesite URL error for pkg+http://pkg.FreeBSD.org/FreeBSD:13:amd64/latest/meta.txz – pkg+:// implies SRV mirror type

pkg-static: packagesite URL error for pkg+http://pkg.FreeBSD.org/FreeBSD:13:amd64/latest/packagesite.txz – pkg+:// implies SRV mirror type

exit status 70


#11

The editor is weird it changed the fonts size


#12

@ font size: Because of the “#”. It’s recognized as a format command.

@ problem: I’m on a windows system now, so I can’t check if my system has such a file: /var/db/sysup/pkgdb/repo-FreeBSD.sqlite
or if my system would return the same error.

But re-applying the script shouldn’t hurt. On the other hand, the error only concerns the freebsd server, so the trident server part should already be fixed and on par with the info of the script.

You might try this or this.

[Edit]
Just checked my U3-BE:

  • GUI updater checked without error message.
  • No /var/db/sysup/pkgdb/repo-FreeBSD.sqlite on my system. Just local.sqlite, repo-Trident.sqlite and Trident.meta in that folder.

Conclusion: Check that folder for those files. Re-apply that mentioned script. That’s all I can come up with.
[/Edit]


#13

ls -al /etc/pkg/
total 45
drwxr-xr-x 2 root wheel 5 Feb 6 09:28 .
drwxr-xr-x 34 root wheel 124 Feb 8 07:00 …
-rw-r–r-- 1 root wheel 189 Feb 6 09:28 Train.conf
-rw-r–r-- 1 root wheel 121 Feb 5 11:46 TrueOS.conf.fingerprints.dist
-rw-r–r-- 1 root wheel 130 Feb 5 11:46 TrueOS.conf.pubkey.dist

cat /etc/pkg/Train.conf

TRAINNAME TrueOS

Trident: {
url: “https://pkg.project-trident.org/pkg/release/${ABI}/latest”,
signature_type: “pubkey”,
pubkey: “/usr/share/keys/pkg/Trident.pub”,
enabled: yes
}