Unable to install rbenv in fedora 38 - kinoite - can't create transaction-lock - Read-only file system

At the moment I am trying to install the softwares related to Ruby on Rails development in my fedora 38 Kinoite with the help of this link. I am getting the following error. I have also tried as a root user still the same error.

Fedora 38 - x86_64 - Updates                                                  1.6 MB/s | 1.6 kB     00:00    
Importing GPG key 0xEB10B464:
 Userid     : "Fedora (38) <fedora-38-primary@fedoraproject.org>"
 Fingerprint: 6A51 BBAB BA3D 5467 B617 1221 809A 8D7C EB10 B464
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-38-x86_64
Is this ok [y/N]: Y
error: can't create transaction lock on /usr/share/rpm/.rpm.lock (Read-only file system)
Key import failed (code 2). Failing package is: autoconf-2.71-5.fc38.noarch
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-38-x86_64

The output of $ inxi -Fzxxx

$ inxi -Fzxxx
System:
  Kernel: 6.6.12-100.fc38.x86_64 arch: x86_64 bits: 64 compiler: gcc
    v: 2.39-16.fc38 clocksource: tsc Desktop: KDE Plasma v: 5.27.9 tk: Qt
    v: 5.15.11 wm: kwin_wayland vt: 2 dm: SDDM Distro: Fedora release 38
    (Thirty Eight)
Machine:
  Type: Laptop System: Hewlett-Packard product: HP Pavilion g6 Notebook PC
    v: 0792100000205610000610100 serial: <superuser required> Chassis: type: 10
    serial: <superuser required>
  Mobo: Hewlett-Packard model: 183E v: 56.32 serial: <superuser required>
    UEFI-[Legacy]: Insyde v: F.25 date: 05/29/2013
Battery:
  ID-1: BAT0 charge: 32.1 Wh (100.0%) condition: 32.1/32.1 Wh (100.0%)
    volts: 12.5 min: 10.8 model: Hewlett-Packard Primary type: Li-ion
    serial: N/A status: full
CPU:
  Info: dual core model: Intel Core i5-3210M bits: 64 type: MT MCP
    smt: enabled arch: Ivy Bridge rev: 9 cache: L1: 128 KiB L2: 512 KiB
    L3: 3 MiB
  Speed (MHz): avg: 2799 high: 3048 min/max: 1200/3100 cores: 1: 2356
    2: 2894 3: 3048 4: 2899 bogomips: 19956
  Flags: avx ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: Intel 3rd Gen Core processor Graphics vendor: Hewlett-Packard
    driver: i915 v: kernel arch: Gen-7 ports: active: LVDS-1
    empty: DP-1,HDMI-A-1,VGA-1 bus-ID: 00:02.0 chip-ID: 8086:0166
    class-ID: 0300
  Device-2: AMD Thames [Radeon HD 7500M/7600M Series]
    vendor: Hewlett-Packard driver: radeon v: kernel arch: TeraScale-2 pcie:
    speed: 2.5 GT/s lanes: 8 bus-ID: 01:00.0 chip-ID: 1002:6840 class-ID: 0300
    temp: 56.0 C
  Display: wayland server: X.org v: 1.20.14 with: Xwayland v: 22.1.9
    compositor: kwin_wayland driver: N/A display-ID: 0
  Monitor-1: LVDS-1 res: 1366x768 size: N/A modes: N/A
  API: EGL v: 1.5 hw: drv: intel crocus drv: amd r600 platforms: device: 0
    drv: r600 device: 1 drv: crocus device: 2 drv: swrast gbm: drv: r600
    surfaceless: drv: r600 wayland: drv: crocus x11: drv: crocus
  API: OpenGL v: 4.2 vendor: intel mesa v: 23.1.9 glx-v: 1.4 es-v: 3.0
    direct-render: yes renderer: Mesa Intel HD Graphics 4000 (IVB GT2)
    device-ID: 8086:0166 display-ID: :0.0
  API: Vulkan v: 1.3.243 layers: 1 surfaces: xcb,xlib,wayland device: 0
    type: integrated-gpu driver: mesa intel device-ID: 8086:0166 device: 1
    type: cpu driver: mesa llvmpipe device-ID: 10005:0000
Audio:
  Device-1: Intel 7 Series/C216 Family High Definition Audio
    vendor: Hewlett-Packard driver: snd_hda_intel v: kernel bus-ID: 00:1b.0
    chip-ID: 8086:1e20 class-ID: 0403
  API: ALSA v: k6.6.12-100.fc38.x86_64 status: kernel-api
  Server-1: PipeWire v: 1.0.1 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    4: pw-jack type: plugin
Network:
  Device-1: Qualcomm Atheros QCA9565 / AR9565 Wireless Network Adapter
    vendor: Dell driver: ath9k v: kernel pcie: speed: 2.5 GT/s lanes: 1
    bus-ID: 07:00.0 chip-ID: 168c:0036 class-ID: 0280
  IF: wlp7s0 state: up mac: <filter>
  Device-2: Realtek RTL810xE PCI Express Fast Ethernet
    vendor: Hewlett-Packard driver: r8169 v: kernel pcie: speed: 2.5 GT/s
    lanes: 1 port: 3000 bus-ID: 08:00.0 chip-ID: 10ec:8136 class-ID: 0200
  IF: eno1 state: down mac: <filter>
Bluetooth:
  Device-1: Qualcomm Atheros AR9462 Bluetooth driver: btusb v: 0.8 type: USB
    rev: 1.1 speed: 12 Mb/s lanes: 1 bus-ID: 4-1.3:6 chip-ID: 0cf3:0036
    class-ID: e001
  Report: btmgmt ID: hci0 rfk-id: 2 state: up address: <filter> bt-v: 4.1
    lmp-v: 7 class-ID: 7c010c
Drives:
  Local Storage: total: 465.76 GiB used: 18.63 GiB (4.0%)
  ID-1: /dev/sda vendor: Seagate model: ST500LM030-2E717D size: 465.76 GiB
    speed: 6.0 Gb/s tech: HDD rpm: 5400 serial: <filter> fw-rev: SDM1
    scheme: MBR
Partition:
  ID-1: /boot size: 973.4 MiB used: 208.3 MiB (21.4%) fs: ext4 dev: /dev/sda1
  ID-2: /var size: 171.79 GiB used: 18.43 GiB (10.7%) fs: btrfs
    dev: /dev/sda2
Swap:
  ID-1: swap-1 type: zram size: 8 GiB used: 0 KiB (0.0%) priority: 100
    dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 74.0 C mobo: N/A gpu: radeon temp: 56.5 C
  Fan Speeds (rpm): N/A
Info:
  Processes: 260 Uptime: 1h 42m wakeups: 2 Memory: total: 12 GiB
  available: 11.58 GiB used: 3.02 GiB (26.1%) Init: systemd v: 253
  target: graphical (5) default: graphical Compilers: gcc: 13.2.1 Packages:
  pm: rpm pkgs: N/A note: see --rpm pm: flatpak pkgs: 17 Shell: Bash v: 5.2.21
  running-in: konsole inxi: 3.3.31

The full output of software installation is:

$ sudo dnf install git-core zlib zlib-devel gcc-c++ patch readline-devel libyaml-devel libffi-devel openssl-devel make bzip2 autoconf automake libtool bison libcurl-devel sqlite-devel rbenv ruby-build

Fedora 38 - x86_64 - Updates                                                  9.2 kB/s | 5.4 kB     00:00    
Fedora Modular 38 - x86_64 - Updates                                           14 kB/s | 5.2 kB     00:00    
Fedora 38 - x86_64 - Updates Archive                                          2.4 kB/s | 3.4 kB     00:01    
Package git-core-2.43.0-1.fc38.x86_64 is already installed.
Package zlib-1.2.13-3.fc38.x86_64 is already installed.
Package make-1:4.4.1-1.fc38.x86_64 is already installed.
Package bzip2-1.0.8-13.fc38.x86_64 is already installed.
Dependencies resolved.
==============================================================================================================
 Package                            Architecture    Version                            Repository        Size
==============================================================================================================
Installing:
 autoconf                           noarch          2.71-5.fc38                        fedora           733 k
 automake                           noarch          1.16.5-11.fc38                     fedora           697 k
 bison                              x86_64          3.8.2-4.fc38                       fedora           1.0 M
 gcc-c++                            x86_64          13.2.1-4.fc38                      updates           13 M
 libcurl-devel                      x86_64          8.0.1-6.fc38                       updates          986 k
 libffi-devel                       x86_64          3.4.4-2.fc38                       fedora            29 k
 libtool                            x86_64          2.4.7-6.fc38                       fedora           601 k
 libyaml-devel                      x86_64          0.2.5-9.fc38                       fedora           168 k
 openssl-devel                      x86_64          1:3.0.9-2.fc38                     updates          2.6 M
 patch                              x86_64          2.7.6-19.fc38                      fedora           126 k
 rbenv                              x86_64          1.2.0-2.fc38                       fedora            40 k
 readline-devel                     x86_64          8.2-3.fc38                         fedora           207 k
 ruby-build                         x86_64          20221004-2.fc38                    fedora           222 k
 sqlite-devel                       x86_64          3.40.1-2.fc38                      fedora           144 k
 zlib-devel                         x86_64          1.2.13-3.fc38                      fedora            45 k
Installing dependencies:
 clang-libs                         x86_64          16.0.6-3.fc38                      updates           22 M
 clang-resource-filesystem          x86_64          16.0.6-3.fc38                      updates           12 k
 ed                                 x86_64          1.19-2.fc38                        fedora            78 k
 gdbm                               x86_64          1:1.23-3.fc38                      fedora           155 k
 info                               x86_64          7.0.2-2.fc38                       fedora           181 k
 libedit-devel                      x86_64          3.1-45.20221030cvs.fc38            fedora            41 k
 libstdc++-devel                    x86_64          13.2.1-4.fc38                      updates          2.6 M
 llvm                               x86_64          16.0.6-3.fc38                      updates           24 M
 llvm-static                        x86_64          16.0.6-3.fc38                      updates           34 M
 llvm-test                          x86_64          16.0.6-3.fc38                      updates          622 k
 m4                                 x86_64          1.4.19-5.fc38                      fedora           303 k
 ncurses-c++-libs                   x86_64          6.4-3.20230114.fc38                fedora            37 k
 ncurses-devel                      x86_64          6.4-3.20230114.fc38                fedora           549 k
 perl-File-Compare                  noarch          1.100.700-498.fc38                 updates           14 k
 perl-Thread-Queue                  noarch          3.14-490.fc38                      fedora            21 k
 perl-threads                       x86_64          1:2.27-490.fc38                    fedora            57 k
 perl-threads-shared                x86_64          1.64-490.fc38                      fedora            44 k
 ruby-default-gems                  noarch          3.2.2-180.fc38                     updates           43 k
 ruby-libs                          x86_64          3.2.2-180.fc38                     updates          4.0 M
 rubygem-io-console                 x86_64          0.6.0-180.fc38                     updates           25 k
 rubygem-json                       x86_64          2.6.3-202.fc38                     fedora            69 k
 rubygem-psych                      x86_64          5.0.1-180.fc38                     updates           59 k
 rubygems                           noarch          3.4.10-180.fc38                    updates          288 k
 rubypick                           noarch          1.1.1-18.fc38                      fedora           9.9 k
 rust-std-static                    x86_64          1.75.0-1.fc38                      updates           29 M
Installing weak dependencies:
 clang                              x86_64          16.0.6-3.fc38                      updates           77 k
 compiler-rt                        x86_64          16.0.6-3.fc38                      updates          2.1 M
 gdbm-devel                         x86_64          1:1.23-3.fc38                      fedora            80 k
 libatomic                          x86_64          13.2.1-4.fc38                      updates           36 k
 libomp                             x86_64          16.0.6-1.fc38                      updates          663 k
 libomp-devel                       x86_64          16.0.6-1.fc38                      updates          390 k
 llvm-devel                         x86_64          16.0.6-3.fc38                      updates          3.8 M
 perl-FindBin                       noarch          1.53-498.fc38                      updates           15 k
 ruby                               x86_64          3.2.2-180.fc38                     updates           42 k
 ruby-build-rbenv                   x86_64          20221004-2.fc38                    fedora            10 k
 rubygem-bigdecimal                 x86_64          3.1.3-180.fc38                     updates           69 k
 rubygem-bundler                    noarch          2.4.10-180.fc38                    updates          434 k
 rubygem-rake                       noarch          13.0.6-200.fc38.3                  fedora            60 k
 rubygem-rdoc                       noarch          6.5.0-180.fc38                     updates          488 k
 rust                               x86_64          1.75.0-1.fc38                      updates           25 M

Transaction Summary
==============================================================================================================
Install  55 Packages

Total size: 172 M
Installed size: 824 M
Is this ok [y/N]: Y
Downloading Packages:
[SKIPPED] autoconf-2.71-5.fc38.noarch.rpm: Already downloaded                                                
[SKIPPED] automake-1.16.5-11.fc38.noarch.rpm: Already downloaded                                             
[SKIPPED] bison-3.8.2-4.fc38.x86_64.rpm: Already downloaded                                                  
[SKIPPED] ed-1.19-2.fc38.x86_64.rpm: Already downloaded                                                      
[SKIPPED] gdbm-1.23-3.fc38.x86_64.rpm: Already downloaded                                                    
[SKIPPED] gdbm-devel-1.23-3.fc38.x86_64.rpm: Already downloaded                                              
[SKIPPED] info-7.0.2-2.fc38.x86_64.rpm: Already downloaded                                                   
[SKIPPED] libedit-devel-3.1-45.20221030cvs.fc38.x86_64.rpm: Already downloaded                               
[SKIPPED] libffi-devel-3.4.4-2.fc38.x86_64.rpm: Already downloaded                                           
[SKIPPED] libtool-2.4.7-6.fc38.x86_64.rpm: Already downloaded                                                
[SKIPPED] libyaml-devel-0.2.5-9.fc38.x86_64.rpm: Already downloaded                                          
[SKIPPED] m4-1.4.19-5.fc38.x86_64.rpm: Already downloaded                                                    
[SKIPPED] ncurses-c++-libs-6.4-3.20230114.fc38.x86_64.rpm: Already downloaded                                
[SKIPPED] ncurses-devel-6.4-3.20230114.fc38.x86_64.rpm: Already downloaded                                   
[SKIPPED] patch-2.7.6-19.fc38.x86_64.rpm: Already downloaded                                                 
[SKIPPED] perl-Thread-Queue-3.14-490.fc38.noarch.rpm: Already downloaded                                     
[SKIPPED] perl-threads-2.27-490.fc38.x86_64.rpm: Already downloaded                                          
[SKIPPED] perl-threads-shared-1.64-490.fc38.x86_64.rpm: Already downloaded                                   
[SKIPPED] rbenv-1.2.0-2.fc38.x86_64.rpm: Already downloaded                                                  
[SKIPPED] readline-devel-8.2-3.fc38.x86_64.rpm: Already downloaded                                           
[SKIPPED] ruby-build-20221004-2.fc38.x86_64.rpm: Already downloaded                                          
[SKIPPED] ruby-build-rbenv-20221004-2.fc38.x86_64.rpm: Already downloaded                                    
[SKIPPED] rubygem-json-2.6.3-202.fc38.x86_64.rpm: Already downloaded                                         
[SKIPPED] rubygem-rake-13.0.6-200.fc38.3.noarch.rpm: Already downloaded                                      
[SKIPPED] rubypick-1.1.1-18.fc38.noarch.rpm: Already downloaded                                              
[SKIPPED] sqlite-devel-3.40.1-2.fc38.x86_64.rpm: Already downloaded                                          
[SKIPPED] zlib-devel-1.2.13-3.fc38.x86_64.rpm: Already downloaded                                            
[SKIPPED] clang-16.0.6-3.fc38.x86_64.rpm: Already downloaded                                                 
[SKIPPED] clang-libs-16.0.6-3.fc38.x86_64.rpm: Already downloaded                                            
[SKIPPED] clang-resource-filesystem-16.0.6-3.fc38.x86_64.rpm: Already downloaded                             
[SKIPPED] compiler-rt-16.0.6-3.fc38.x86_64.rpm: Already downloaded                                           
[SKIPPED] gcc-c++-13.2.1-4.fc38.x86_64.rpm: Already downloaded                                               
[SKIPPED] libatomic-13.2.1-4.fc38.x86_64.rpm: Already downloaded                                             
[SKIPPED] libcurl-devel-8.0.1-6.fc38.x86_64.rpm: Already downloaded                                          
[SKIPPED] libomp-16.0.6-1.fc38.x86_64.rpm: Already downloaded                                                
[SKIPPED] libomp-devel-16.0.6-1.fc38.x86_64.rpm: Already downloaded                                          
[SKIPPED] libstdc++-devel-13.2.1-4.fc38.x86_64.rpm: Already downloaded                                       
[SKIPPED] llvm-16.0.6-3.fc38.x86_64.rpm: Already downloaded                                                  
[SKIPPED] llvm-devel-16.0.6-3.fc38.x86_64.rpm: Already downloaded                                            
[SKIPPED] llvm-static-16.0.6-3.fc38.x86_64.rpm: Already downloaded                                           
[SKIPPED] llvm-test-16.0.6-3.fc38.x86_64.rpm: Already downloaded                                             
[SKIPPED] openssl-devel-3.0.9-2.fc38.x86_64.rpm: Already downloaded                                          
[SKIPPED] perl-File-Compare-1.100.700-498.fc38.noarch.rpm: Already downloaded                                
[SKIPPED] perl-FindBin-1.53-498.fc38.noarch.rpm: Already downloaded                                          
[SKIPPED] ruby-3.2.2-180.fc38.x86_64.rpm: Already downloaded                                                 
[SKIPPED] ruby-default-gems-3.2.2-180.fc38.noarch.rpm: Already downloaded                                    
[SKIPPED] ruby-libs-3.2.2-180.fc38.x86_64.rpm: Already downloaded                                            
[SKIPPED] rubygem-bigdecimal-3.1.3-180.fc38.x86_64.rpm: Already downloaded                                   
[SKIPPED] rubygem-bundler-2.4.10-180.fc38.noarch.rpm: Already downloaded                                     
[SKIPPED] rubygem-io-console-0.6.0-180.fc38.x86_64.rpm: Already downloaded                                   
[SKIPPED] rubygem-psych-5.0.1-180.fc38.x86_64.rpm: Already downloaded                                        
[SKIPPED] rubygem-rdoc-6.5.0-180.fc38.noarch.rpm: Already downloaded                                         
[SKIPPED] rubygems-3.4.10-180.fc38.noarch.rpm: Already downloaded                                            
[SKIPPED] rust-1.75.0-1.fc38.x86_64.rpm: Already downloaded                                                  
[SKIPPED] rust-std-static-1.75.0-1.fc38.x86_64.rpm: Already downloaded                                       
Fedora 38 - x86_64                                                            1.6 MB/s | 1.6 kB     00:00    
Importing GPG key 0xEB10B464:
 Userid     : "Fedora (38) <fedora-38-primary@fedoraproject.org>"
 Fingerprint: 6A51 BBAB BA3D 5467 B617 1221 809A 8D7C EB10 B464
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-38-x86_64
Is this ok [y/N]: Y
error: can't create transaction lock on /usr/share/rpm/.rpm.lock (Read-only file system)
Fedora 38 - x86_64 - Updates                                                  1.6 MB/s | 1.6 kB     00:00    
Importing GPG key 0xEB10B464:
 Userid     : "Fedora (38) <fedora-38-primary@fedoraproject.org>"
 Fingerprint: 6A51 BBAB BA3D 5467 B617 1221 809A 8D7C EB10 B464
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-38-x86_64
Is this ok [y/N]: Y
error: can't create transaction lock on /usr/share/rpm/.rpm.lock (Read-only file system)
Key import failed (code 2). Failing package is: autoconf-2.71-5.fc38.noarch
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-38-x86_64
Public key for automake-1.16.5-11.fc38.noarch.rpm is not installed. Failing package is: automake-1.16.5-11.fc38.noarch
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-38-x86_64
Public key for bison-3.8.2-4.fc38.x86_64.rpm is not installed. Failing package is: bison-3.8.2-4.fc38.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-38-x86_64
Public key for ed-1.19-2.fc38.x86_64.rpm is not installed. Failing package is: ed-1.19-2.fc38.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-38-x86_64
Public key for gdbm-1.23-3.fc38.x86_64.rpm is not installed. Failing package is: gdbm-1:1.23-3.fc38.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-38-x86_64
Public key for gdbm-devel-1.23-3.fc38.x86_64.rpm is not installed. Failing package is: gdbm-devel-1:1.23-3.fc38.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-38-x86_64
Public key for info-7.0.2-2.fc38.x86_64.rpm is not installed. Failing package is: info-7.0.2-2.fc38.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-38-x86_64
Public key for libedit-devel-3.1-45.20221030cvs.fc38.x86_64.rpm is not installed. Failing package is: libedit-devel-3.1-45.20221030cvs.fc38.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-38-x86_64
Public key for libffi-devel-3.4.4-2.fc38.x86_64.rpm is not installed. Failing package is: libffi-devel-3.4.4-2.fc38.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-38-x86_64
Public key for libtool-2.4.7-6.fc38.x86_64.rpm is not installed. Failing package is: libtool-2.4.7-6.fc38.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-38-x86_64
Public key for libyaml-devel-0.2.5-9.fc38.x86_64.rpm is not installed. Failing package is: libyaml-devel-0.2.5-9.fc38.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-38-x86_64
Public key for m4-1.4.19-5.fc38.x86_64.rpm is not installed. Failing package is: m4-1.4.19-5.fc38.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-38-x86_64
Public key for ncurses-c++-libs-6.4-3.20230114.fc38.x86_64.rpm is not installed. Failing package is: ncurses-c++-libs-6.4-3.20230114.fc38.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-38-x86_64
Public key for ncurses-devel-6.4-3.20230114.fc38.x86_64.rpm is not installed. Failing package is: ncurses-devel-6.4-3.20230114.fc38.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-38-x86_64
Public key for patch-2.7.6-19.fc38.x86_64.rpm is not installed. Failing package is: patch-2.7.6-19.fc38.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-38-x86_64
Public key for perl-Thread-Queue-3.14-490.fc38.noarch.rpm is not installed. Failing package is: perl-Thread-Queue-3.14-490.fc38.noarch
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-38-x86_64
Public key for perl-threads-2.27-490.fc38.x86_64.rpm is not installed. Failing package is: perl-threads-1:2.27-490.fc38.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-38-x86_64
Public key for perl-threads-shared-1.64-490.fc38.x86_64.rpm is not installed. Failing package is: perl-threads-shared-1.64-490.fc38.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-38-x86_64
Public key for rbenv-1.2.0-2.fc38.x86_64.rpm is not installed. Failing package is: rbenv-1.2.0-2.fc38.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-38-x86_64
Public key for readline-devel-8.2-3.fc38.x86_64.rpm is not installed. Failing package is: readline-devel-8.2-3.fc38.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-38-x86_64
Public key for ruby-build-20221004-2.fc38.x86_64.rpm is not installed. Failing package is: ruby-build-20221004-2.fc38.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-38-x86_64
Public key for ruby-build-rbenv-20221004-2.fc38.x86_64.rpm is not installed. Failing package is: ruby-build-rbenv-20221004-2.fc38.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-38-x86_64
Public key for rubygem-json-2.6.3-202.fc38.x86_64.rpm is not installed. Failing package is: rubygem-json-2.6.3-202.fc38.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-38-x86_64
Public key for rubygem-rake-13.0.6-200.fc38.3.noarch.rpm is not installed. Failing package is: rubygem-rake-13.0.6-200.fc38.3.noarch
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-38-x86_64
Public key for rubypick-1.1.1-18.fc38.noarch.rpm is not installed. Failing package is: rubypick-1.1.1-18.fc38.noarch
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-38-x86_64
Public key for sqlite-devel-3.40.1-2.fc38.x86_64.rpm is not installed. Failing package is: sqlite-devel-3.40.1-2.fc38.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-38-x86_64
Public key for zlib-devel-1.2.13-3.fc38.x86_64.rpm is not installed. Failing package is: zlib-devel-1.2.13-3.fc38.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-38-x86_64
Key import failed (code 2). Failing package is: clang-16.0.6-3.fc38.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-38-x86_64
Public key for clang-libs-16.0.6-3.fc38.x86_64.rpm is not installed. Failing package is: clang-libs-16.0.6-3.fc38.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-38-x86_64
Public key for clang-resource-filesystem-16.0.6-3.fc38.x86_64.rpm is not installed. Failing package is: clang-resource-filesystem-16.0.6-3.fc38.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-38-x86_64
Public key for compiler-rt-16.0.6-3.fc38.x86_64.rpm is not installed. Failing package is: compiler-rt-16.0.6-3.fc38.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-38-x86_64
Public key for gcc-c++-13.2.1-4.fc38.x86_64.rpm is not installed. Failing package is: gcc-c++-13.2.1-4.fc38.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-38-x86_64
Public key for libatomic-13.2.1-4.fc38.x86_64.rpm is not installed. Failing package is: libatomic-13.2.1-4.fc38.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-38-x86_64
Public key for libcurl-devel-8.0.1-6.fc38.x86_64.rpm is not installed. Failing package is: libcurl-devel-8.0.1-6.fc38.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-38-x86_64
Public key for libomp-16.0.6-1.fc38.x86_64.rpm is not installed. Failing package is: libomp-16.0.6-1.fc38.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-38-x86_64
Public key for libomp-devel-16.0.6-1.fc38.x86_64.rpm is not installed. Failing package is: libomp-devel-16.0.6-1.fc38.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-38-x86_64
Public key for libstdc++-devel-13.2.1-4.fc38.x86_64.rpm is not installed. Failing package is: libstdc++-devel-13.2.1-4.fc38.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-38-x86_64
Public key for llvm-16.0.6-3.fc38.x86_64.rpm is not installed. Failing package is: llvm-16.0.6-3.fc38.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-38-x86_64
Public key for llvm-devel-16.0.6-3.fc38.x86_64.rpm is not installed. Failing package is: llvm-devel-16.0.6-3.fc38.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-38-x86_64
Public key for llvm-static-16.0.6-3.fc38.x86_64.rpm is not installed. Failing package is: llvm-static-16.0.6-3.fc38.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-38-x86_64
Public key for llvm-test-16.0.6-3.fc38.x86_64.rpm is not installed. Failing package is: llvm-test-16.0.6-3.fc38.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-38-x86_64
Public key for openssl-devel-3.0.9-2.fc38.x86_64.rpm is not installed. Failing package is: openssl-devel-1:3.0.9-2.fc38.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-38-x86_64
Public key for perl-File-Compare-1.100.700-498.fc38.noarch.rpm is not installed. Failing package is: perl-File-Compare-1.100.700-498.fc38.noarch
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-38-x86_64
Public key for perl-FindBin-1.53-498.fc38.noarch.rpm is not installed. Failing package is: perl-FindBin-1.53-498.fc38.noarch
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-38-x86_64
Public key for ruby-3.2.2-180.fc38.x86_64.rpm is not installed. Failing package is: ruby-3.2.2-180.fc38.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-38-x86_64
Public key for ruby-default-gems-3.2.2-180.fc38.noarch.rpm is not installed. Failing package is: ruby-default-gems-3.2.2-180.fc38.noarch
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-38-x86_64
Public key for ruby-libs-3.2.2-180.fc38.x86_64.rpm is not installed. Failing package is: ruby-libs-3.2.2-180.fc38.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-38-x86_64
Public key for rubygem-bigdecimal-3.1.3-180.fc38.x86_64.rpm is not installed. Failing package is: rubygem-bigdecimal-3.1.3-180.fc38.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-38-x86_64
Public key for rubygem-bundler-2.4.10-180.fc38.noarch.rpm is not installed. Failing package is: rubygem-bundler-2.4.10-180.fc38.noarch
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-38-x86_64
Public key for rubygem-io-console-0.6.0-180.fc38.x86_64.rpm is not installed. Failing package is: rubygem-io-console-0.6.0-180.fc38.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-38-x86_64
Public key for rubygem-psych-5.0.1-180.fc38.x86_64.rpm is not installed. Failing package is: rubygem-psych-5.0.1-180.fc38.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-38-x86_64
Public key for rubygem-rdoc-6.5.0-180.fc38.noarch.rpm is not installed. Failing package is: rubygem-rdoc-6.5.0-180.fc38.noarch
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-38-x86_64
Public key for rubygems-3.4.10-180.fc38.noarch.rpm is not installed. Failing package is: rubygems-3.4.10-180.fc38.noarch
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-38-x86_64
Public key for rust-1.75.0-1.fc38.x86_64.rpm is not installed. Failing package is: rust-1.75.0-1.fc38.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-38-x86_64
Public key for rust-std-static-1.75.0-1.fc38.x86_64.rpm is not installed. Failing package is: rust-std-static-1.75.0-1.fc38.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-38-x86_64
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

Does it mean we cannot install the Ruby on Rails, RBENV and other softwares related to Ruby on rails development on Fedora Kinoite edition?

Could someone please help me with this installation on Fedora Kinoite edition?

You are trying to use dnf on Kinoite which does not use dnf. It instead uses rpm-ostree.

Read up on how to manage your immutable OS and install packages there.

Please share the output of rpm-ostree status. I’m a bit perplexed as to how you managed to install dnf in the first place.

You need to install those packages inside a toolbox container:

@chrisawi
Yes initially the dnf command was not there, I am not sure how it got installed in to my system.

The output of rpm-ostree status is as follows

$ rpm-ostree status
State: idle
Deployments:
● fedora:fedora/38/x86_64/kinoite
                  Version: 38.20240127.0 (2024-01-27T01:31:55Z)
               BaseCommit: a40bf16e097fc83286c4c56b8bb3177b81fb362f4fd0992538ed976b2f8a5dcd
             GPGSignature: Valid signature by 6A51BBABBA3D5467B6171221809A8D7CEB10B464
          LayeredPackages: 'gcc-c++' autoconf automake bison ffmpeg-free gcc go inxi java-17-openjdk
                           libcurl-devel libffi-devel libtool libyaml-devel make nodejs openssl-devel patch
                           perl-FindBin rbenv readline-devel ruby-build ruby-devel sqlite-devel yum zlib-devel

  fedora:fedora/38/x86_64/kinoite
                  Version: 38.20240124.0 (2024-01-24T00:59:04Z)
               BaseCommit: 72a6c03524dfb8b3847e74dd1ac0683ab148fe99440ac01b175011da7943699d
             GPGSignature: Valid signature by 6A51BBABBA3D5467B6171221809A8D7CEB10B464
          LayeredPackages: 'gcc-c++' autoconf automake bison ffmpeg-free gcc go inxi java-17-openjdk
                           libcurl-devel libffi-devel libtool libyaml-devel make nodejs openssl-devel patch
                           perl-FindBin rbenv readline-devel ruby-build sqlite-devel yum zlib-devel

@computersavvy
Thanks for pointing out. I have replaced with the dnf command with the rpm-ostree command, it started to intall the required softwares. NOw I am able to run the rails application.

As @chrisawi said, you should really install all that into a toolbox container instead of layering on your host.