sudo apt 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
sudo ufw app list
Available applications:
OpenSSH
我正在尝试用这个命令
root@mydate:~# 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
root@mydate:~# sudo apt update
Ign:1 http://archive.ubuntu.com/ubuntu trusty InRelease
Get:2 http://archive.ubuntu.com/ubuntu trusty Release [58.5 kB]
Ign:3 http://rpms.litespeedtech.com/debian focal InRelease
Get:4 http://ppa.launchpad.net/ondrej/php/ubuntu focal InRelease [23.9 kB]
Err:4 http://ppa.launchpad.net/ondrej/php/ubuntu focal InRelease
Couldn't create temporary file /tmp/apt.conf.BLogEL for passing config to apt-key
Get:5 http://rpms.litespeedtech.com/debian focal Release [1,646 B]
Get:6 http://archive.ubuntu.com/ubuntu trusty Release.gpg [933 B]
Ign:6 http://archive.ubuntu.com/ubuntu trusty Release.gpg
Get:7 http://rpms.litespeedtech.com/debian focal Release.gpg [836 B]
Ign:7 http://rpms.litespeedtech.com/debian focal Release.gpg
Reading package lists... Done
W: GPG error: http://ppa.launchpad.net/ondrej/php/ubuntu focal InRelease: Couldn't create temporary file /tmp/apt.conf.BLogEL for passing config to apt-key
E: The repository 'http://ppa.launchpad.net/ondrej/php/ubuntu focal InRelease' is not signed.
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.
W: GPG error: http://archive.ubuntu.com/ubuntu trusty Release: Couldn't create temporary file /tmp/apt.conf.eRadTX for passing config to apt-key
E: The repository 'http://archive.ubuntu.com/ubuntu trusty Release' is not signed.
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.
W: GPG error: http://rpms.litespeedtech.com/debian focal Release: Couldn't create temporary file /tmp/apt.conf.2NAiA5 for passing config to apt-key
E: The repository 'http://rpms.litespeedtech.com/debian focal Release' is not signed.
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.
root@mydate:~# sudo ufw app list
Available applications:
OpenSSH
root@mydate:~#
root@mydate:~# sudo systemctl status apache2
● apache2.service
Loaded: not-found (Reason: Unit apache2.service not found.)
Active: failed (Result: resources)
Jan 19 06:48:21 mydate systemd[1]: Stopped The Apache HTTP Server.
Jan 19 08:25:00 mydate systemd[1]: apache2.service: Failed to run 'start' task:>
Jan 19 08:25:00 mydate systemd[1]: apache2.service: Failed with result 'resourc>
Jan 19 08:25:00 mydate systemd[1]: Failed to start The Apache HTTP Server.
Jan 19 08:26:21 mydate systemd[1]: apache2.service: Failed to run 'start' task:>
Jan 19 08:26:21 mydate systemd[1]: apache2.service: Failed with result 'resourc>
Jan 19 08:26:21 mydate systemd[1]: Failed to start The Apache HTTP Server.
Jan 19 10:35:01 mydate systemd[1]: apache2.service: Failed to run 'start' task:>
Jan 19 10:35:01 mydate systemd[1]: apache2.service: Failed with result 'resourc>
Jan 19 10:35:01 mydate systemd[1]: Failed to start The Apache HTTP Server.
lines 1-14/14 (END)