pkg 2.0.0 problems

Hello,

I've updated and upgraded my packages this morning, everything was working fine before hand.
Since pkg 2.0.0 is installed, I've got multiple problems with some packages being installed, like kitty on this computer, but it does not show on the pkg info -a -o.
kitty clearly shows on pkg search -o kitty, but trying to delete the package and/or to install the package only resolves into pkg 2.0.0 being reinstalled instead and even forcing it does not help at all.

Is there anything I should do once pkg 2.0.0 is installed?
Because it seems broken in some way I do not understand.
 
pkg(8) in ports is currently at DISTVERSION= 2.0.2
It looks like pkg 2.0.x is proceeding towards 2.0.3: [Bug 284295] ports-mgmt/pkg: pkg -q not quiet when using -r.

Follow/subscribe to freebsd-pkg mailinglist or watch the commits at ports-mgmt/pkg

On freshports-pkg and as I see it now:
Code:
 % pkg search '^pkg-(1|2)'
pkg-1.21.3                     Package manager
the package of pkg(8) is still at the previous "major" version. I suggest, either
  • upgrade to 2.0.2 from ports and wait for 2.0.3
  • or stick with version 1.21.3 for the time being
Being on the conservative side means using 1.21.3 (You may have to delete your current installed pkg(8) first and use pkg(7) to get pkg(8) 1.21.3 installed.)
 
I had problem too with 2.00 and I built 2.03 from ports and I have still problem but bigger.
I did delete librsvg2-rust and try to install package again because claws-mail for example doesn't work.
And try install librsvg2-rust:

Code:
 pkg install librsvg2-rust
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking integrity... done (1 conflicting)
  - librsvg2-rust-2.58.5_3 conflicts with librsvg2-2.40.21_4 on /usr/local/bin/rsvg-convert
Checking integrity... done (0 conflicting)
The following 14 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
    librsvg2-rust: 2.58.5_3

Installed packages to be REMOVED:
    claws-mail: 3.21.0
    claws-mail-clamd: 3.21.0
    claws-mail-mailmbox: 3.21.0
    claws-mail-pdf_viewer: 3.21.0
    gegl: 0.4.48_3
    gimp: 2.10.38,2
    gimp-app: 2.10.38_2,1
    gimp-gutenprint: 5.3.4
    gimp-lqr-plugin: 0.7.2_2
    gimp-resynthesizer: 2.0.3_2
    obconf: 2.0.4_6
    openbox: 3.6_12
    tint2: 16.7_6

Number of packages to be removed: 13
Number of packages to be installed: 1

The operation will free 127 MiB.

Proceed with this action? [y/N]:

Should I press yes and later install removed applications, please?

Thank you.
 
I try pkg upgrade -f and looks like good (I didn' press yes yet :) ):

Code:
pkg upgrade -f
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking for upgrades (928 candidates): 100%
Processing candidates (928 candidates): 100%
The following 926 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
    libcroco: 0.6.13_2
    librsvg2: 2.40.21_4
    librsvg2-rust: 2.58.5_3
    
    ****
    and all other reinstalled
 
also getting `librsvg2-2.40.21_4 conflicts with librsvg2-rust-2.58.5_3` but nothing is fixed, no way to install anymore:
Code:
All repositories are up to date.
Checking integrity... done (1 conflicting)
  - librsvg2-2.40.21_4 conflicts with librsvg2-rust-2.58.5_3 on /usr/local/bin/rsvg-convert
Cannot solve problem using SAT solver, trying another plan
Checking integrity... done (0 conflicting)
The following 1 package(s) will be affected (of 0 checked):

Installed packages to be REINSTALLED:
    pkg-2.0.0

Number of packages to be reinstalled: 1

Proceed with this action? [y/N]: y
[1/1] Reinstalling pkg-2.0.0...
[1/1] Extracting pkg-2.0.0: 100%
 
I did and pkg upgrade -f didn't work becaue it want to delete ports from my post #4.
Any idea?
Is it possible to install pkg 1.21.3 from cache or install librsvg2-rust from cache and how?
I got the same librsvg2 error but I don't think I ever used # pkg upgrade -f. I don't know if it helped but I checked dependencies of my installed packages with # pkg check -ad. I tried installing pkg 1.21.3 but failed so I don't know about it.


Code:
# pkg info -x pkg-2.0.3
pkg-2.0.3
# pkg upgrade
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
Updating custom repository catalogue...
custom repository is up to date.
All repositories are up to date.
Updating database digests format: 100%
Checking for upgrades (14 candidates): 100%
Processing candidates (14 candidates): 100%
Checking integrity... done (0 conflicting)
Your packages are up to date.
# pkg check -ad
Checking all packages: 100%
# pkg autoremove -n
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 1 packages:

Installed packages to be REMOVED:
        ruby: 3.2.6,1

Number of packages to be removed: 1

The operation will free 43 MiB.
 
I got the same librsvg2 error but I don't think I ever used # pkg upgrade -f. I don't know if it helped but I checked dependencies of my installed packages with # pkg check -ad. I tried installing pkg 1.21.3 but failed so I don't know about it.


Code:
# pkg info -x pkg-2.0.3
pkg-2.0.3
# pkg upgrade
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
Updating custom repository catalogue...
custom repository is up to date.
All repositories are up to date.
Updating database digests format: 100%
Checking for upgrades (14 candidates): 100%
Processing candidates (14 candidates): 100%
Checking integrity... done (0 conflicting)
Your packages are up to date.
# pkg check -ad
Checking all packages: 100%
# pkg autoremove -n
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 1 packages:

Installed packages to be REMOVED:
        ruby: 3.2.6,1

Number of packages to be removed: 1

The operation will free 43 MiB.
I did install librsvg2-rust from cache and applications works but pkg 2.03 built from ports want to upgrade librsvg2-rust-2.58.5_2 to 2.58.5_3 wants to remove apps from #4.Important for now is that email works which I need it.
Thank you.
 
I got the same librsvg2 error but I don't think I ever used # pkg upgrade -f. I don't know if it helped but I checked dependencies of my installed packages with # pkg check -ad. I tried installing pkg 1.21.3 but failed so I don't know about it.


Code:
# pkg info -x pkg-2.0.3
pkg-2.0.3
# pkg upgrade
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
Updating custom repository catalogue...
custom repository is up to date.
All repositories are up to date.
Updating database digests format: 100%
Checking for upgrades (14 candidates): 100%
Processing candidates (14 candidates): 100%
Checking integrity... done (0 conflicting)
Your packages are up to date.
# pkg check -ad
Checking all packages: 100%
# pkg autoremove -n
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 1 packages:

Installed packages to be REMOVED:
        ruby: 3.2.6,1

Number of packages to be removed: 1

The operation will free 43 MiB.
If I run pkg_libchk is everything okay.
Code:
pkg check -ad
Checking all packages: 100%
py311-pyside6 is missing a required shared library: libQt6WebEngineCore.so.6
py311-pyside6 is missing a required shared library: libQt6Pdf.so.6
qt6-webview is missing a required shared library: libQt6WebEngineCore.so.6

pkg autoremove -n
Checking integrity... done (0 conflicting)
Nothing to do.
 
If I run pkg_libchk is everything okay.
Code:
pkg check -ad
Checking all packages: 100%
py311-pyside6 is missing a required shared library: libQt6WebEngineCore.so.6
py311-pyside6 is missing a required shared library: libQt6Pdf.so.6
qt6-webview is missing a required shared library: libQt6WebEngineCore.so.6

pkg autoremove -n
Checking integrity... done (0 conflicting)
Nothing to do.
What does a normal # pkg upgrade -n show?
 
Code:
pkg upgrade -n
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking for upgrades (4 candidates): 100%
Processing candidates (4 candidates): 100%
Checking integrity... done (2 conflicting)
  - librsvg2-2.40.21_4 conflicts with librsvg2-rust-2.58.5_2 on /usr/local/bin/rsvg-convert
  - librsvg2-2.40.21_4 conflicts with librsvg2-rust-2.58.5_3 on /usr/local/bin/rsvg-convert
Checking integrity... done (0 conflicting)
The following 14 package(s) will be affected (of 0 checked):

Installed packages to be UPGRADED:
    librsvg2-rust: 2.58.5_2 -> 2.58.5_3

Installed packages to be REMOVED:
    claws-mail: 3.21.0
    claws-mail-clamd: 3.21.0
    claws-mail-mailmbox: 3.21.0
    claws-mail-pdf_viewer: 3.21.0
    gegl: 0.4.48_3
    gimp: 2.10.38,2
    gimp-app: 2.10.38_2,1
    gimp-gutenprint: 5.3.4
    gimp-lqr-plugin: 0.7.2_2
    gimp-resynthesizer: 2.0.3_2
    obconf: 2.0.4_6
    openbox: 3.6_12
    tint2: 16.7_6

Number of packages to be removed: 13
Number of packages to be upgraded: 1

The operation will free 140 MiB.

The problem is librsvg2-rust or pkg 2.03 or both? I do not know.
 
Code:
pkg upgrade -n
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking for upgrades (4 candidates): 100%
Processing candidates (4 candidates): 100%
Checking integrity... done (2 conflicting)
  - librsvg2-2.40.21_4 conflicts with librsvg2-rust-2.58.5_2 on /usr/local/bin/rsvg-convert
  - librsvg2-2.40.21_4 conflicts with librsvg2-rust-2.58.5_3 on /usr/local/bin/rsvg-convert
Checking integrity... done (0 conflicting)
The following 14 package(s) will be affected (of 0 checked):

Installed packages to be UPGRADED:
    librsvg2-rust: 2.58.5_2 -> 2.58.5_3

Installed packages to be REMOVED:
    claws-mail: 3.21.0
    claws-mail-clamd: 3.21.0
    claws-mail-mailmbox: 3.21.0
    claws-mail-pdf_viewer: 3.21.0
    gegl: 0.4.48_3
    gimp: 2.10.38,2
    gimp-app: 2.10.38_2,1
    gimp-gutenprint: 5.3.4
    gimp-lqr-plugin: 0.7.2_2
    gimp-resynthesizer: 2.0.3_2
    obconf: 2.0.4_6
    openbox: 3.6_12
    tint2: 16.7_6

Number of packages to be removed: 13
Number of packages to be upgraded: 1

The operation will free 140 MiB.

The problem is librsvg2-rust or pkg 2.03 or both? I do not know.
there was another conflicting package at first in my case. and required pkg upgrade brings zero results—should not upgrade if nothing needs doing.
 
Probably the most flabbergasting thing about all those problems with pkg is that if I use ports, and compile something from scratch, it's very easy to:
Code:
# make deinstall
# make reinstall

is exactly what I need - make deinstall only touches the affected port, and does not threaten me with removing Firefox or other important stuff as part of dependency resolution. Of course, there's reasons why this even works.

Code:
If 
{ 
    (I complie port A) AND (port A is a minor version bump over what's already installed by [MAN=8]pkg[/MAN]) 
}
Then
{
    ([CMD]make deinstall[/CMD], followed by [CMD]make reinstall[/CMD]) is a valid and safe way to upgrade a package and not worry too much about dependency hell performing unauthorized actions like trying to remove Firefox...
}
 
Same here:
mw@z440 ~> dpug
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
Updating FreeBSD-kmods repository catalogue...
FreeBSD-kmods repository is up to date.
All repositories are up to date.
Checking for upgrades (6 candidates): 100%
Processing candidates (6 candidates): 100%
Checking integrity... done (3 conflicting)
- librsvg2-2.40.21_4 [FreeBSD] conflicts with librsvg2-rust-2.58.5_3 [installed] on /usr/local/bin/rsvg-convert
- librsvg2-2.40.21_4 [FreeBSD] conflicts with librsvg2-rust-2.58.5_3 [FreeBSD] on /usr/local/bin/rsvg-convert
- webkit2-gtk_40-2.46.5_1 [FreeBSD] conflicts with webkit2-gtk3-2.34.6_10 [installed] on /usr/local/include/webkitgtk-4.0/JavaScriptC
ore/JSBase.h
Cannot solve problem using SAT solver, trying another plan
Cannot solve problem using SAT solver, trying another plan
Checking integrity... done (0 conflicting)
The following 16 package(s) will be affected (of 0 checked):

Installed packages to be REINSTALLED:
librsvg2-rust-2.58.5_3 [FreeBSD] (provided shared library changed)
pkg-2.0.0 [FreeBSD]

Installed packages to be REMOVED:
ImageMagick7: 7.1.1.26_6
converseen: 0.12.2.4
ecrire: 0.3.4_1
edi: 0.8.0_1
efl: 1.27.0_6
enlightenment: 0.26.0_1,2
ephoto: 1.6.0_1
evisum: 0.6.0_1
kitty: 0.36.4_2
libwraster: 0.96.0_1
rage: 0.4.0_3
terminology: 1.13.0_2
windowmaker: 0.96.0_3
xournalpp: 1.2.3.20240830

Number of packages to be removed: 14
Number of packages to be reinstalled: 2

The operation will free 572 MiB.

Proceed with this action? [y/N]:


amw@z440 ~> doas pkg install kitty
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
Updating FreeBSD-kmods repository catalogue...
FreeBSD-kmods repository is up to date.
All repositories are up to date.
Checking integrity... done (1 conflicting)
- librsvg2-2.40.21_4 [FreeBSD] conflicts with librsvg2-rust-2.58.5_3 [installed] on /usr/local/bin/rsvg-convert
Cannot solve problem using SAT solver, trying another plan
Checking integrity... done (0 conflicting)
The following 2 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
librsync: 2.3.4 [FreeBSD]

Installed packages to be REINSTALLED:
pkg-2.0.0 [FreeBSD]

Number of packages to be installed: 1
Number of packages to be reinstalled: 1

Proceed with this action? [y/N]: y
[1/2] Installing librsync-2.3.4...
[1/2] Extracting librsync-2.3.4: 100%
[2/2] Reinstalling pkg-2.0.0...
[2/2] Extracting pkg-2.0.0: 100%

 
And beware that it could remove a lot of your package, since it will de-install a lot a package before reinstalling them.
This happen to me, it de-install a bunch of package then it crashes. Letting me without 240 packages previously installed.
 
And beware that it could remove a lot of your package, since it will de-install a lot a package before reinstalling them.
This happen to me, it de-install a bunch of package then it crashes. Letting me without 240 packages previously installed.
yea conflicting packages are touching a lot of gtk so it took most of my de. since sleep works fine ill just keep working, no spare machine to spin poudriere)
 
In my case it almost reinstalled all the GTK, QT6 and Wayland stack including the compositor, the browser and so on. I have to say that everything went smooth as silk, I logged out and back in my GUI session to check and everything works as expected (I can post here as you can see ;) ).
 
So, i found this thread by lucky in the middle of a upgrade:
Code:
beastie@BattleStar-Lat5420 --> ~
Ψ doas pkg upgrade                                                                                                                                                             < 13:59 >  < 11,725-01-25 >  < 0 > 
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
Updating FreeBSD_Kmods repository catalogue...
FreeBSD_Kmods repository is up to date.
All repositories are up to date.
Checking for upgrades (9 candidates): 100%
Processing candidates (9 candidates): 100%
Checking integrity... done (3 conflicting)
  - librsvg2-2.40.21_4 [FreeBSD] conflicts with librsvg2-rust-2.58.5_3 [installed] on /usr/local/bin/rsvg-convert
  - librsvg2-2.40.21_4 [FreeBSD] conflicts with librsvg2-rust-2.58.5_3 [FreeBSD] on /usr/local/bin/rsvg-convert
  - webkit2-gtk_40-2.46.5_1 [FreeBSD] conflicts with webkit2-gtk3-2.34.6_10 [installed] on /usr/local/include/webkitgtk-4.0/JavaScriptCore/JSBase.h
Cannot solve problem using SAT solver, trying another plan
Checking integrity... done (0 conflicting)
The following 18 package(s) will be affected (of 0 checked):

Installed packages to be REINSTALLED:
        librsvg2-rust-2.58.5_3 [FreeBSD] (provided shared library changed)
        pkg-2.0.0 [FreeBSD]
        qt6-webengine-6.8.1 [FreeBSD] (provided shared library changed)

Installed packages to be REMOVED:
        ImageMagick7: 7.1.1.26_6
        emacs: 29.4_2,3
        gegl: 0.4.48_3
        gimp: 2.10.38,2
        gimp-app: 2.10.38_2,1
        gimp-gutenprint: 5.3.4
        lxqt: 2.1.0
        obconf-qt: 0.16.4_1
        openbox: 3.6_12
        openbox-arc-theme: 20170104
        pdf-tools: 1.1.0_8
        qtcreator: 15.0.0
        syncthingtray-qt6: 1.7.1
        tablist: 1.0.13_9
        zbar: 0.23.90_5

Number of packages to be removed: 15
Number of packages to be reinstalled: 3

The operation will free 453 MiB.

Proceed with this action? [y/N]: n
beastie@BattleStar-Lat5420 --> ~
Ψ  pkg -v                                                                                                                                                                       < 14:06 >  < 11,725-01-25 >  < 0 > 
2.0.0

What are the recommended steps for now?
 
So, i found this thread by lucky in the middle of a upgrade:
Code:
beastie@BattleStar-Lat5420 --> ~
Ψ doas pkg upgrade                                                                                                                                                             < 13:59 >  < 11,725-01-25 >  < 0 >
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
Updating FreeBSD_Kmods repository catalogue...
FreeBSD_Kmods repository is up to date.
All repositories are up to date.
Checking for upgrades (9 candidates): 100%
Processing candidates (9 candidates): 100%
Checking integrity... done (3 conflicting)
  - librsvg2-2.40.21_4 [FreeBSD] conflicts with librsvg2-rust-2.58.5_3 [installed] on /usr/local/bin/rsvg-convert
  - librsvg2-2.40.21_4 [FreeBSD] conflicts with librsvg2-rust-2.58.5_3 [FreeBSD] on /usr/local/bin/rsvg-convert
  - webkit2-gtk_40-2.46.5_1 [FreeBSD] conflicts with webkit2-gtk3-2.34.6_10 [installed] on /usr/local/include/webkitgtk-4.0/JavaScriptCore/JSBase.h
Cannot solve problem using SAT solver, trying another plan
Checking integrity... done (0 conflicting)
The following 18 package(s) will be affected (of 0 checked):

Installed packages to be REINSTALLED:
        librsvg2-rust-2.58.5_3 [FreeBSD] (provided shared library changed)
        pkg-2.0.0 [FreeBSD]
        qt6-webengine-6.8.1 [FreeBSD] (provided shared library changed)

Installed packages to be REMOVED:
        ImageMagick7: 7.1.1.26_6
        emacs: 29.4_2,3
        gegl: 0.4.48_3
        gimp: 2.10.38,2
        gimp-app: 2.10.38_2,1
        gimp-gutenprint: 5.3.4
        lxqt: 2.1.0
        obconf-qt: 0.16.4_1
        openbox: 3.6_12
        openbox-arc-theme: 20170104
        pdf-tools: 1.1.0_8
        qtcreator: 15.0.0
        syncthingtray-qt6: 1.7.1
        tablist: 1.0.13_9
        zbar: 0.23.90_5

Number of packages to be removed: 15
Number of packages to be reinstalled: 3

The operation will free 453 MiB.

Proceed with this action? [y/N]: n
beastie@BattleStar-Lat5420 --> ~
Ψ  pkg -v                                                                                                                                                                       < 14:06 >  < 11,725-01-25 >  < 0 >
2.0.0

What are the recommended steps for now?
do not update wait for pkg-2.0.3
 
Back
Top