question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to restore packages on Ubuntu 18.04 (3.0 preview7)

See original GitHub issue

Hello,

I’m trying to get the latest 3.0 preview7 working on my Ubuntu 18.04 remote server using the latest tar.gz from core-sdk for Linux x64. The dotnet command is working but if I try to install new templates eg. for blazor, the restore process fires up but then -> nothing. The process stays in my process list:

Screenshot_1

After running the command, that’s all that happens: boring

I also tried dotnet restore with a newly created AspNetCoreApp project but the result is the same.

Any ideas? Do I miss something here? Thanks in advance!

Steps to reproduce

  1. Download latest preview7 tar.gz from core-sdk for Linux x64
  2. unpack with tar zxvf dotnet-sdk-latest-linux-x64.tar.gz -C ./dotnet3 (create destination folder befor extracting)
  3. setup environment variables export DOTNET_ROOT=$HOME/dotnet3 & export PATH=$PATH:$HOME/dotnet3, I’m using zsh so they goes into my .zshrc (or .zprofile)
  4. reopen shell
  5. run dotnet new -i "Microsoft.AspNetCore.Blazor.Templates::3.0.0-preview7.*"
  6. restore process hangs with no output or any message

Also with preview6 bits as root or user, does not make any difference. It works on Windows 10 and WSL (Ubuntu 18.04) perfectly!

Expected behavior

The command should restore necessary files from Nuget and install new templates so they can be used with dotnet new

Actual behavior

Restore process hangs with no output or any message.

Environment data

dotnet --info output:

.NET Core SDK (reflecting any global.json):
 Version:   3.0.100-preview7-012398
 Commit:    028dd7635a

Runtime Environment:
 OS Name:     ubuntu
 OS Version:  18.04
 OS Platform: Linux
 RID:         ubuntu.18.04-x64
 Base Path:   /home/---/dotnet3/sdk/3.0.100-preview7-012398/

Host (useful for support):
  Version: 3.0.0-preview7-27813-06
  Commit:  5cfc2cab25

.NET Core SDKs installed:
  3.0.100-preview7-012398 [/home/---/dotnet3/sdk]

.NET Core runtimes installed:
  Microsoft.AspNetCore.App 3.0.0-preview7.19311.5 [/home/---/dotnet3/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 3.0.0-preview7-27813-06 [/home/---/dotnet3/shared/Microsoft.NETCore.App]

To install additional .NET Core runtimes or SDKs:
  https://aka.ms/dotnet-download

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:17 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
donnie-msftcommented, Jul 26, 2019

Our Build issues were resolved by setting MSBUILDDISABLENODEREUSE=1 in this PR.

The effect of -m:1 seemed to allow the MSBuild execution to continue, but then the next MSBuild without -m:1 would hang. I did not use this in my PR.

@rainersigwald suggested I run this to provide diagnostics to MSBuild team: MSBUILDDEBUGCOMM=1 MSBUILDDEBUGPATH=/path/to/some/directory​​​​​​​

I ran this directly on the Linux machine, and it still hanged on the same MSBuild invocation.

It repeats a couple dozen times:Failed to connect to pipe MSBuild57710. The operation has timed out. It appears to stop writing to the file, as hours later, the log had still not been modified. linuxOutput.txt

Thanks for the suggestion, and I’ve referenced an issue to revert this fix once this Issue is closed.

1reaction
tomhundleycommented, Sep 2, 2021

FYI I have this issue if I’m running WSL2 and connected to VPN on my host. It’s the same issue as VS Code being unable to update. Just drop your VPN connection and magic happens.

Read more comments on GitHub >

github_iconTop Results From Across the Web

An error occurred while trying to restore packages. Please ...
This is how I fix my issue: First, I clear my Package Cache: enter image description here. Second, I make sure I have...
Read more >
Ubuntu system is broken after accidentally uninstalling ...
If you do want to try to fix the system in place, then look at the package manager's log files to see what...
Read more >
dotnet build command - .NET CLI
The file is created when dotnet restore is executed. Without the assets file in place, the tooling can't resolve reference assemblies, which ...
Read more >
How to reinstall ubuntu 18.04 on same instance?
Hello, I want to start fresh on the same server ip as before. current configuration has some issues, so is there any way...
Read more >
Untitled
... 在 … noah birds Unable to restore packages on Ubuntu 18.04 (3.0 preview7) … ... NuGet Package Restore Microsoft Learn dotnet restore...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found