Solve the problem of lack of libssl1.1 in ARM Ubuntu 22.04

When installing php5.6, the following error message appears

The following packages have unmet dependencies:
 php5.6 : Depends: libapache2-mod-php5.6 but it is not installable or
                   php5.6-fpm but it is not installable or
                   php5.6-cgi but it is not installable
 php5.6-common : Depends: libssl1.1 (>= 1.1.0) but it is not installable
E: Unable to correct problems, you have held broken packages.

Prompt missing dependencies libssl1.1, so use apt to install it

sudo apt install libssl1.1

found that this dependency package could not be found

E: Package 'libssl1.1' has no installation candidate

After consulting the information, I learned that in versions after Ubuntu 18.04, libssl1.1it has been removed from the warehouse, so under Ubuntu 20.04 and Ubuntu 22.04 systems, we can only manually install this dependency package.

Since most online tutorials are based on the x86_64 platform, the warehouse used is different from the ARM platform. We can use a browser to open the official ubuntu-ports warehouse to download libssl1.1, select libssl1.1_1.1.1-1ubuntu2.1~18.04.22_arm64.deband click download

insert image description here

If your Ubuntu system does not have a graphical interface, you can also use wgetthe command to download

wget http://ports.ubuntu.com/ubuntu-ports/pool/main/o/openssl/libssl1.1_1.1.1-1ubuntu2.1~18.04.22_arm64.deb

After the dependent package is downloaded, enter its directory and use the software installation tool dpkgto install

sudo dpkg -i libssl1.1_1.1.1-1ubuntu2.1~18.04.22_arm64.deb

After the installation is complete, there will be no prompt for missing dependencies.

Guess you like

Origin blog.csdn.net/iBenzene/article/details/130902653