Full System Upgrade fails with error in dotnet-sdk

I have a system running Endeavour that has been offline for just over a month (motherboard replacement).

I rebuilt the MB last night and then went to update the software, which had a large slew of package updates in the queue plus a “Full system upgrade”.

However the system upgrade fails with the following output-

:: Synchronising package databases...
 endeavouros is up to date
 core is up to date
 extra is up to date
 multilib is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Package (12)                      New Version     Net Change

extra/dotnet-host                 9.0.3.sdk104-1    0.43 MiB
extra/dotnet-runtime              9.0.3.sdk104-1   70.33 MiB
extra/dotnet-targeting-pack       9.0.3.sdk104-1   47.59 MiB
extra/netstandard-targeting-pack  9.0.3.sdk104-1   17.87 MiB
extra/python-pyproject-hooks      1.2.0-3           0.10 MiB
extra/dotnet-sdk                  9.0.3.sdk104-1  289.13 MiB
extra/dpkg                        1.22.18-1         9.23 MiB
extra/gendesk                     1.0.10-1          6.58 MiB
extra/go                          2:1.24.2-1      237.76 MiB
extra/python-build                1.2.2-3           0.20 MiB
extra/python-installer            0.7.0-10          0.17 MiB
extra/rustup                      1.28.1-1         10.93 MiB

Total Installed Size:  690.33 MiB

:: Proceed with installation? [Y/n] y
(12/12) checking keys in keyring                                                        [--------------------------------------------------] 100%
(12/12) checking package integrity                                                      [--------------------------------------------------] 100%
(12/12) loading package files                                                           [--------------------------------------------------] 100%
(12/12) checking for file conflicts                                                     [--------------------------------------------------] 100%
error: failed to commit transaction (conflicting files)
dotnet-sdk: /usr/share/dotnet/sdk-manifests/8.0.100/microsoft.net.sdk.aspire/8.2.2/WorkloadManifest.Aspire.targets exists in filesystem
dotnet-sdk: /usr/share/dotnet/sdk-manifests/8.0.100/microsoft.net.sdk.aspire/8.2.2/WorkloadManifest.json exists in filesystem
dotnet-sdk: /usr/share/dotnet/sdk-manifests/8.0.100/microsoft.net.sdk.aspire/8.2.2/WorkloadManifest.targets exists in filesystem
Errors occurred, no packages were upgraded.
 -> Failed to install layer, rolling up to next layer.error:error installing repo packages
:: Synchronising package databases...
 endeavouros is up to date
 core is up to date
 extra is up to date
 multilib is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Package (12)                      New Version     Net Change

extra/dotnet-host                 9.0.3.sdk104-1    0.43 MiB
extra/dotnet-runtime              9.0.3.sdk104-1   70.33 MiB
extra/dotnet-targeting-pack       9.0.3.sdk104-1   47.59 MiB
extra/netstandard-targeting-pack  9.0.3.sdk104-1   17.87 MiB
extra/python-pyproject-hooks      1.2.0-3           0.10 MiB
extra/dotnet-sdk                  9.0.3.sdk104-1  289.13 MiB
extra/dpkg                        1.22.18-1         9.23 MiB
extra/gendesk                     1.0.10-1          6.58 MiB
extra/go                          2:1.24.2-1      237.76 MiB
extra/python-build                1.2.2-3           0.20 MiB
extra/python-installer            0.7.0-10          0.17 MiB
extra/rustup                      1.28.1-1         10.93 MiB

Total Installed Size:  690.33 MiB

:: Proceed with installation? [Y/n] y
(12/12) checking keys in keyring                                                        [--------------------------------------------------] 100%
(12/12) checking package integrity                                                      [--------------------------------------------------] 100%
(12/12) loading package files                                                           [--------------------------------------------------] 100%
(12/12) checking for file conflicts                                                     [--------------------------------------------------] 100%
error: failed to commit transaction (conflicting files)
dotnet-sdk: /usr/share/dotnet/sdk-manifests/8.0.100/microsoft.net.sdk.aspire/8.2.2/WorkloadManifest.Aspire.targets exists in filesystem
dotnet-sdk: /usr/share/dotnet/sdk-manifests/8.0.100/microsoft.net.sdk.aspire/8.2.2/WorkloadManifest.json exists in filesystem
dotnet-sdk: /usr/share/dotnet/sdk-manifests/8.0.100/microsoft.net.sdk.aspire/8.2.2/WorkloadManifest.targets exists in filesystem
Errors occurred, no packages were upgraded.
 -> error installing repo packages
error installing repo packages

What’s interesting is that my system doesn’t have any of the dotnet packages, including dotnet-sdk-*installed? I’m guessing this means dotnet is a build process dependency for something, and it should be removed after use.

I tried dealing with the problem by moving the problem directory (/usr/share/dotnet/sdk-manifests/8.0.100/microsoft.net.sdk.aspire/8.2.2) aside. This seemed to get me 90%+ of the way there, but one package (naps2) still failde to upgrade-

:: Do you want to remove these packages? [Y/n] 
:: Processing package changes...
( 1/12) removing dotnet-sdk                                                             [--------------------------------------------------] 100%
( 2/12) removing dotnet-targeting-pack                                                  [--------------------------------------------------] 100%
( 3/12) removing netstandard-targeting-pack                                             [--------------------------------------------------] 100%
( 4/12) removing dotnet-runtime                                                         [--------------------------------------------------] 100%
( 5/12) removing dotnet-host                                                            [--------------------------------------------------] 100%
( 6/12) removing rustup                                                                 [--------------------------------------------------] 100%
( 7/12) removing go                                                                     [--------------------------------------------------] 100%
( 8/12) removing gendesk                                                                [--------------------------------------------------] 100%
( 9/12) removing dpkg                                                                   [--------------------------------------------------] 100%
(10/12) removing python-build                                                           [--------------------------------------------------] 100%
(11/12) removing python-pyproject-hooks                                                 [--------------------------------------------------] 100%
(12/12) removing python-installer                                                       [--------------------------------------------------] 100%
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
 -> Failed to install the following packages. Manual intervention is required:
naps2 - exit status 4

I can try un-installing naps2 to get a clean system upgrade, and if that works I can re-install naps2. I just wondered-

  1. Are these known problems (I didn’t find any hits in a forum search)
  2. Where is the appropriate place to report system upgrade errors? Is it here?

Naps2 is an aur package, so the only place to report is their git. If it interferes with an update run then, as you say, remove and reinstall.

in case of issues updating AUR builds always check the AUR page first.. my saying :wink:

@keescase there is a related comment from today ..

That’s why I deleted the post I saw the username to late at the aur page. :thinking:

1 Like

true :wink:

with this i am sure you will simply need to remove it update system and go rebuild/install naps2.
Issue is in most case users even do not know the difference between a package build from AUR and one from repos..

1 Like

As suggested I removed Naps2, then reinstalled using the bin package (the std. package seems to have a few problems at the moment).

Initially all I could see was the dotnet errors and I couldn’t work out which package that was part of. In the end I upgraded packages one at a time until I identified Naps2 as the source of the problem.

I presume there’s a better way of doing this, e.g. by checking install logs, I just haven;t got into that yet.

Thanks for the responses.

1 Like

:wink:

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.