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

System.IO.IOException: Read-only file system when running "workload install" command #34697

Closed
no149 opened this issue Aug 10, 2023 · 1 comment

Comments

@no149
Copy link

no149 commented Aug 10, 2023

I have downloaded and installed the 8.0.100-preview.4.23260.5 version using Snap on Ubuntu 21.04.

However when I try to install the MAUI workload using the "dotnet workload install maui", it raises the following error:
Unhandled exception: System.IO.IOException: Read-only file system : '/snap/dotnet-sdk/204/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

I can create a new project though. It's just a problem with this workload command.

P.S: That directory does not exist on my machine, though there is the meta directory.

@tarekgh tarekgh transferred this issue from dotnet/core Aug 17, 2023
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Workloads untriaged Request triage from a team member labels Aug 17, 2023
@marcpopMSFT marcpopMSFT added the needs team triage Requires a full team discussion label Aug 25, 2023
@joeloff joeloff removed untriaged Request triage from a team member needs team triage Requires a full team discussion labels Aug 29, 2023
@joeloff
Copy link
Member

joeloff commented Aug 29, 2023

We do not currently have a solution for this. File based installations of workloads require write access to the metadata folder under the SDK.

Duplicate of #18933

@joeloff joeloff closed this as not planned Won't fix, can't repro, duplicate, stale Aug 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants