由于此错误,无法从 apt 为较新的Ubuntu版本安装 powershell吗?
$ cat /etc/apt/sources.list.d/microsoft.list
deb [arch=amd64] https://packages.microsoft.com/ubuntu/14.04/prod trusty main
$ sudo apt install -y powershell
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help resolve the situation:
The following packages have unmet dependencies:
powershell : Depends: libicu52 but it is not installable
E: Unable to correct problems, you have held broken packages.
实际上,经过仔细检查,文档清楚地指出:
支持 Ubuntu 14.04、Ubuntu 16.04、Ubuntu 17.04
我在 17.10,系统中的microsoft.list
文件应该是什么样的artful
?
您尝试为 Ubuntu 14.04 安装该软件包,该软件包具有
libicu52
依赖项,但 Artful(与 Zesty 完全一样)附带libicu57
. 至少在依赖关系方面,Ubuntu 17.04 的步骤应该适用于 17.10。幸运的是,微软也prod.list
为 17.10 和 18.04 提供了一个文件: