Skip to content

Unable to build/run trunk on debian 13 ( trixie ) #72

@mgius

Description

@mgius

I am able to build on debian trixie, but I cannot run the application. This is not entirely the fault of PSXPackager, although I wanted to share my investigation to save other people the hassle.

The one thing that seems a little odd is that the README says dotnet 8.0 (https://github.com/RupertAvery/PSXPackager/blob/master/README.md?plain=1#L41) but I'm getting an error that says dotnet 6.0. I can build using 8.0 and 9.0 but need a 6.0 runtime in order to run the application.

The released binary I downloaded from github works fine on debian 13 + dotnet 8.0.

I don't know the first thing about dotnet development but maybe there's a flag or something that was missed during an 8.0 upgrade that might resolve this error?

~/src/PSXPackager$ ./bin/PSXPackager 
You must install or update .NET to run this application.

App: /home/mgius/src/PSXPackager/bin/PSXPackager
Architecture: x64
Framework: 'Microsoft.NETCore.App', version '6.0.0' (x64)
.NET location: /usr/share/dotnet

The following frameworks were found:
  8.0.20 at [/usr/share/dotnet/shared/Microsoft.NETCore.App]
  9.0.10 at [/usr/share/dotnet/shared/Microsoft.NETCore.App]

Learn more:
https://aka.ms/dotnet/app-launch-failed

To install missing framework, download:
https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=6.0.0&arch=x64&rid=linux-x64&os=debian.13

I was able to successfully build using Debian 12 in a container, because I was able to successfully install dotnet 6.0. So that's a workaround but it'd be nice not to need it.

# debian-13 renamed/is missing some libraries that make dotnet 6.0 unable to install properly
FROM debian:12

RUN apt-get update 
# we need wget to grab the microsoft packages deb
RUN apt-get install wget -y
# and we need mono-complete to run one of the commands from the readme
RUN apt-get install mono-complete -y
RUN wget https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
RUN dpkg -i packages-microsoft-prod.deb
RUN apt-get update
# the readme says dotnet 8.0 but I think that's a windows-ism. When I try to build or run this project with 8.0 on debian 13 it tells me I need the 6.0 runtime.
RUN apt-get install dotnet-sdk-8.0 -y

COPY --exclude=contrib/* . /PSXPackager

WORKDIR /PSXPackager

# got an SSL error trying to run this?
# RUN mono .paket/paket.exe install
RUN dotnet build -c Release

ENTRYPOINT ["/PSXPackager/bin/PSXPackager"]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions