pkg freezes when installing python39

I've been having this issue with installing the binary package python39-3.9.16.xxx where it downloads to about 20% and just gets stuck. This happens on virtualbox and on my Thinkpad.
A week or two ago I was able to install the python39-3.9.16 on my Thinkpad, but ever since python39-3.9.16.1 and python39-3.9.16.2 have been made available in the repo, I haven't been able to install it.

Anyone know what's going on? Should I file a bug report?

# #Installing python39 on a fresh virtualbox guest
Code:
root@devpc:/etc/pkg # pkg -d install python39
DBG(1)[25614]> pkg initialized
Updating FreeBSD repository catalogue...
DBG(1)[25614]> PkgRepo: verifying update for FreeBSD
DBG(1)[25614]> Pkgrepo, begin update of '/var/db/pkg/repo-FreeBSD.sqlite'
DBG(1)[25614]> Request to fetch pkg+http://pkg.FreeBSD.org/FreeBSD:13:amd64/quarterly/meta.conf
.
.. [Lines Omitted]
..
.
New packages to be INSTALLED:
        gettext-runtime: 0.21.1
        indexinfo: 0.3.1
        libffi: 3.4.4
        mpdecimal: 2.5.1
        python39: 3.9.16_2
        readline: 8.2.0

Number of packages to be installed: 6

The process will require 124 MiB more space.
18 MiB to be downloaded.

Proceed with this action? [y/N]: y
DBG(1)[25614]> Request to fetch pkg+http://pkg.FreeBSD.org/FreeBSD:13:amd64/quarterly/All/indexinfo-0.3.1.pkg
DBG(1)[25614]> opening libfetch fetcher
DBG(1)[25614]> Fetch > libfetch: connecting
DBG(1)[25614]> Fetch: fetching from: http://pkgmir.geo.freebsd.org/FreeBSD:13:amd64/quarterly/All/indexinfo-0.3.1.pkg with opts "i"
DBG(1)[25614]> Fetch: fetcher chosen: http
[1/6] Fetching indexinfo-0.3.1.pkg: 100%    6 KiB   5.7kB/s    00:01    
DBG(1)[25614]> Request to fetch pkg+http://pkg.FreeBSD.org/FreeBSD:13:amd64/quarterly/All/mpdecimal-2.5.1.pkg
DBG(1)[25614]> opening libfetch fetcher
DBG(1)[25614]> Fetch > libfetch: connecting
DBG(1)[25614]> Fetch: fetching from: http://pkgmir.geo.freebsd.org/FreeBSD:13:amd64/quarterly/All/mpdecimal-2.5.1.pkg with opts "i"
DBG(1)[25614]> Fetch: fetcher chosen: http
[2/6] Fetching mpdecimal-2.5.1.pkg: 100%  320 KiB 327.8kB/s    00:01    

DBG(1)[25614]> Request to fetch pkg+http://pkg.FreeBSD.org/FreeBSD:13:amd64/quarterly/All/python39-3.9.16_2.pkg
DBG(1)[25614]> opening libfetch fetcher
DBG(1)[25614]> Fetch > libfetch: connecting
DBG(1)[25614]> Fetch: fetching from: [URL]http://pkgmir.geo.freebsd.org/FreeBSD:13:amd64/quarterly/All/python39-3.9.16_2.pkg[/URL] with opts "i"
DBG(1)[25614]> Fetch: fetcher chosen: http
[3/6] Fetching python39-3.9.16_2.pkg:  25%    5 MiB   1.9MB/s    00:10 ETA

# #Freebsd-version
Code:
root@devpc:~ # freebsd-version -kru
13.1-RELEASE
13.1-RELEASE
13.1-RELEASE

# # FreeBSD.conf OUTPUT
Code:
root@devpc:/etc/pkg # less FreeBSD.conf 
# $FreeBSD$
#
# To disable this repository, instead of modifying or removing this file,
# create a /usr/local/etc/pkg/repos/FreeBSD.conf file:
#
#   mkdir -p /usr/local/etc/pkg/repos
#   echo "FreeBSD: { enabled: no }" > /usr/local/etc/pkg/repos/FreeBSD.conf
#

FreeBSD: {
  url: "pkg+http://pkg.FreeBSD.org/${ABI}/quarterly",
  mirror_type: "srv",
  signature_type: "fingerprints",
  fingerprints: "/usr/share/keys/pkg",
  enabled: yes
}


# #PACKAGE INFORMATION
Code:
root@devpc:/etc/pkg # pkg search -f python39
python39-3.9.16_2
Name           : python39
Version        : 3.9.16_2
Origin         : lang/python39
Architecture   : FreeBSD:13:amd64
Prefix         : /usr/local
Repository     : FreeBSD [pkg+[URL]http://pkg.FreeBSD.org/FreeBSD:13:amd64/quarterly[/URL]]
Categories     : python lang
Licenses       : PSFL
Maintainer     : [email]python@FreeBSD.org[/email]
WWW            : [URL]https://www.python.org/[/URL]
Comment        : Interpreted object-oriented programming language
Options        :
        DEBUG          : off
        FNV            : off
        IPV6           : on
        LIBMPDEC       : on
        LTO            : off
        NLS            : on
        PYMALLOC       : on
        SIPHASH        : off
Shared Libs required:
        libreadline.so.8
        libmpdec.so.3
        libintl.so.8
        libffi.so.8
Shared Libs provided:
        libpython3.9.so.1.0
Annotations    :
        FreeBSD_version: 1301000
        cpe            : cpe:2.3:a:python:python:3.9.16:::::freebsd13:x64:2
 
Last edited by a moderator:
I'm running FreeBSD 12.3 (on i386, not amd64), but with the same Python39 package, and do not have the problem at all. The problem seems to occur while downloading (fetching) the package. It could be a web server or network related issue. Can you try using a different mirror?
 
It's not the firewall, there's no way it's the firewall.... It was the firewall!

Disabled IPS on firewall and was able to download! :)
 
Back
Top