小编Kir*_*ahi的帖子

得到错误 E:无法纠正问题,您持有破损的包裹。在安装 Ruby on Rails 时

使用的命令:

sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev
Run Code Online (Sandbox Code Playgroud)

输出:

Reading package lists... Done
Building dependency tree
Reading state information... Done
curl is already the newest version.
curl set to manually installed.
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. …
Run Code Online (Sandbox Code Playgroud)

package-management apt dpkg dependencies software-installation

3
推荐指数
1
解决办法
2322
查看次数

E: 包 'apache2' 在 Ubuntu 17.10 上没有安装候选

在 Ubuntu 17.10 上E: Package 'apache2' has no installation candidate安装 apache2 时出错sudo apt-get install apache2。这是终端上显示的消息。

sudo apt-get install apache2
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package apache2 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'apache2' has no installation candidate
Run Code Online (Sandbox Code Playgroud)

apt-cache policy apache2命令后的消息。

apache2:
  Installed: (none)
  Candidate: (none) …
Run Code Online (Sandbox Code Playgroud)

server package-management apt apache2

3
推荐指数
1
解决办法
9432
查看次数