Re: pkg update -f fails

Xavier Humbert <[email protected]>
Newsgroups gmane.os.freebsd.devel.ports
Message-ID <[email protected]>
Le 14/12/2025 15:20, Moin Rahman a écrit :
>
>> On Dec 14, 2025, at 15:09, Xavier Humbert <[email protected]> wrote:
>>
>> Hi,
>>
>> Tried to reinstall py311-setuptools :
>>
>>> root@numenor ~ ]# pkg install devel/py-setuptools
>>> Updating FreeBSD repository catalogue...
>>> Fetching data.pkg: 100%   11 MiB  11.2MB/s    00:01
>>> Processing entries:   0%
>>> pkg: wrong architecture: FreeBSD:13:amd64 instead of FreeBSD:14:amd64
>>> pkg: repository FreeBSD contains packages with wrong ABI: FreeBSD:13:amd64
>>> Processing entries:   0%
>>> Unable to update repository FreeBSD
>>> Updating FreeBSD-kmods repository catalogue...
>>> FreeBSD-kmods repository is up to date.
>>> Error updating repositories!
>>> The following 8 package(s) will be affected (of 0 checked):
>>>
>>> New packages to be INSTALLED:
>>>          py310-setuptools: 63.1.0_3 [FreeBSD]
>>>          py311-setuptools: 63.1.0_3 [FreeBSD]
>>>          py311-wheel: 0.45.1 [FreeBSD]
>>>          py312-setuptools: 63.1.0_3 [FreeBSD]
>>>          py39-setuptools: 63.1.0_3 [FreeBSD]
>>>          python310: 3.10.17_1 [FreeBSD]
>>>          python312: 3.12.10_1 [FreeBSD]
>>>          python39: 3.9.22_1 [FreeBSD]
>>>
>>> Number of packages to be installed: 8
>>>
>>> The process will require 503 MiB more space.
>>> 75 MiB to be downloaded.
>>>
>>> Proceed with this action? [y/N]: y
>>> [1/8] Fetching py311-setuptools-63.1.0_3.pkg: 100%    1 MiB  1.4MB/s    00:01
>>> pkg: cached package py311-setuptools-63.1.0_3: missing or size mismatch, fetching from remote
>>> [2/8] Fetching py311-setuptools-63.1.0_3.pkg: 100%    1 MiB  1.4MB/s    00:01
>>> pkg: cached package py311-setuptools-63.1.0_3: missing or size mismatch, cannot continue
>>> Consider running 'pkg update -f'
>>> [3/8] Fetching py311-setuptools-63.1.0_3.pkg: 100%    1 MiB  1.4MB/s    00:01
>>> pkg: cached package py311-setuptools-63.1.0_3: missing or size mismatch, fetching from remote
>>> [4/8] Fetching py311-setuptools-63.1.0_3.pkg: 100%    1 MiB  1.4MB/s    00:01
>>> pkg: cached package py311-setuptools-63.1.0_3: missing or size mismatch, cannot continue
>>> Consider running 'pkg update -f'
>> Followed the advice :
>>
>>> [root@numenor ~ ]# pkg update -f
>>> Updating FreeBSD repository catalogue...
>>> Fetching meta.conf: 100%    179 B   0.2kB/s    00:01
>>> Fetching data.pkg: 100%   11 MiB  11.2MB/s    00:01
>>> Processing entries:   0%
>>> pkg: wrong architecture: FreeBSD:13:amd64 instead of FreeBSD:14:amd64
> --------------------------------------------------------^^^^^^^^^^^^^^^^
>>> pkg: repository FreeBSD contains packages with wrong ABI: FreeBSD:13:amd64
> -------------------------------------------------------------^^^^^^^^^^^^^^^^
>>> Processing entries:   0%
>>> Unable to update repository FreeBSD
>>> Updating FreeBSD-kmods repository catalogue...
>>> Fetching meta.conf: 100%    179 B   0.2kB/s    00:01
>>> Fetching data.pkg: 100%   34 KiB  34.9kB/s    00:01
>>> Processing entries: 100%
>>> FreeBSD-kmods repository update completed. 227 packages processed.
>>> Error updating repositories!
>>>
>> My pkg.repos.conf :
>>
>>> FreeBSD: {
>>>    url: "pkg+http://pkg.FreeBSD.org/FreeBSD:13:amd64/latest",
> Always use `url: "pkg+https://pkg.FreeBSD.org/${ABI}/latest"` unless there is a strong
> case not to.
>
>>>    mirror_type: "srv",
>>>    signature_type: "fingerprints",
>>>    fingerprints: "/usr/share/keys/pkg",
>>>    enabled: yes
>>> }
>> This is FreeBSD 14.3-STABLE
>>
>> What happens ?
> I think the messages are clear here that you are trying to install pkgs from a 13 repos
> on a 14 host.
>
> Kind regards,
> Moin
>
Hi Moin,

You were right, but now, pkg wants to reinstall/remove a bunch of ports :


> [root@numenor repos]# pkg install py311-setuptools
> Updating FreeBSD repository catalogue...
> FreeBSD repository is up to date.
> Updating FreeBSD-kmods repository catalogue...
> FreeBSD-kmods repository is up to date.
> All repositories are up to date.
> The following 191 package(s) will be affected (of 0 checked):
>
> New packages to be INSTALLED:
>         compat10x-amd64: 10.4.1004000.20181014_3 [FreeBSD]
>         gcc14: 14.2.0_4 [FreeBSD]
>         ja-libgd: 2.3.3_13,1 [FreeBSD]
>         libcdb: g2020082801 [FreeBSD]
>         libxcvt: 0.1.3 [FreeBSD]
>         nvidia-driver-390: 390.157_1 [FreeBSD]
>         nvidia-kmod-390: 390.157.1403000 [FreeBSD]
>         perl5.40: 5.40.3_2 [FreeBSD]
>         py311-setuptools: 63.1.0_3 [FreeBSD]
>         py311-wheel: 0.45.1 [FreeBSD]
>         xorg-server: 21.1.20,1 [FreeBSD]
>
> Installed packages to be UPGRADED:
>         perl5: 5.40.3_2 -> 5.42.0_1 [FreeBSD]
>
> Installed packages to be REINSTALLED:
>         acme.sh-3.1.2 [FreeBSD] (options changed)
>         aspell-0.60.8.1_1,1 [FreeBSD] (ABI changed: 'FreeBSD:13:amd64' 
> -> 'FreeBSD:14:amd64')
>         avahi-app-0.8_6 [FreeBSD]
>         aws-checksums-0.2.7,1 [FreeBSD]
>         cairo-1.18.2,3 [FreeBSD]
>         compat12x-amd64-12.2.1202000.20210406_2 [FreeBSD] (ABI 
> changed: 'FreeBSD:13:amd64' -> 'FreeBSD:14:amd64')
>         db5-5.3.28_9 [FreeBSD]
>         double-conversion-3.3.1 [FreeBSD] (ABI changed: 
> 'FreeBSD:13:amd64' -> 'FreeBSD:14:amd64')
>         fontconfig-2.15.0_3,1 [FreeBSD]
>         fribidi-1.0.16 [FreeBSD]
>         gettext-runtime-0.23.1 [FreeBSD]
>         giflib-5.2.2 [FreeBSD]
>         gmp-6.3.0 [FreeBSD]
>         graphite2-1.3.14 [FreeBSD]
>         harfbuzz-10.3.0 [FreeBSD]
>         hiredis-1.3.0.15 [FreeBSD] (ABI changed: 'FreeBSD:13:amd64' -> 
> 'FreeBSD:14:amd64')
>         icu-76.1,1 [FreeBSD]
>         ipmitool-1.8.19_3 [FreeBSD] (ABI changed: 'FreeBSD:13:amd64' 
> -> 'FreeBSD:14:amd64')
>         jbig2dec-0.20_1 [FreeBSD] (ABI changed: 'FreeBSD:13:amd64' -> 
> 'FreeBSD:14:amd64')
>         jbigkit-2.1_3 [FreeBSD] (ABI changed: 'FreeBSD:13:amd64' -> 
> 'FreeBSD:14:amd64')
>         lcms2-2.17 [FreeBSD]
>         ldns-1.8.4 [FreeBSD] (ABI changed: 'FreeBSD:13:amd64' -> 
> 'FreeBSD:14:amd64')
>         lerc-4.0.0 [FreeBSD] (ABI changed: 'FreeBSD:13:amd64' -> 
> 'FreeBSD:14:amd64')
>         libSM-1.2.6,1 [FreeBSD]
>         libX11-1.8.12,1 [FreeBSD]
>         libXScrnSaver-1.2.4_1 [FreeBSD]
>         libXcomposite-0.4.6_1,1 [FreeBSD] (ABI changed: 
> 'FreeBSD:13:amd64' -> 'FreeBSD:14:amd64')
>         libXdamage-1.1.6 [FreeBSD]
>         libXdmcp-1.1.5 [FreeBSD] (ABI changed: 'FreeBSD:13:amd64' -> 
> 'FreeBSD:14:amd64')
>         libXext-1.3.6,1 [FreeBSD]
>         libXfixes-6.0.1 [FreeBSD]
>         libXfont2-2.0.6 [FreeBSD] (ABI changed: 'FreeBSD:13:amd64' -> 
> 'FreeBSD:14:amd64')
>         libXft-2.3.8 [FreeBSD]
>         libXinerama-1.1.5,1 [FreeBSD]
>         libXrandr-1.5.4 [FreeBSD]
>         libXrender-0.9.12 [FreeBSD]
>         libXt-1.3.0,1 [FreeBSD]
>         liba52-0.8.0_2 [FreeBSD] (ABI changed: 'FreeBSD:13:amd64' -> 
> 'FreeBSD:14:amd64')
>         libarchive-3.8.3,1 [FreeBSD]
>         libargon2-20190702_1 [FreeBSD]
>         libassuan-3.0.2 [FreeBSD]
>         libdaemon-0.14_1 [FreeBSD] (ABI changed: 'FreeBSD:13:amd64' -> 
> 'FreeBSD:14:amd64')
>         libdca-0.0.7_1 [FreeBSD] (ABI changed: 'FreeBSD:13:amd64' -> 
> 'FreeBSD:14:amd64')
>         libepoll-shim-0.0.20240608 [FreeBSD] (ABI changed: 
> 'FreeBSD:13:amd64' -> 'FreeBSD:14:amd64')
>         libepoxy-1.5.10 [FreeBSD]
>         libevent-2.1.12 [FreeBSD]
>         libexif-0.6.25 [FreeBSD] (ABI changed: 'FreeBSD:13:amd64' -> 
> 'FreeBSD:14:amd64')
>         libfontenc-1.1.8 [FreeBSD]
>         libidn-1.43 [FreeBSD]
>         libidn2-2.3.8 [FreeBSD]
>         libksba-1.6.7 [FreeBSD] (ABI changed: 'FreeBSD:13:amd64' -> 
> 'FreeBSD:14:amd64')
>         libltdl-2.5.4 [FreeBSD]
>         libmetalink-0.1.3 [FreeBSD] (ABI changed: 'FreeBSD:13:amd64' 
> -> 'FreeBSD:14:amd64')
>         libpaper-1.1.28_1 [FreeBSD]
>         libpciaccess-0.18.1_1 [FreeBSD]
>         libpsl-0.21.5_2 [FreeBSD]
>         libsigc++-2.12.1 [FreeBSD]
>         libsodium-1.0.19 [FreeBSD]
>         libssh2-1.11.1,3 [FreeBSD]
>         libstatgrab-0.92.1_1 [FreeBSD]
>         libtasn1-4.20.0_1 [FreeBSD] (ABI changed: 'FreeBSD:13:amd64' 
> -> 'FreeBSD:14:amd64')
>         libudev-devd-0.6.0 [FreeBSD]
>         libvorbis-1.3.7_2,3 [FreeBSD]
>         libxcb-1.17.0 [FreeBSD]
>         libyaml-0.2.5 [FreeBSD]
>         llhttp-9.3.0 [FreeBSD] (ABI changed: 'FreeBSD:13:amd64' -> 
> 'FreeBSD:14:amd64')
>         lmdb-0.9.33,1 [FreeBSD] (ABI changed: 'FreeBSD:13:amd64' -> 
> 'FreeBSD:14:amd64')
>         log4cplus-2.1.2 [FreeBSD] (ABI changed: 'FreeBSD:13:amd64' -> 
> 'FreeBSD:14:amd64')
>         lua53-5.3.6_1 [FreeBSD]
>         lzo2-2.10_1 [FreeBSD]
>         mesa-libs-24.1.7_1 [FreeBSD]
>         mpc-1.3.1_1 [FreeBSD]
>         mpdecimal-4.0.1 [FreeBSD] (ABI changed: 'FreeBSD:13:amd64' -> 
> 'FreeBSD:14:amd64')
>         mpfr-4.2.2,1 [FreeBSD]
>         ncurses-6.5 [FreeBSD]
>         net-snmp-5.9.4_6,1 [FreeBSD] (ABI changed: 'FreeBSD:13:amd64' 
> -> 'FreeBSD:14:amd64')
>         nextcloud-php82-32.0.2 [FreeBSD] (options changed)
>         npth-1.8 [FreeBSD] (ABI changed: 'FreeBSD:13:amd64' -> 
> 'FreeBSD:14:amd64')
>         oniguruma-6.9.10 [FreeBSD]
>         openldap26-client-2.6.10 [FreeBSD]
>         p5-Readonly-2.05 [FreeBSD] (direct dependency changed: perl5)
>         panda-cclient-20130621_3 [FreeBSD] (ABI changed: 
> 'FreeBSD:13:amd64' -> 'FreeBSD:14:amd64')
>         php82-extensions-1.0 [FreeBSD] (options changed)
>         protobuf-29.5,1 [FreeBSD]
>         py311-botocore-1.42.4 [FreeBSD] (options changed)
>         python311-3.11.14 [FreeBSD]
>         roundcube-php82-1.6.11_1,1 [FreeBSD] (options changed)
>         rust-1.91.1 [FreeBSD] (options changed)
>         squid-6.14_1 [FreeBSD] (options changed)
>         tex-kpathsea-6.4.1 [FreeBSD]
>         tex-libtexlua-5.3.6_3 [FreeBSD] (ABI changed: 
> 'FreeBSD:13:amd64' -> 'FreeBSD:14:amd64')
>         tex-libtexluajit-2.1.81742 [FreeBSD] (ABI changed: 
> 'FreeBSD:13:amd64' -> 'FreeBSD:14:amd64')
>         uchardet-0.0.8_1 [FreeBSD] (ABI changed: 'FreeBSD:13:amd64' -> 
> 'FreeBSD:14:amd64')
>         xcb-util-0.4.1,1 [FreeBSD]
>         xcb-util-image-0.4.1 [FreeBSD]
>         xcb-util-keysyms-0.4.1 [FreeBSD] (ABI changed: 
> 'FreeBSD:13:amd64' -> 'FreeBSD:14:amd64')
>         xcb-util-renderutil-0.3.10 [FreeBSD]
>
> Installed packages to be REMOVED:
>         AppStream: 1.1.1
>         ImageMagick7: 7.1.1.45_5
>         aom: 3.13.1
>         aws-c-auth: 0.9.4
>         aws-c-http: 0.10.7
>         aws-c-mqtt: 0.13.3
>         aws-c-s3: 0.11.3
>         bind-tools: 9.20.16
>         bind920: 9.20.16
>         cbsd: 15.0.0
>         clamav: 1.5.1_1,1
>         clamav-unofficial-sigs: 7.2.5_3
>         clamtk: 6.18_2
>         clutter: 1.26.4_2
>         cmake: 3.31.10
>         cmake-core: 3.31.10
>         colord: 1.4.8
>         deja-dup: 47.0
>         duplicity: 3.0.6.3
>         enchant2: 2.8.10
>         ffmpeg: 6.1.2_17,1
>         freeipmi: 1.6.16
>         gapcmon: 0.8.9_9
>         gconf2: 3.2.6_11
>         gcr: 4.4.0.1
>         gdal: 3.11.5
>         gdb: 15.1_4
>         gspell: 1.14.0
>         gstreamer1-libav: 1.26.9
>         gstreamer1-plugins-gl: 1.26.8
>         gstreamer1-plugins-theora: 1.26.9
>         gtk4: 4.18.6
>         imlib2: 1.12.5_1,2
>         jq: 1.8.1
>         kealib: 1.6.2
>         libadwaita: 1.7.7
>         libass: 0.17.4
>         libcaca: 0.99.b20_1
>         libheif: 1.19.8_5
>         libinput: 1.28.1
>         libkml: 1.3.0_31
>         libopenmpt: 0.8.3
>         libvirt: 11.10.0
>         mariadb1011-server: 10.11.15
>         mediawiki142-php82: 1.42.7
>         minidlna: 1.3.3_9,1
>         nextcloud-appointments-php82: 2.6.2
>         nextcloud-calendar-php82: 6.1.1
>         nextcloud-contacts-php82: 8.1.1
>         nextcloud-deck-php82: 1.16.2
>         nextcloud-forms-php82: 5.2.3
>         nextcloud-groupfolders-php82: 20.1.5
>         nextcloud-notes-php82: 4.12.4
>         nextcloud-tasks-php82: 0.17.1
>         node22: 22.21.0_2
>         opencv: 4.11.0_3
>         php82-pecl-imagick: 3.8.0
>         php82-tidy: 8.2.29
>         phpMyAdmin5-php82: 5.2.3
>         pulseaudio: 17.0_4
>         py311-awscrt: 0.29.2
>         py311-gdal: 3.11.5
>         qt5-gui: 5.15.18p109
>         qt5-help: 5.15.18p3
>         qt5-widgets: 5.15.18p109
>         qt6-base: 6.9.3_2
>         qt6-base_sqldriver-sqlite: 6.9.3
>         qt6-declarative: 6.9.3
>         qt6-shadertools: 6.9.3
>         qt6-svg: 6.9.3
>         qt6-tools: 6.9.3
>         raptor2: 2.0.16_5
>         roundcube-contextmenu-php82: 3.3.1
>         roundcube-login_info-php82: 1.5.1
>         roundcube-thunderbird_labels-php82: 1.6.2
>         rsnapshot: 1.4.4_2
>         rsync: 3.4.1_4
>         spatialite: 5.1.0_4
>         tex-xetex: 20250308_1
>         vips: 8.17.3
>         yarn: 1.22.18_4
>         yarn-node24: 1.22.19_1
>
> Number of packages to be removed: 82
> Number of packages to be installed: 11
> Number of packages to be upgraded: 1
> Number of packages to be reinstalled: 97
>
> The operation will free 4 GiB.
> 609 MiB to be downloaded.
>
Regards,

Xavier

-- 
Xavier HUMBERT - Unix/Win/MacOSX Sysadmin/Network Engineer
https://www.amdh.fr
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.