package installation of dotnet-sdk-2.0.0 fails on ubuntu 16.04 with fish shell
See original GitHub issue~> grep ibqn /etc/passwd | cut -d ':' -f 7
/usr/bin/fish
The installation of
sudo apt install dotnet-sdk-2.0.0-preview2-006497
failes with on ubuntu 16.04
Setting up dotnet-sdk-2.0.0-preview2-006497 (2.0.0-preview2-006497-1) ...
This software may collect information about you and your use of the software, and send that to Microsoft.
Please visit http://aka.ms/dotnet-cli-eula for more information.
Welcome to .NET Core!
---------------------
Learn more about .NET Core @ https://aka.ms/dotnet-docs. Use dotnet --help to see available commands or go to https://aka.ms/dotnet-cli-docs.
.NET Core Tools Telemetry
--------------
The .NET Core Tools include a telemetry feature that collects usage information. It is important that the .NET Team understands how the tools are being used so that we can improve them.
The data collected is anonymous and will be published in an aggregated form for use by both Microsoft and community engineers under the Creative Commons Attribution License.
The .NET Core Tools telemetry feature is enabled by default. You can opt-out of the telemetry feature by setting an environment variable DOTNET_CLI_TELEMETRY_OPTOUT (for example, 'export' on macOS/Linux, 's
et' on Windows) to true (for example, 'true', 1). You can read more about .NET Core tools telemetry at https://aka.ms/dotnet-cli-telemetry.
Unsupported use of '||'. In fish, please use 'COMMAND; or COMMAND'.
fish: dotnet new > /dev/null 2>&1 || true
^
dpkg: error processing package dotnet-sdk-2.0.0-preview2-006497 (--configure):
subprocess installed post-installation script returned error exit status 127
Processing triggers for libc-bin (2.23-0ubuntu9) ...
Errors were encountered while processing:
dotnet-sdk-2.0.0-preview2-006497
E: Sub-process /usr/bin/dpkg returned an error code (1)
Therefore this package is definitely broken, if you use shell scripting you should not guess what shell users have! This is poor and dangerous…
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
How to install dotnet SDK on Ubuntu 16.04 LTS
Try running this command on your terminal: wget -q packages-microsoft-prod.deb ...
Read more >Install .NET on Linux without using a package manager
Demonstrates how to install the .NET SDK and the .NET Runtime on Linux without a package manager. Use the install script or manually...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@wli3 please go ahead and try @ibqn repro steps above and let us know what you find.
@livarcocc this is still an issue, thank you for treating it the microsoft way! @wli3 with
chsh -s /usr/bin/fish
, and than start a new shell, or re-login, you just need to make sure that you have switch to your new environment, after changing your user’s default shell.