当我输入以下内容时我想安装 apache:
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
However the following packages replace it:
libapache2-mpm-itk:i386 libapache2-mpm-itk
E: Package 'apache2' has no installation candidate
我尝试了很多解决方案但都没有用我该怎么办?
sudo apt update
按要求输出:
Hit:1 http://ppa.launchpad.net/deluge-team/ppa/ubuntu bionic InRelease
Hit:2 http://archive.ubuntu.com/ubuntu bionic InRelease
Hit:3 http://packages.microsoft.com/repos/vscode stable InRelease
Hit:4 http://ppa.launchpad.net/deluge-team/stable/ubuntu bionic InRelease
Hit:5 https://deb.nodesource.com/node_10.x bionic InRelease
Hit:6 https://download.docker.com/linux/ubuntu bionic InRelease
Hit:7 http://ppa.launchpad.net/git-core/ppa/ubuntu bionic InRelease
Hit:8 https://download.sublimetext.com apt/stable/ InRelease
Hit:9 http://ppa.launchpad.net/indicator-brightness/ppa/ubuntu bionic InRelease
Hit:10 http://ppa.launchpad.net/linuxuprising/java/ubuntu bionic InRelease
Hit:11 http://ppa.launchpad.net/transmissionbt/ppa/ubuntu bionic InRelease
Ign:12 http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu bionic InRelease
Hit:13 http://ppa.launchpad.net/webupd8team/java/ubuntu bionic InRelease
Err:14 http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu bionic Release
404 Not Found [IP: 91.189.95.83 80]
Reading package lists... Done
E: The repository 'http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu bionic Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
答案1
所以我设法解决了我自己的问题,我发布此信息以供参考,以防以后有人读到它:首先,按照@Marble 告诉我做的那样,我ubuntu-wine
从软件和更新->其他软件中删除了。=> apache2 已安装然后,为了解决与 javascript-common 相关的问题,我输入了以下命令:
apt-get remove javascript-common
apt-get --purge remove javascript-common
apt-get purge javascript-common
现在问题解决了:)