安装Azure RM Ubuntu 16.04时出现问题

安装Azure RM Ubuntu 16.04时出现问题,azure,azure-powershell,Azure,Azure Powershell,我正在使用Ubuntu 16.04和提升的PS外壳。已安装相应版本的PowershellGet 当尝试按照上述方向操作时,我收到以下错误: PackageManagement\Install软件包:未能安装软件包“AzureRM.profile”,因为:/tmp/1323106488/AzureRM.profile/AzureRM.profile.nuspec At/opt/microsoft/powershell/6.0.0alpha.14/Modules/powershell/1.1.2.

我正在使用Ubuntu 16.04和提升的PS外壳。已安装相应版本的PowershellGet

当尝试按照上述方向操作时,我收到以下错误:

PackageManagement\Install软件包:未能安装软件包“AzureRM.profile”,因为:/tmp/1323106488/AzureRM.profile/AzureRM.profile.nuspec At/opt/microsoft/powershell/6.0.0alpha.14/Modules/powershell/1.1.2.0/PSModule.psm1:1809 char:21 + ... $null=PackageManagement\Install Package@PSBoundParameters+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+CategoryInfo:InvalidResult:(AzureRM.profile:String)[安装包],Exception+FullyQualifiedErrorId:未能安装程序包“{0}”,因为:{1},Microsoft.PowerShell.PackageManager.cmdlet.InstallPackage


我漏了一步吗

基本上,你是在将windows教程应用到ubuntu框中,并想知道为什么它不起作用

Install-Package -Name AzureRM.NetCore.Preview -Source https://www.powershellgallery.com/api/v2 -ProviderName NuGet -ExcludeVersion -Destination <Folder you want this to be installed>
给你;这一个有:

AzureRM.Compute.Netcore
AzureRM.Network.Netcore
AzureRM.Profile.Netcore
AzureRM.Resources.Netcore
AzureRM.Storage.Netcore
AzureRM.Tags.Netcore
AzureRM.Websites.Netcore

更新答案。我想你是想在Azure上安装Ubuntu,而不是在Ubuntu上安装AzureRM(这是不可能的)。由于某种原因,我的第一次尝试没有成功,所以我尝试了上面的一次。现在完全成功了。非常感谢。尝试了AzureRM.Netcore.Preview我再次接受了感谢
AzureRM.Compute.Netcore
AzureRM.Network.Netcore
AzureRM.Profile.Netcore
AzureRM.Resources.Netcore
AzureRM.Storage.Netcore
AzureRM.Tags.Netcore
AzureRM.Websites.Netcore