Solved Unable to install a package: "already installed"

Hi folks.

uname -a
Code:
FreeBSD machine.domain.tld 14.1-RELEASE-p4 FreeBSD 14.1-RELEASE-p4 GENERIC amd64

I try to install databases/mariadb114-server on my machine. Packages are built and hosted on my own poudriere server.

pkg info|grep mariadb returns nothing.

doas pkg install mariadb114-server:
Code:
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
Updating Poudriere_machine repository catalogue...
Poudriere_machine repository is up to date.
All repositories are up to date.
Checking integrity... done (0 conflicting)
The most recent versions of packages are already installed

However, mariadb114-server isn't installed...
pkg info|grep mariadb returns nothing.


Any ideas? I tried a doas pkg autoremove, doas pkg clean. If I rollback to databases/mariadb1011-server, it's ok.
More, it's OK when I install databases/mariadb114-client. Issue is only when I try to install the server package.

Thanks.


Regards,
 
Did you recently change from the official pkg repositories to your self-hosted one?
I've seen occasional breakage of the pkg database from such a transition, especially if both repositories are enabled for a while where version and dependency incosistencies are also relatively common.
I resorted to issueing a pkg upgrade -f after enabling my local repository (and disabling the FreeBSD repository!) so pkg will pull everything anew from my repo and re-calculate all (changed) dependencies.
 
Nope, I didn't change my repositories. They're the same since I set up this machine. Does my files seem OK?

cat /usr/local/etc/pkg/repos/*
FreeBSD: {
url : "pkg+http://pkg.freebsd.org/${ABI}/latest",
mirror_type : "srv",
signature_type : "fingerprints",
fingerprints : "/usr/share/keys/pkg",
enabled : yes,
priority : 0
}

Poudriere_machine: {
url : "https://poudriere.domain.tld/141Ramd64-default",
mirror_type : "https",
enabled : yes,
priority : 100
}

However, thanks for the tip, I'll do a pkg upgrade -f.
EDIT : on a clean jail, I have the same issue when trying to install databases/mariadb114-server: I have to force the install with a -f

Regards,
 
I bet there's some version conflict with dependencies. It's not a good idea to mix self-built packages and public repositories - the ports trees from which they were built are seldomly exactly at the same git version, *especially* if you are using the latest branch, which constantly changes.
You should either build all packages yourself, or use the public repositories. Bringing in "public packages" for testing is fine - I also do this occasionally when trying some new piece of software (usually in a jail), but if I intend to keep it, it also goes into my poudriere pkglist.
 
I'm pretty sure I never installed a package from default repository (I kept the FreeBSD repository just in case). But, I tried to deactivate it:

cat /usr/local/etc/pkg/repos/*
Code:
#FreeBSD: {
#    url                        : "pkg+http://pkg.FreeBSD.org/${ABI}/latest",
#    mirror_type                : "srv",
#    signature_type     : "fingerprints",
#    fingerprints       : "/usr/share/keys/pkg",
#    enabled            : yes,
#    priority           : 0
#}

Poudriere_machine: {
    url         : "https://poudriere.domain.tld/141Ramd64-default",
    mirror_type : "https",
    enabled     : yes,
    priority    : 100
}

doas pkg update -f
Code:
Updating FreeBSD repository catalogue...
pkg: Repository FreeBSD has a wrong packagesite, need to re-create database
Fetching meta.conf: 100%    178 B   0.2kB/s    00:01  
Fetching data.pkg: 100%    7 MiB   7.3MB/s    00:01  
Processing entries: 100%
FreeBSD repository update completed. 34428 packages processed.
Updating Poudriere_machine repository catalogue...
Fetching meta.conf: 100%    178 B   0.2kB/s    00:01  
Fetching data.pkg: 100%   81 KiB  83.3kB/s    00:01  
Processing entries: 100%
Poudriere_machine repository update completed. 277 packages processed.
All repositories are up to date.
I deactivated FreeBSD repository, why I got this warning at first line?

If I retry:
doas pkg update -f
Code:
Updating FreeBSD repository catalogue...
Fetching meta.conf: 100%    178 B   0.2kB/s    00:01  
Fetching data.pkg: 100%    7 MiB   7.3MB/s    00:01  
Processing entries: 100%
FreeBSD repository update completed. 34428 packages processed.
Updating Poudriere_machine repository catalogue...
Fetching meta.conf: 100%    178 B   0.2kB/s    00:01  
Fetching data.pkg: 100%   81 KiB  83.3kB/s    00:01  
Processing entries: 100%
Poudriere_machine repository update completed. 277 packages processed.
All repositories are up to date.
The warning disappeared, however, there is still a mention about FreeBSD repository.


Regards,
 
FreeBSD repository is enabled by default through /etc/pkg/FreeBSD.conf. If you want to actually disable it, create /usr/local/etc/pkg/repos/FreeBSD.conf:
Code:
FreeBSD: {
  enabled: no
}

It said, "Repository FreeBSD has a wrong packagesite" because you had latest enabled and it defaulted back to quarterly.
 
Back
Top