Как установить powershell на Ловком Муравьеде 17.10?

Из-за этой ошибки не возможно установить powershell из Кв. для более новых версий Ubuntu?

$ 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 система?

-1
задан 15 February 2018 в 02:26

1 ответ

Вы пытались установить пакет для Ubuntu 14.04, которая имеет libicu52 как зависимость, но Ловкий (точно как Пикантный) поставлется с libicu57. По крайней мере, когда дело доходит до зависимостей, шаги для Ubuntu 17.04 должны работать на 17,10. К счастью Microsoft обеспечивает a prod.list файл для 17,10 и 18.04 также:

# Import the public repository GPG keys
curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -

# Register the Microsoft Ubuntu repository – use your exact release only!
curl https://packages.microsoft.com/config/ubuntu/17.04/prod.list | sudo tee /etc/apt/sources.list.d/microsoft.list
curl https://packages.microsoft.com/config/ubuntu/17.10/prod.list | sudo tee /etc/apt/sources.list.d/microsoft.list
curl https://packages.microsoft.com/config/ubuntu/18.04/prod.list | sudo tee /etc/apt/sources.list.d/microsoft.list

# Update the list of products
sudo apt update

# Install PowerShell
sudo apt install powershell

# Start PowerShell
pwsh
3
ответ дан 31 October 2019 в 00:33

Другие вопросы по тегам:

Похожие вопросы: