ckhatton
ckhatton

Reputation: 1572

Upgrade Apache 2.4.18 to 2.4.26 or higher on Ubuntu 16.04.7

I am trying to upgrade Apache2 to a version higher than 2.4.26 so that I can enable HTTP/2. I have run these commands with no joy:

sudo add-apt-repository ppa:ondrej/apache2
sudo apt update
sudo apt upgrade
sudo apt dist-upgrade

I have Ubuntu ESM. Ubuntu 16.04.7

Upvotes: 3

Views: 5155

Answers (4)

Yuniya
Yuniya

Reputation: 21

Ubuntu 16.04 Xenial reached End of Standard Support in April 2021 and all the packages for this version of Ubuntu were removed from ppa:ondrej/apache2 by its maintainer.

Source: https://github.com/oerdnj/deb.sury.org/issues/1567

Upvotes: 1

Aurelio Martin Massoni
Aurelio Martin Massoni

Reputation: 1706

Some alternatives:

  • Downloading the source code from https://httpd.apache.org/download.cgi and installing in a different path such as /opt/apache2 - there could be a problem with dependencies such as OpenSSL ?
  • Running a Ubuntu 18.04/20.04/22.04 container with apache2 inside your Ubuntu 16.04 - not sure if docker is available in 16.04 ESM ?
  • My recommendation, do-release-upgrade and move to Ubuntu 18.04 ( https://help.ubuntu.com/community/BionicUpgrades ). You will get TLS 1.3 as an extra.

Upvotes: 2

Mohammad Jahandideh
Mohammad Jahandideh

Reputation: 101

Try adding these 2 lines to /etc/apt/sources.list

  1. deb http://ppa.launchpad.net/ondrej/apache2/ubuntu xenial main
  2. deb-src http://ppa.launchpad.net/ondrej/apache2/ubuntu xenial main

and then

sudo apt update

sudo apt upgrade

sudo apt dist-upgrade

Upvotes: 0

Ryan Dunnion
Ryan Dunnion

Reputation: 19

Have you run:

sudo apt install apache2

Then restart Apache.

Upvotes: 0

Related Questions