8.0: installation: "no applications installed or available"

Latest response

I've just done a clean 8.0 installation, but have had a couple of problems. First, the Cockpit Applications app failed with "Cannot update read-only repo". I fixed this with a "dnf remove PackageKit-command-not-found", as per the recommendation [here] (https://access.redhat.com/solutions/4308351).

However, this isn't sufficient to get Cockpit or the Software app to show any applications; Cockpit just shows "no applications installed or available". If I try a refresh I get:

cannot update repo 'satellite-tools-6.6-for-rhel-8-x86_64-source-rpms':
   Cannot download repomd.xml:
   Cannot download repodata/repomd.xml:
   All mirrors were tried; Last error:
      Status code: 403 for
      https://cdn.redhat.com/content/dist/layered/rhel8/x86_64/sat-tools/6.6/source/SRPMS/repodata/repomd.xml

This repo wasn't enabled, so I've enabled everything with

subscription-manager repos --enable=*

This does appear to enable everything, including the required repo, but dnf repolistfails before showing a complete list of repos, with

Error: Failed to synchronize cache for repo 'rhel-8-for-x86_64-sap-netweaver-source-rpms'

Anyway, this makes no difference. Cockpit still shows "No applications installed or available", and the Software app shows a blank page for 'installed', and various empty categories for 'available'.
I've run out of ideas here - can anyone sugegst anything? I'm on a dev subscription, if it helps. Thanks.

Responses

Hi Evan,

The name "Applications" in the Web Console (cockpit) is a bit misleading, it shows available and/or installed cockpit add-ons.
It does not show "normal/standard" applications that are shown in GNOME Software which, by the way, relies on PackageKit.

Execute the following commands, this should (hopefully) solve the described problem. :)
Beforehand disable all repositories, except BaseOS, AppStream and CodeReady Builder.

sudo dnf clean all
sudo rm -r /var/cache/dnf
sudo rm -r /var/cache/PackageKit

sudo dnf upgrade
sudo pkcon refresh

Regards,
Christian

Hi Christian - unfortunately, that hasn't fixed it. The upgrade and refresh finish normally (I'll attach a log I can find out how), but Gnome Software still shows nothing (to be precise, it shows various boxes with nothing in them, which then disappear when you click something). Cockpit/Applications still fails.

I don't suppose you've got any other ideas? This is a plain 'Server with GUI' install, with only tigervnc, emacs, and cockpit added, and selinux disabled, with some firewall changes.

Thanks - Evan

[root@Merlin work]# dnf repolist
Updating Subscription Management repositories.
Red Hat CodeReady Linux Builder for RHEL 8 x86_64 (RPMs)                                     1.3 kB/s | 4.5 kB     00:03    
Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs)                                     3.0 kB/s | 4.5 kB     00:01    
Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs)                                        2.7 kB/s | 4.0 kB     00:01    
repo id                                            repo name                                                           status
codeready-builder-for-rhel-8-x86_64-rpms           Red Hat CodeReady Linux Builder for RHEL 8 x86_64 (RPMs)            1,504
rhel-8-for-x86_64-appstream-rpms                   Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs)            5,770
rhel-8-for-x86_64-baseos-rpms                      Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs)               2,097
[root@Merlin work]# dnf clean all
Updating Subscription Management repositories.
208 files removed
[root@Merlin work]# rm -rf /var/cache/dnf
[root@Merlin work]# rm -rf /var/cache/PackageKit
[root@Merlin work]# time dnf upgrade
Updating Subscription Management repositories.
Red Hat CodeReady Linux Builder for RHEL 8 x86_64 (RPMs)                                      98 kB/s | 2.2 MB     00:22    
Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs)                                     599 kB/s | 8.7 MB     00:14    
Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs)                                        598 kB/s | 6.4 MB     00:10    
Last metadata expiration check: 0:00:05 ago on Mon 02 Sep 2019 19:25:31 BST.
Dependencies resolved.
Nothing to do.
Complete!

real    0m53.718s
user    0m3.832s
sys 0m0.198s
[root@Merlin work]# time pkcon refresh
Refreshing cache              [=========================]         
Starting                      [=========================]         
Downloading repository information[=========================]         
Loading cache                 [=========================]         
Downloading repository information[=========================]         
Loading cache                 [=========================]         
Downloading repository information[=========================]         
Loading cache                 [=========================]         
Downloading repository information[=========================]         
Loading cache                 [=========================]         
Downloading repository information[=========================]         
Loading cache                 [=========================]         
Downloading repository information[=========================]         
Loading cache                 [=========================]         
Downloading repository information[=========================]         
Loading cache                 [=========================]         
Downloading repository information[=========================]         
Loading cache                 [=========================]         
Downloading repository information[=========================]         
Loading cache                 [=========================]         
Downloading repository information[=========================]         
Loading cache                 [=========================]         
Downloading repository information[=========================]         
Loading cache                 [=========================]         
Downloading repository information[=========================]         
Loading cache                 [=========================]         
Downloading repository information[=========================]         
Loading cache                 [=========================]         
Downloading repository information[=========================]         
Loading cache                 [=========================]         
Downloading repository information[=========================]         
Loading cache                 [=========================]         
Downloading repository information[=========================]         
Loading cache                 [=========================]         
Downloading repository information[=========================]         
Loading cache                 [=========================]         
Downloading repository information[=========================]         
Loading cache                 [=========================]         
Downloading repository information[=========================]         
Loading cache                 [=========================]         
Downloading repository information[=========================]         
Loading cache                 [=========================]         
Downloading repository information[=========================]         
Loading cache                 [=========================]         
Downloading repository information[=========================]         
Loading cache                 [=========================]         
Downloading repository information[=========================]         
Loading cache                 [=========================]         
Downloading repository information[=========================]         
Loading cache                 [=========================]         
Downloading repository information[=========================]         
Loading cache                 [=========================]         
Downloading repository information[=========================]         
Loading cache                 [=========================]         
Downloading repository information[=========================]         
Loading cache                 [=========================]         
Downloading repository information[=========================]         
Loading cache                 [=========================]         
Downloading repository information[=========================]         
Loading cache                 [=========================]         
Downloading repository information[=========================]         
Loading cache                 [=========================]         
Downloading repository information[=========================]         
Loading cache                 [=========================]         
Downloading repository information[=========================]         
Loading cache                 [=========================]         
Downloading repository information[=========================]         
Loading cache                 [=========================]         
Downloading repository information[=========================]         
Loading cache                 [=========================]         
Downloading repository information[=========================]         
Loading cache                 [=========================]         
Downloading repository information[=========================]         
Loading cache                 [=========================]         
Downloading repository information[=========================]         
Loading cache                 [=========================]         
Downloading repository information[=========================]         
Loading cache                 [=========================]         
Downloading repository information[=========================]         
Loading cache                 [=========================]         
Downloading repository information[=========================]         
Loading cache                 [=========================]         
Downloading repository information[=========================]         
Loading cache                 [=========================]         
Downloading repository information[=========================]         
Loading cache                 [=========================]         
Downloading repository information[=========================]         
Loading cache                 [=========================]         
Downloading repository information[=========================]         
Loading cache                 [=========================]         
Downloading repository information[=========================]         
Loading cache                 [=========================]         
Downloading repository information[=========================]         
Loading cache                 [=========================]         
Downloading repository information[=========================]         
Loading cache                 [=========================]         
Downloading repository information[=========================]         
Loading cache                 [=========================]         
Downloading repository information[=========================]         
Loading cache                 [=========================]         
Downloading repository information[=========================]         
Loading cache                 [=========================]         
Downloading repository information[=========================]         
Loading cache                 [=========================]         
Downloading repository information[=========================]         
Loading cache                 [=========================]         
Downloading repository information[=========================]         
Loading cache                 [=========================]         
Downloading repository information[=========================]         
Loading cache                 [=========================]         
Downloading repository information[=========================]         
Loading cache                 [=========================]         
Downloading repository information[=========================]         
Loading cache                 [=========================]         
Downloading repository information[=========================]         
Loading cache                 [=========================]         
Downloading repository information[=========================]         
Loading cache                 [=========================]         
Downloading repository information[=========================]         
Loading cache                 [=========================]         
Downloading repository information[=========================]         
Loading cache                 [=========================]         
Downloading repository information[=========================]         
Loading cache                 [=========================]         
Downloading repository information[=========================]         
Loading cache                 [=========================]         
Downloading repository information[=========================]         
Loading cache                 [=========================]         
Downloading repository information[=========================]         
Loading cache                 [=========================]         
Downloading repository information[=========================]         
Loading cache                 [=========================]         
Downloading repository information[=========================]         
Querying                      [=========================]         
Loading cache                 [=========================]         
Finished                      [=========================]         

real    9m31.423s
user    0m0.035s
sys 0m0.012s
[root@Merlin work]# 

I had a hunch that this might be related to disabling Wayland for vnc, so tried connecting a monitor and enabling it again. Unfortunately, enabling Wayland doesn't seem to be trivial. Commenting out the 'WaylandEnable=false' line in /etc/gdm/custom.conf has no effect - the wheel-thingy in the logon screen still has no Wayland option. Tried logging out and in again, and changing the run level, and restarting, but nothing made any difference.

Adding 'WaylandEnable=true' doesn't help, and stops the login completing.

Hi Evan,

After having read all your additional information, I come to the conclusion that something is messed up badly.
My suggestion would be to reinstall the system - don't forget to unregister the current system beforehand. :)

Select Workstation instead of Server with GUI in the Anaconda installer this time. Some recommendations :
Don't tweak the GUI too much, the more you tweak the more things may break ... and don't disable Wayland.
If you want to login to the X session instead of the Wayland session, just select the option GNOME on X.org.
And also ... disabling SELinux is a very bad idea, please don't do that - it is a very important security feature.

Regards,
Christian

I was able to resolve this exact same problem statement by removing read-only install media.

I had the following line in /etc/fstab

...
/data/isos/rhel-8.1-beta-1-x86_64-dvd.iso  /data/repos/rhel-8.1-beta iso9660  loop,ro  0 0
...

So I ran umount /data/repos/rhel-8.1-beta and the issue vanished. The clue came from pkcon repo-list, as show here:

[root@arrakis yum.repos.d]# pkcon repo-list | grep Enabled
 Enabled    media                     Red Hat Enterprise Linux 8.1.0
 Enabled    rpmfusion-free-updates    RPM Fusion for EL 8 - Free - Updates
 Enabled    rpmfusion-nonfree-updates RPM Fusion for EL 8 - Nonfree - Updates
 Enabled    epel                      Extra Packages for Enterprise Linux 8 - x86_64
 Enabled    rhel-8-for-x86_64-appstream-beta-rpms Red Hat Enterprise Linux 8 for x86_64 - AppStream Beta (RPMs)
 Enabled    rhel-8-for-x86_64-baseos-beta-rpms Red Hat Enterprise Linux 8 for x86_64 - BaseOS Beta (RPMs)

I had downloaded the beta ISO, loop mounted that, and had run a dnf upgrade to 8.1 beta from 8.0. Since then I had requested and received a beta subscription from Red Hat, and those repos were enabled. Also, I had completely cleaned away any yum.repos.d configuration files that pointed to the media repo. So this is very strange.

Regardless, once I removed all lingering traces of the read-only media repo, I was finally able to use cockpit again, and pkcon update or pkcon refresh without any drama.

Sorry for the necro-post, but wanted to help any onlookers from the future.