Rocky 8.6 Error on Install Cannot Download Package

Installing new Rocky Linux from ISO. After initial setup configuration, I get the error “failed to download the following packages: cannot download Package/j/java-1.8.0-openjdk-headless- All mirrors were tried” I looked at the repo location at Index of /pub/rocky/8/BaseOS/x86_64/os/Packages/j/ and there is no openjdk in that location at all.

It is in the AppStream. Maybe an issue with the mirror. Try a ‘sudo dnf makecache’ followed by a ‘dnf install java-1.8.0-openjdk-headless’.

Looks like there are some packages that didn’t come in from our latest update. I’ll look into why this happened.

Edit: @joebeasley3 is right… it’s in AppStream… I didn’t completely read his reply. Thank you @joebeasley3!

So during installation I have the option to enter 1 installation source URL with the radio button “on the network” selected, and that is where I put the BaseOS url (Index of /pub/rocky/8/BaseOS/x86_64/os/) as referenced in the install docs here Installing Rocky Linux 8.6 - Documentation

but now do I also need to add the appstream URL as an additional repository so that it would cover the OpenJDK?

ok I added the AppStream Repo URL (spacing because it wont let me post the full url for some reason)

download .rockylinux. org /pub/rocky/8/AppStream/x86_64/os/

as an additional Repo and I still got the “failed to download the following packages” error where it cannot find OpenJDK

I understand. On my end, I see no issues:

. . .
Dependencies resolved.
 Package                                       Architecture             Version                                               Repository                   Size
 java-1.8.0-openjdk-headless                   x86_64                   1:                               appstream                    34 M
Installing dependencies:
 copy-jdk-configs                              noarch                   4.0-2.el8                                             appstream                    29 k
 javapackages-filesystem                       noarch                   5.3.0-2.module+el8.3.0+125+5da1ae29                   appstream                    29 k
 libjpeg-turbo                                 x86_64                   1.5.3-12.el8                                          appstream                   156 k
 lksctp-tools                                  x86_64                   1.0.18-3.el8                                          baseos                       98 k
 lua                                           x86_64                   5.3.4-12.el8                                          appstream                   191 k
 tzdata-java                                   noarch                   2022a-1.el8                                           appstream                   190 k

Transaction Summary
Install  7 Packages

Total download size: 35 M
Installed size: 119 M
Is this ok [y/N]: y
Downloading Packages:
(1/7): copy-jdk-configs-4.0-2.el8.noarch.rpm                                                                                    187 kB/s |  29 kB     00:00
(2/7): javapackages-filesystem-5.3.0-2.module+el8.3.0+125+5da1ae29.noarch.rpm                                                   182 kB/s |  29 kB     00:00
(3/7): libjpeg-turbo-1.5.3-12.el8.x86_64.rpm                                                                                    1.2 MB/s | 156 kB     00:00
(4/7): lua-5.3.4-12.el8.x86_64.rpm                                                                                              1.2 MB/s | 191 kB     00:00
(5/7): tzdata-java-2022a-1.el8.noarch.rpm                                                                                       2.5 MB/s | 190 kB     00:00
(6/7): lksctp-tools-1.0.18-3.el8.x86_64.rpm                                                                                     783 kB/s |  98 kB     00:00
(7/7): java-1.8.0-openjdk-headless-                                                              27 MB/s |  34 MB     00:01
Total                                                                                                                            28 MB/s |  35 MB     00:01
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Running scriptlet: copy-jdk-configs-4.0-2.el8.noarch                                                                                                      1/1
  Running scriptlet: java-1.8.0-openjdk-headless-1:                                                                             1/1
  Preparing        :                                                                                                                                        1/1
  Installing       : lksctp-tools-1.0.18-3.el8.x86_64                                                                                                       1/7
  Running scriptlet: lksctp-tools-1.0.18-3.el8.x86_64                                                                                                       1/7
  Installing       : tzdata-java-2022a-1.el8.noarch                                                                                                         2/7
  Installing       : lua-5.3.4-12.el8.x86_64                                                                                                                3/7
  Installing       : copy-jdk-configs-4.0-2.el8.noarch                                                                                                      4/7
  Installing       : libjpeg-turbo-1.5.3-12.el8.x86_64                                                                                                      5/7
  Installing       : javapackages-filesystem-5.3.0-2.module+el8.3.0+125+5da1ae29.noarch                                                                     6/7
. . .

I can also verify where it is coming from here. This machine in particular connects directly to our site.

Loaded plugins: builddep, changelog, config-manager, copr, debug, debuginfo-install, download, generate_completion_cache, groups-manager, needs-restarting, playground, repoclosure, repodiff, repograph, repomanage, reposync
DNF version: 4.7.0
cachedir: /var/cache/dnf
Repo-id            : appstream
Repo-name          : Rocky Linux 8 - AppStream
Repo-revision      : 8.6
Repo-distro-tags      : [cpe:/o:rocky:rocky:8]:  ,  , 8, L, R, c, i, k, n, o, u, x, y
Repo-updated       : Wed 03 Aug 2022 01:45:49 AM MST
Repo-pkgs          : 7,418
Repo-available-pkgs: 5,926
Repo-size          : 13 G
Repo-baseurl       :
Repo-expire        : 172,800 second(s) (last: Thu 04 Aug 2022 12:10:51 PM MST)
Repo-filename      : /etc/yum.repos.d/Rocky-AppStream.repo

Repo-id            : baseos
Repo-name          : Rocky Linux 8 - BaseOS
Repo-revision      : 8.6
Repo-distro-tags      : [cpe:/o:rocky:rocky:8]:  ,  , 8, L, R, c, i, k, n, o, u, x, y
Repo-updated       : Wed 03 Aug 2022 01:45:51 AM MST
Repo-pkgs          : 2,290
Repo-available-pkgs: 2,288
Repo-size          : 3.0 G
Repo-baseurl       :
Repo-expire        : 172,800 second(s) (last: Thu 04 Aug 2022 12:10:55 PM MST)
Repo-filename      : /etc/yum.repos.d/Rocky-BaseOS.repo

Repo-id            : epel
Repo-name          : Extra Packages for Enterprise Linux 8 - x86_64
Repo-revision      : 1659573842
Repo-updated       : Wed 03 Aug 2022 05:50:36 PM MST
Repo-pkgs          : 8,908
Repo-available-pkgs: 8,908
Repo-size          : 13 G
Repo-metalink      :$infra&content=pub/rocky
  Updated          : Thu 04 Aug 2022 12:11:03 PM MST
Repo-baseurl       : (133 more)
Repo-expire        : 172,800 second(s) (last: Thu 04 Aug 2022 12:11:03 PM MST)
Repo-filename      : /etc/yum.repos.d/epel.repo

Repo-id            : epel-modular
Repo-name          : Extra Packages for Enterprise Linux Modular 8 - x86_64
Repo-revision      : 1655948942
Repo-updated       : Wed 22 Jun 2022 06:49:18 PM MST
Repo-pkgs          : 317
Repo-available-pkgs: 0
Repo-size          : 1.1 G
Repo-metalink      :$infra&content=pub/rocky
  Updated          : Thu 04 Aug 2022 12:11:15 PM MST
Repo-baseurl       : (157 more)
Repo-expire        : 172,800 second(s) (last: Thu 04 Aug 2022 12:11:15 PM MST)
Repo-filename      : /etc/yum.repos.d/epel-modular.repo

Repo-id            : extras
Repo-name          : Rocky Linux 8 - Extras
Repo-revision      : 1659505064
Repo-distro-tags      : [cpe:/o:rocky:rocky:8]:  ,  , 8, L, R, c, i, k, n, o, u, x, y
Repo-updated       : Wed 03 Aug 2022 01:45:51 AM MST
Repo-pkgs          : 42
Repo-available-pkgs: 42
Repo-size          : 3.0 M
Repo-baseurl       :
Repo-expire        : 172,800 second(s) (last: Thu 04 Aug 2022 12:10:57 PM MST)
Repo-filename      : /etc/yum.repos.d/Rocky-Extras.repo

Repo-id            : powertools
Repo-name          : Rocky Linux 8 - PowerTools
Repo-revision      : 8.6
Repo-distro-tags      : [cpe:/o:rocky:rocky:8]:  ,  , 8, L, R, c, i, k, n, o, u, x, y
Repo-updated       : Wed 03 Aug 2022 01:45:51 AM MST
Repo-pkgs          : 2,412
Repo-available-pkgs: 1,783
Repo-size          : 9.4 G
Repo-baseurl       :
Repo-expire        : 172,800 second(s) (last: Thu 04 Aug 2022 12:10:57 PM MST)
Repo-filename      : /etc/yum.repos.d/Rocky-PowerTools.repo
Total packages: 21,387

Ok this is happening when I am trying to install Rocky Linux for the first time.

I boot from the ISO.

I get to the Rocky Linux Installation screen.

Under the Software section there is an Installation Source setting. I can click into it. I have the option of selecting an Installation source that is either the ISO or I can choose “On the Network”. So according to the installation documentation I would put in the BaseOS repo url. When I select the ISO, it gives me an error that it cannot download the repo information.

I cannot move on with the installation process if I do not put in an installation URL for the repo.

It is when the Installation Source can access the BaseOS repo url, am I able to continue with the install. I click on the blue button labeled “Being Installation”. Then I get the error that it cannot find the package.

I have no working system, I verified I can get to the URL of the repos and browse them from my Windows computer, but I cannot Install Rocky linux.

How would I source the repos from the USB stick that I made the ISOs from that I am booting off of? I am selecting “repository url” for these repo urls like
https://download. rockylinux. org/pub/rocky/8/BaseOS/x86_64/os/
https://download. rockylinux. org/pub/rocky/8/AppStream/x86_64/os/

is that correct?

I add the AppStream in the “Additional Repositories” section, is that how I am supposed to handle this?

I really cant get past this installation screen, I have no terminal access, I am using the GUI install, and it won’t let me select the USB stick as an ISO source for the repos. It wont let me start installing until I at least have the Repo URLs added.

Is there any particular reason why you are using the boot iso? Maybe it would be far easier to use the minimal ISO or the DVD iso? That way, you will have far less problems and not have to worry about providing url’s to get your install working.

The other alternative, is do a basic minimal install, and then install openjdk later once your minimal system has been installed. Maybe try that?

Ok the boot ISO was the issue. The DVD iso works on install with no issues.

1 Like

This may be unrelated but I have similar issue. I just installed Rocky Linux (I am on Google Cloud) and running dnf update I am getting the error

Downloading Packages:
[MIRROR] tzdata-2022f-1.el8.noarch.rpm: Downloading successful, but checksum doesn’t match. Calculated: b20056db1d142973b6991fe5621d9d75b36c6af06351c50000143abf156d0c06(sha256) Expected: 5619cfff3e266ec4cadbae18393e11fadfecca915d675e08518e0bb092c6a9d0(sha256)
tzdata-2022f-1.el8.noarch.rpm 595 kB/s | 468 kB 00:00

Total 445 kB/s | 468 kB 00:01
Package tzdata-2022f-1.el8.noarch.rpm is not signed
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing ‘dnf clean packages’.
Error: GPG check FAILED

I don’t know how to proceed since this is coming from the repo

It will be fixed has been reported: 0000694: tzdata-2022f-1.el8.noarch.rpm and tzdata-java-2022f-1.el8.noarch.rpm are not signed - Rocky BugTracker

so once fixed, will filter down shortly, and then the problem won’t exist on the repos: