• Re: pkg update -f fails

    From Moin Rahman@bofh@freebsd.org to muc.lists.freebsd.ports on Sun Dec 14 15:20:41 2025
    From Newsgroup: muc.lists.freebsd.ports


    --Apple-Mail=_E20D9269-5A18-4971-88C0-72ADF21AAE6C
    Content-Transfer-Encoding: quoted-printable
    Content-Type: text/plain;
    charset=us-ascii



    On Dec 14, 2025, at 15:09, Xavier Humbert <xavier@groumpf.org> wrote:
    =20
    Hi,
    =20
    Tried to reinstall py311-setuptools :
    =20
    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):
    =20
    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]
    =20
    Number of packages to be installed: 8
    =20
    The process will require 503 MiB more space.
    75 MiB to be downloaded.
    =20
    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'
    =20
    Followed the advice :
    =20
    [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!
    =20
    My pkg.repos.conf :
    =20
    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
    }
    =20
    This is FreeBSD 14.3-STABLE
    =20
    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


    --Apple-Mail=_E20D9269-5A18-4971-88C0-72ADF21AAE6C
    Content-Transfer-Encoding: 7bit
    Content-Disposition: attachment;
    filename=signature.asc
    Content-Type: application/pgp-signature;
    name=signature.asc
    Content-Description: Message signed with OpenPGP

    -----BEGIN PGP SIGNATURE-----

    iQKTBAEBCgB9FiEETfdREoUGjQZKBS+fvbm1phfAvJEFAmk+x7lfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDRE Rjc1MTEyODUwNjhEMDY0QTA1MkY5RkJEQjlCNUE2MTdDMEJDOTEACgkQvbm1phfA vJGrgg//Q5H0V8mQiYnQ8vhC8I/ORpgKWkMd5MPHU21fMhcTtpPZG1j8+EraAUXl SrgEB4qXqs90AgRgbgk0RNVjhJVVhnbgq4D+SeXPnttVxn9g9vOKVddtERiEU2ZF WwKHzVHcBsmqBAv+FXt4ojk7EQaYpiLLZ8xO4F6awKHb6XN9m5w9BiVXbFTVicT+ wN7bIaIE/N4AM473hWsI9CanltZNF5Z5hoA6qx+Pa83XWrckGQ9Zo12gN5R6nrTN b4jy75xrR4ZXzPjGw+A4ytckonkgN09GTjVbeHosopK6zptDa6ZssNoP5LwEzuV5 +VE0jIZ3ysEwetfSyeBbvadMjoLzk63dEBMAhy5lavnUHziTVsc+tzjSfMG3EdML u+MoJy78NO+oTwyF0Mi/5w/LIeik1V7D8ft13OPr/InGvcTeQOtkCjnSW1FGQb3U FozqyaD+YUhyfW+LhEcQUbteToe8qjfNMpe07rsDhqt+EWPt0pjVaD5BDtqm3uD5 w4l5V0Zt6CVgyzvQYB9FZXzixw30WgyzIl0hVYNa+6PrHOc2GA/SAkeUWrzGJtIv 0CMegYdqc3OULhAWekfcE/0QcTc2G6TstE5qiZ/GDK7NER3+2rsYES8+b98B1efZ BBZG0fHsrZwtK20mc/94sZAIp4j5fgx8JhqGu/pRU7/YFvVBdAk=
    =echr
    -----END PGP SIGNATURE-----

    --Apple-Mail=_E20D9269-5A18-4971-88C0-72ADF21AAE6C--


    --
    Posted automagically by a mail2news gateway at muc.de e.V.
    Please direct questions, flames, donations, etc. to news-admin@muc.de
    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From Mark Millard@marklmi@yahoo.com to muc.lists.freebsd.ports on Sun Dec 14 10:34:12 2025
    From Newsgroup: muc.lists.freebsd.ports

    Xavier Humbert <xavier_at_groumpf.org> wrote on
    Date: Sun, 14 Dec 2025 14:58:22 UTC :

    . . . but now, pkg wants to reinstall/remove a bunch of ports :

    . . . then lots of messages, some of which include reporting the
    reason for the potential update/upgrade as . . .

    (ABI changed: 'FreeBSD:13:amd64' -> 'FreeBSD:14:amd64')

    Choosing to continue to use port-packages built for
    FreeBSD 13 on FreeBSD 14 --mixed with having other
    port-packages that were built for FreeBSD 14-- is
    likely rather unusual.

    Leaving FreeBSD 13 port-packages installed on
    FreeBSD 14 is not something pkg was designed to do.
    Given the tooling, maintaining having such a mix
    might be an effort of itself vs. a round of getting
    everything to be based on FreeBSD 14 port-packages.

    ===
    Mark Millard
    marklmi at yahoo.com



    --
    Posted automagically by a mail2news gateway at muc.de e.V.
    Please direct questions, flames, donations, etc. to news-admin@muc.de
    --- Synchronet 3.21a-Linux NewsLink 1.2