Re: pkg install -f ... doesn't?

From: Gary Aitken <freebsd_at_dreamchaser.org>
Date: Thu, 23 Jan 2025 17:47:46 UTC
Not sure exactly what the problem was,
but updating the package database
and using security/py-certbot-apache
instead of py-certbot-apache
solved the problem:

# pkg update -f
Updating FreeBSD repository catalogue...
Fetching meta.conf: 100%    178 B   0.2kB/s    00:01
Fetching data.pkg: 100%    7 MiB 503.1kB/s    00:15
Processing entries: 100%
FreeBSD repository update completed. 35910 packages processed.

# pkg install py-certbot-apache
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
pkg: No packages available to install matching 'py-certbot-apache' have been found in the repositories

# pkg install security/py-certbot-apache
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 21 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
...
Installed packages to be REMOVED:
         py39-charset-normalizer: 3.3.2
         py39-distro: 1.9.0
         py39-requests: 2.31.0
New packages to be INSTALLED:
         py311-acme: 3.0.1,1
...

I tried security/py-certbot-apache after checking freshports,
which says:
To add the package, run one of these commands:
         pkg install security/py-certbot-apache
         pkg install py311-certbot-apache

Why is the "security/" required?

Thanks,

Gary

On 1/23/25 09:38, Gary Aitken wrote:
> On 1/23/25 00:28, Erwan David wrote:
>> Le 22/01/2025 à 21:48, Gary Aitken a écrit :
>>> After recent upgrade to 13.4,
>>> daily security says py39-pycparser checksum doesn't match.
>>> Attempting to reinstall doesn't reinstall.
>>> What am I missing?
> ...
>> To force reinstall you must use pkg upgrade -f py39-pycparser
> 
> Thanks.
> However, that doesn't do the trick.
> I was informed via PM that maybe I need to do a pkg delete first.
> However, now I'm in a real pickle:
> 
> # pkg delete py39-pycparser
> 
> Proceed with deinstalling packages? [y/N]:
> ...
> Installed packages to be REMOVED:
>      py39-acme: 2.8.0,1
>      py39-certbot: 2.8.0,1
>      py39-certbot-apache: 2.8.0
>      py39-cffi: 1.16.0
>      py39-cryptography: 41.0.7_1,1
>      py39-josepy: 1.14.0
>      py39-openssl: 23.2.0,1
>      py39-pycparser: 2.21
> ...
> package database is busy while closing!
> 
> #  pkg upgrade -f py39-pycparser
> Updating FreeBSD repository catalogue...
> FreeBSD repository is up to date
> All repositories are up to date.
> pkg: No packages available to upgrade matching 'py39-pycparser' have been found in the repositories.
> # pkg install py39-certbot-apache
> ...
> pkg: No packages available to install matching 'py39-certbot-apache' have been found in the repositories.
> 
> Note:
> This system was recently upgraded from 13.3-RELEASE to 13.4-RELEASE,
> Ports (installed using packages) were upgraded using
>    pkg upgrade -f
> which appeared to complete successfully.
> However, there were a few pkgs which were not upgraded, and those are all
> in the set which was deleted when deinstalling py39-pycparser.
> 
> How to proceed?
> 
> Thanks,
> 
> Gary
> 
> 
> 
>