Skip to content

Conversation

@NikolaMilosavljevic
Copy link
Member

dotnet-host Debian installer is failing to install with the following error:

dpkg: error processing archive dotnet-host-10.0.0-preview.2.25106.109-x64.deb (--install):
parsing file '/var/lib/dpkg/tmp.ci/control' near line 10 package 'dotnet-host':
'Conflicts' field, missing architecture name, or garbage where architecture name expected
Errors were encountered while processing:

This was introduced with new Debian packaging infra. Conflicts property is not evaluated correctly at

<PropertyGroup>
<_ConflictsProperty Condition="'@(LinuxPackageConflicts)' != ''">Conflicts: @(LinuxPackageConflicts->'%(Identity)',', ')</_ConflictsProperty>
</PropertyGroup>
<ItemGroup>
<_ConflictsControlProperty Include="$(_ConflictsProperty)" />
</ItemGroup>
which then causes an extra : to be appended to the Conflicts value in control file. In case of dotnet-host, the value is: dotnet, dotnet-nightly:

Controls property gets added to Debian control file at

writer.WriteLine($"{property.ItemSpec}: {property.GetMetadata("Value")}");

The fix is simple - I've tested the new package and it was installed without issues.

@NikolaMilosavljevic NikolaMilosavljevic requested review from a team and jkoritzinsky February 11, 2025 06:24
@akoeplinger akoeplinger merged commit 0b37fa0 into dotnet:main Feb 11, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants