Skip to content

pkg upgrade doesn't find an existing but locked package #1239

@kibab

Description

@kibab

I have a locked zabbix24-server package with the version 2.4.2

$ pkg info -kx zabbix-*
zabbix24-agent-2.4.4           no
zabbix24-server-2.4.2          yes

I want to upgrade it to 2.4.4. Expected behaviour is that pkg refuses to upgrade because the package is, well, locked. However, pkg fails with "no packages available..." error

$ sudo pkg upgrade  zabbix24-server                                                                                                                                                            
Updating FreeBSD-Q repository catalogue...
FreeBSD-Q repository is up-to-date.
All repositories are up-to-date.
pkg: No packages available to upgrade matching 'zabbix24-server' have been found in the repositories

If I unlock the package, pkg will proceed just fine. I think the error message is misleading,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions