小编End*_*der的帖子

在 Ubuntu 17.04 中安装 Powershell

我正在尝试按照以下步骤在 Ubuntu 17.04 中安装 Powershell:

curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -

curl https://packages.microsoft.com/config/ubuntu/16.04/prod.list | sudo tee /etc/apt/sources.list.d/microsoft.list

sudo apt-get update

sudo apt-get install -y powershell
Run Code Online (Sandbox Code Playgroud)

我知道我正在使用 16.04 包/内置安装。不幸的是我找不到 17.04 的那个。

这是我遇到的错误 sudo apt-get install -y powershell

The following packages have unmet dependencies:  
  powershell : Depends: libicu55 but it is not installable 
Run Code Online (Sandbox Code Playgroud)

然后我尝试:

apt-cache search libicu
Run Code Online (Sandbox Code Playgroud)

我也找不到要安装的 libicu55。有没有办法在 Ubuntu 17.04 中安装 Powershell?

powershell 17.04

12
推荐指数
2
解决办法
1万
查看次数

处理存档 /var/cache/apt/archives/libc6_2.27-3ubuntu1_amd64.deb 时出错

当我运行 sudo apt-get -f install 时,它显示 dpkg:错误处理。我也跑过sudo dpkg -i --force-overwrite /var/cache/apt/archives/libc6_2.27-3ubuntu1_amd64.deb

sudo dpkg -i --force-overwrite /var/cache/apt/archives/libc6_2.27- 
3ubuntu1_amd64.deb 
(Reading database ... 362976 files and directories currently 
installed.)
Preparing to unpack .../libc6_2.27-3ubuntu1_amd64.deb ...
dpkg: error processing archive /var/cache/apt/archives/libc6_2.27- 
3ubuntu1_amd64.deb (--install):
subprocess new pre-installation script returned error exit status 1
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Errors were encountered while processing:
/var/cache/apt/archives/libc6_2.27-3ubuntu1_amd64.de
Run Code Online (Sandbox Code Playgroud)

grep -r deb /etc/apt/sources.list /etc/apt/sources.list.d

/etc/apt/sources.list:deb http://archive.ubuntu.com/ubuntu bionic main restricted universe
/etc/apt/sources.list:deb http://archive.ubuntu.com/ubuntu bionic-updates main restricted universe
/etc/apt/sources.list:deb http://security.ubuntu.com/ubuntu bionic-security …
Run Code Online (Sandbox Code Playgroud)

updates dpkg

2
推荐指数
1
解决办法
2万
查看次数

标签 统计

17.04 ×1

dpkg ×1

powershell ×1

updates ×1