Cant install apache on OpenSuse Leap 15.4

Im new to virtual machines and even newer to Linux. So I know little to nothing about how to operate a Linux machine. For a class I have to download apache on a OpenSuse machine, but I am running into this error:

localhost:/srv/www/htdocs # zypper in apache2
Loading repository data...
Reading installed packages...
Resolving package dependencies...

Problem: nothing provides 'libc.so.6(GLIBC_2.34)(64bit)' needed by the to be installed apache2-2.4.57-289.1.x86_64
 Solution 1: do not install apache2-2.4.57-289.1.x86_64
 Solution 2: break apache2-2.4.57-289.1.x86_64 by ignoring some of its dependencies

Choose from above solutions by number or cancel [1/2/c/d/?] (c):

Ive tried searching this up and couldnt find anything useful. Ive also tried using Yast, and im getting the same error

Post the output from:

zypper lr -d

Here’s the output:

#  | Alias                       | Name                                                                                        | Enabled | GPG Check | Refresh | Priority | Type   | URI                                                                                  | Service
---+-----------------------------+---------------------------------------------------------------------------------------------+---------+-----------+---------+----------+--------+--------------------------------------------------------------------------------------+--------
 1 | Apache                      | Apache HTTPD (openSUSE_Factory)                                                             | Yes     | (r ) Yes  | No      |   99     | rpm-md | https://download.opensuse.org/repositories/Apache/openSUSE_Factory/                  | 
 2 | openSUSE-Leap-15.4-1        | openSUSE-Leap-15.4-1                                                                        | No      | ----      | ----    |   99     | rpm-md | cd:/?devices=/dev/disk/by-id/ata-VMware_Virtual_IDE_CDROM_Drive_10000000000000000001 | 
 3 | repo-backports-debug-update | Update repository with updates for openSUSE Leap debuginfo packages from openSUSE Backports | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/update/leap/15.4/backports_debug/                       | 
 4 | repo-backports-update       | Update repository of openSUSE Backports                                                     | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.4/backports/                             | 
 5 | repo-debug                  | Debug Repository                                                                            | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/distribution/leap/15.4/repo/oss/                  | 
 6 | repo-debug-non-oss          | Debug Repository (Non-OSS)                                                                  | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/distribution/leap/15.4/repo/non-oss/              | 
 7 | repo-debug-update           | Update Repository (Debug)                                                                   | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/debug/update/leap/15.4/oss                              | 
 8 | repo-debug-update-non-oss   | Update Repository (Debug, Non-OSS)                                                          | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/update/leap/15.4/non-oss/                         | 
 9 | repo-non-oss                | Non-OSS Repository                                                                          | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/distribution/leap/15.4/repo/non-oss/                    | 
10 | repo-oss                    | Main Repository                                                                             | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/distribution/leap/15.4/repo/oss/                        | 
11 | repo-sle-debug-update       | Update repository with debuginfo for updates from SUSE Linux Enterprise 15                  | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/update/leap/15.4/sle/                             | 
12 | repo-sle-update             | Update repository with updates from SUSE Linux Enterprise 15                                | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.4/sle/                                   | 
13 | repo-source                 | Source Repository                                                                           | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/source/distribution/leap/15.4/repo/oss/                 | 
14 | repo-update                 | Main Update Repository                                                                      | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.4/oss                                    | 
15 | repo-update-non-oss         | Update Repository (Non-Oss)                                                                 | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.4/non-oss/                               | 

@2pisstoll Hi, your Apache is pointing at the incorrect repository for Leap 15.4…

Change the repo URL to https://download.opensuse.org/repositories/Apache/openSUSE_Leap_15.4/

Adding to the above.

Why do you have that extra Apache repo at all. Apache is in the standard repos.

And it maybe better to install the LAMP pattern to get all you may need in one go. YaST > Software > Software Management; the from the View menu (top-left) > Patterns; scroll down and check Web- and LAMP Server; Accept.

Or

zypper in -t pattern lamp_server

(BTW, it is spelled openSUSE).