无法通过 apt 安装 apache2

无法通过 apt 安装 apache2

我正在尝试在 Ubuntu 服务器 18.04 上安装 apache2。

当我尝试使用 apt 安装它时,我似乎陷入了困境。

以下步骤不断重复,最终该过程永无结束。

Get:1 http://security.ubuntu.com/ubuntu bionic-security/main amd64 apache2-data all 2.4.29-1ubuntu4.26 [160 kB]
86% [1 apache2-data 9874 B/160 kB 6%]^C

完整输出:

sudo apt install apache2 -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  formencode-i18n ieee-data landscape-hashids landscape-server libjs-yui3-common libjs-yui3-full libjs-yui3-min python-amqp
  python-amqplib python-bson python-bson-ext python-chameleon python-convoy python-crypto python-cssutils python-dateutil
  python-dbus python-decorator python-dnspython python-egenix-mxdatetime python-egenix-mxtools python-epsilon python-extras
  python-fake-factory python-fixtures python-formencode python-gi python-gnupg python-iso8601 python-keyring python-keyrings.alt
  python-launchpadlib python-linecache2 python-mechanize python-mimeparse python-netaddr python-oops python-oops-amqp
  python-oops-datedir-repo python-oops-twisted python-oops-wsgi python-openid python-paste python-pastedeploy
  python-pastedeploy-tpl python-pastescript python-pbr python-persistent python-prometheus-client python-psycopg2 python-pycurl
  python-restrictedpython python-scgi python-secretstorage python-storm python-stripe python-tempita python-testtools
  python-traceback2 python-transaction python-treq python-txamqp python-txaws python-txjuju python-txlongpoll python-tz
  python-unidecode python-unittest2 python-venusian python-vine python-waitress python-webob python-webtest python-yaml python-z3c
  python-z3c.pt python-zc python-zc.lockfile python-zconfig python-zdaemon python-zodb python-zope.annotation
  python-zope.app.appsetup python-zope.app.http python-zope.app.pagetemplate python-zope.app.publication python-zope.app.schema
  python-zope.app.wsgi python-zope.authentication python-zope.broken python-zope.browser python-zope.browsermenu
  python-zope.browserpage python-zope.browserresource python-zope.cachedescriptors python-zope.component python-zope.component-zcml
  python-zope.configuration python-zope.container python-zope.contentprovider python-zope.contenttype python-zope.datetime
  python-zope.dottedname python-zope.dublincore python-zope.error python-zope.event python-zope.exceptions
  python-zope.filerepresentation python-zope.formlib python-zope.hookable python-zope.i18n python-zope.i18nmessageid
  python-zope.lifecycleevent python-zope.location python-zope.minmax python-zope.pagetemplate python-zope.password
  python-zope.pluggableauth python-zope.principalregistry python-zope.processlifetime python-zope.proxy python-zope.publisher
  python-zope.schema python-zope.security python-zope.securitypolicy python-zope.sendmail python-zope.session python-zope.site
  python-zope.size python-zope.tal python-zope.tales python-zope.testbrowser python-zope.testing python-zope.traversing
  python-zope.untrustedpython python-zope.viewlet
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  apache2-bin apache2-data apache2-utils
Suggested packages:
  www-browser apache2-doc apache2-suexec-pristine | apache2-suexec-custom
The following NEW packages will be installed:
  apache2 apache2-bin apache2-data apache2-utils
0 upgraded, 4 newly installed, 0 to remove and 18 not upgraded.
Need to get 160 kB/1410 kB of archives.
After this operation, 5893 kB of additional disk space will be used.
Get:1 http://security.ubuntu.com/ubuntu bionic-security/main amd64 apache2-data all 2.4.29-1ubuntu4.26 [160 kB]
Get:1 http://security.ubuntu.com/ubuntu bionic-security/main amd64 apache2-data all 2.4.29-1ubuntu4.26 [160 kB]
Get:1 http://security.ubuntu.com/ubuntu bionic-security/main amd64 apache2-data all 2.4.29-1ubuntu4.26 [160 kB]
Get:1 http://security.ubuntu.com/ubuntu bionic-security/main amd64 apache2-data all 2.4.29-1ubuntu4.26 [160 kB]
Get:1 http://security.ubuntu.com/ubuntu bionic-security/main amd64 apache2-data all 2.4.29-1ubuntu4.26 [160 kB]
Get:1 http://security.ubuntu.com/ubuntu bionic-security/main amd64 apache2-data all 2.4.29-1ubuntu4.26 [160 kB]
Get:1 http://security.ubuntu.com/ubuntu bionic-security/main amd64 apache2-data all 2.4.29-1ubuntu4.26 [160 kB]
86% [1 apache2-data 9874 B/160 kB 6%]^C

我只在家庭实验室中使用 Ubuntu,没有太多经验。我能做些什么吗?尝试安装 apache2 作为 Landscape 配置的一部分。

谢谢。

相关内容