Solved something seems wrong with pkg

pkg is down?

url: https://pkg.freebsd.org/FreeBSD:12:amd64/latest/packagesite.txz gives 404 in my webbrowser.

Code:
# pkg -4 update
Updating FreeBSD repository catalogue...
Fetching meta.txz: 100%    916 B   0.9kB/s    00:01   
Fetching packagesite.txz: 100%   24 KiB   0.6kB/s    00:39   
pkg: http://pkg.FreeBSD.org/FreeBSD:12:amd64/latest/packagesite.txz: Operation timed out
Unable to update repository FreeBSD
Error updating repositories!
 
You can try setting temporary a different repository with the use of the environment variable PACKAGESITE to one of the mirrors in https://pkg.freebsd.org -> Other mirrors:, without changing the package repository configuration file, ex:

setenv PACKAGESITE http://pkg0.isc.freebsd.org/FreeBSD:12:amd64/latest

Eventually make it permanent after finding a useful mirror in /etc/pkg/FreeBSD.conf or /usr/local/etc/pkg/repos/xxxx.conf.
 
To me it seems that your solution doesn't do much

Code:
# setenv|grep -i pack
PACKAGESITE=http://pkg0.jinx.freebsd.org/FreeBSD:12:amd64/latest
# pkg -4 update
Updating FreeBSD repository catalogue...
Fetching meta.txz: 100%    916 B   0.9kB/s    00:01
Fetching packagesite.txz: 100%  100 KiB   1.0kB/s    01:45
pkg: http://pkg.FreeBSD.org/FreeBSD:12:amd64/latest/packagesite.txz: Operation timed out
Unable to update repository FreeBSD
Error updating repositories!

Code:
                                         My traceroute  [v0.93]
radius (10.13.17.13)                                                            2020-04-12T14:12:34+0200
Keys:  Help   Display mode   Restart statistics   Order of fields   quit
                                                                Packets               Pings
Host                                                         Loss%   Snt   Last   Avg  Best  Wrst StDev
1. 10.13.17.1                                                 0.0%    54    0.3   0.3   0.3   1.0   0.1
2. 81.82.192.1                                               29.6%    54   16.7  12.6   4.3  62.8   9.9
3. 213.224.201.209                                            0.0%    54    9.3  11.1   5.3  15.6   2.2
4. 213.224.250.111                                            0.0%    54   11.3  11.5   8.4  20.9   2.2
5. 213.46.183.101                                             0.0%    54   16.5  17.3  11.0  56.3   6.7
6. 213.46.191.62                                              0.0%    54   16.8  14.9  10.8  26.4   3.1
7. 64.125.31.104                                              0.0%    54   17.7  19.6  16.4  30.1   2.5
8. 64.125.29.17                                               0.0%    53   18.6  19.4  14.0  24.3   2.2
9. 64.125.30.235                                              0.0%    53   21.3  20.2  15.9  33.3   3.5
10. 64.125.30.55                                               0.0%    53   17.4  21.8  17.4  32.9   3.6
11. 94.31.48.86                                                0.0%    53   21.8  20.7  17.4  45.0   4.4
12. 130.180.202.57                                             0.0%    53   23.2  26.3  20.1  75.3   7.8
13. 91.223.58.33                                               0.0%    53   38.2  27.3  20.1  63.5   7.8
14. 213.138.116.46                                             0.0%    53   20.3  23.3  18.7  43.9   3.3
15. 213.138.116.73                                             0.0%    53   23.3  23.2  18.8  32.9   2.5

vs

Code:
                                         My traceroute  [v0.93]
thor.ofloo.net (10.13.17.12)                                                    2020-04-12T16:35:48+0200
Keys:  Help   Display mode   Restart statistics   Order of fields   quit
                                                                Packets               Pings
Host                                                         Loss%   Snt   Last   Avg  Best  Wrst StDev
1. 10.13.17.1                                                52.2%    70    0.7   0.5   0.3   1.9   0.3
2. 81.82.192.1                                               63.8%    70   10.8  12.2   7.6  48.6   7.8
3. 213.224.201.209                                           46.4%    70   15.2  12.0   8.8  17.1   2.4
4. 213.224.250.111                                           63.8%    70   15.6  13.3   9.2  22.9   3.0
5. 213.46.183.101                                            59.4%    70   14.0  21.7  13.2  64.4  11.1
6. 213.46.191.62                                             56.5%    70   17.7  16.3  12.9  21.2   2.2
7. 64.125.31.104                                             58.0%    70   19.4  20.8  15.9  31.0   3.1
8. 64.125.29.17                                              44.3%    70   20.0  22.5  15.6  75.2   9.1
9. 64.125.30.235                                             52.9%    70   25.3  22.2  15.3  35.3   4.0
10. 64.125.30.55                                              51.4%    70   22.0  22.9  18.6  33.4   3.4
11. 94.31.48.86                                               53.6%    70   22.1  21.0  17.9  32.2   2.8
12. 130.180.202.57                                            42.0%    70   28.0  25.7  22.0  30.4   1.8
13. 91.223.58.33                                              58.0%    70   31.0  29.9  21.5  55.1   7.9
14. 213.138.116.46                                            43.5%    70   24.4  24.6  21.5  28.6   1.8
15. 213.138.116.73                                            58.0%    70   24.5  24.4  20.4  29.2   2.4

Explain this same physical machine both bhyve vms running the exact same version of freebsd 12.1p2 both run mtr simultaneously !?
 
To me it seems that your solution doesn't do much
Indeed, variable PACKAGESITE is deprecated (since ages) and invalid as option for pkg.conf(5), valid only for bootstraping pkg(7). I recently created a FreeBSD VM and had difficulties fetching pkg with pkg bootstrap, I changed the package site with that variable, that incident made me believe it’s valid for pkg.conf as well, my apologies.
 
Back
Top