I am trying to install mod_pagespeed
on my AWS EC2 ubuntu-22 machine.
I am trying the following way
Download the stable release
sudo wget https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-stable_current_amd64.deb
Installing the package
sudo dpkg -i mod-pagespeed-*.deb
Installation giving me the below error
Selecting previously unselected package mod-pagespeed-stable:amd64. (Reading database ... 165032 files and directories currently installed.) Preparing to unpack mod-pagespeed-stable_current_amd64.deb ... Unpacking mod-pagespeed-stable:amd64 (1.13.35.2-r0) ... dpkg: dependency problems prevent configuration of mod-pagespeed-stable:amd64: mod-pagespeed-stable:amd64 depends on libc6 (>= 2.17). mod-pagespeed-stable:amd64 depends on apache2.
dpkg: error processing package mod-pagespeed-stable:amd64 (--install): dependency problems - leaving unconfigured Errors were encountered while processing: mod-pagespeed-stable:amd64
So I tried to install libc6
by
sudo apt-get install libc6
and getting below output
Reading package lists... Done Building dependency tree... Done Reading state information... Done libc6 is already the newest version (2.35-0ubuntu3.1). libc6 set to manually installed. 0 upgraded, 0 newly installed, 0 to remove and 62 not upgraded.
It mean I already have the latest version of libc
so why I am getting this error.
amd64
, then yes. Hence the silly question: start with the easy stuff then begin digging into the more complicated things ...arm64
so I have added that architecture as foreign bysudo dpkg --add-architecture amd64