Re: pkg update -f fails

Moin Rahman <[email protected]>
Newsgroups gmane.os.freebsd.devel.ports
Message-ID <[email protected]>

> 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
signature.asc (application/pgp-signature, 963 B)
-----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-----
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.