Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

workload install command in dot-net 8 doesn't work #40721

Open
NourAldynKMHD opened this issue Mar 30, 2024 · 1 comment
Open

workload install command in dot-net 8 doesn't work #40721

NourAldynKMHD opened this issue Mar 30, 2024 · 1 comment
Assignees
Labels
Area-Workloads untriaged Request triage from a team member

Comments

@NourAldynKMHD
Copy link

NourAldynKMHD commented Mar 30, 2024

URL(s)

https://github.com/dotnet/core/issues?q=is%3Aissue+is%3Aopen+author%3ANourAldynKMHD

Description

on my Linux PC I'm trying to install dotnet-sdk and its workload
when I'm trying to download any work load using
dotnet workload install maui-android
it give me this error

Unhandled exception: System.IO.IOException: Read-only file system : '/snap/dotnet-sdk/239/metadata'
at System.IO.FileSystem.CreateDirectory(String fullPath, UnixFileMode unixCreateMode)
at System.IO.Directory.CreateDirectory(String path)
at Microsoft.DotNet.Workloads.Workload.Install.WorkloadInstallerFactory.CanWriteToDotnetRoot(String dotnetDir)
at Microsoft.DotNet.Workloads.Workload.Install.WorkloadInstallerFactory.GetWorkloadInstaller(IReporter reporter, SdkFeatureBand sdkFeatureBand, IWorkloadResolver workloadResolver, VerbosityOptions verbosity, String userProfileDir, Boolean verifySignatures, INuGetPackageDownloader nugetPackageDownloader, String dotnetDir, String tempDirPath, PackageSourceLocation packageSourceLocation, RestoreActionConfig restoreActionConfig, Boolean elevationRequired, Boolean shouldLog)
at Microsoft.DotNet.Workloads.Workload.Install.WorkloadInstallCommand..ctor(ParseResult parseResult, IReporter reporter, IWorkloadResolverFactory workloadResolverFactory, IInstaller workloadInstaller, INuGetPackageDownloader nugetPackageDownloader, IWorkloadManifestUpdater workloadManifestUpdater, String tempDirPath, IReadOnlyCollection`1 workloadIds)
at Microsoft.DotNet.Cli.WorkloadInstallCommandParser.<>c.b__6_0(ParseResult parseResult)
at System.CommandLine.Invocation.InvocationPipeline.Invoke(ParseResult parseResult)
at Microsoft.DotNet.Cli.Program.ProcessArgs(String[] args, TimeSpan startupTime, ITelemetry telemetryClient)

I have searched a lot but I don't find any one who fix the problem so what I have to do

@jamesmontemagno jamesmontemagno transferred this issue from dotnet/core Apr 2, 2024
@jamesmontemagno
Copy link
Member

Moving this over to the .NET MAUI repo

@PureWeen PureWeen transferred this issue from dotnet/maui May 7, 2024
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Workloads untriaged Request triage from a team member labels May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Workloads untriaged Request triage from a team member
Projects
None yet
Development

No branches or pull requests

3 participants