ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Solved Unable to run dnf upgrade on Vultr

    IT Discussion
    vultr dnf error
    5
    15
    829
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • scottalanmillerS
      scottalanmiller
      last edited by

      Deploying one now to see what happens. Fedora is a little heavy on RAM compared to Ubuntu or Debian traditionally. I wonder if they would run better out of the box?

      1 Reply Last reply Reply Quote 0
      • scottalanmillerS
        scottalanmiller
        last edited by

        Just built a Fedora 32 instance on the $3.50 VM. Did my standard setup of adding the swap file (Vultr doesn't do this for you but it's part of our stock build as you should always have one.) And testing the upgrade now. Only other change I made was disabling Cockpit.

        JaredBuschJ 1 Reply Last reply Reply Quote 0
        • JaredBuschJ
          JaredBusch @scottalanmiller
          last edited by

          @scottalanmiller said in Unable to run dnf upgrade on Vultr:

          Just built a Fedora 32 instance on the $3.50 VM. Did my standard setup of adding the swap file (Vultr doesn't do this for you but it's part of our stock build as you should always have one.) And testing the upgrade now. Only other change I made was disabling Cockpit.

          I used the Vultr image, not my own ISO.

          Did you start from there?

          scottalanmillerS 1 Reply Last reply Reply Quote 0
          • scottalanmillerS
            scottalanmiller @JaredBusch
            last edited by

            @JaredBusch said in Unable to run dnf upgrade on Vultr:

            @scottalanmiller said in Unable to run dnf upgrade on Vultr:

            Just built a Fedora 32 instance on the $3.50 VM. Did my standard setup of adding the swap file (Vultr doesn't do this for you but it's part of our stock build as you should always have one.) And testing the upgrade now. Only other change I made was disabling Cockpit.

            I used the Vultr image, not my own ISO.

            Did you start from there?

            I used the Vultr image too. And I just did a full update AND installed those packages, no errors.

            1 Reply Last reply Reply Quote 1
            • scottalanmillerS
              scottalanmiller
              last edited by

              Output:

              [root@tiny-test ~]# dnf install httpd php -y
              Last metadata expiration check: 0:09:20 ago on Wed 27 May 2020 10:42:03 PM UTC.
              Dependencies resolved.
              ================================================================================================
               Package                     Architecture    Version                     Repository        Size
              ================================================================================================
              Installing:
               httpd                       x86_64          2.4.43-1.fc32               fedora           1.4 M
               php                         x86_64          7.4.6-1.fc32                updates          2.3 M
              Installing dependencies:
               apr                         x86_64          1.7.0-3.fc32                fedora           122 k
               apr-util                    x86_64          1.6.1-12.fc32               fedora            97 k
               fedora-logos-httpd          noarch          30.0.2-4.fc32               fedora            16 k
               httpd-filesystem            noarch          2.4.43-1.fc32               fedora            14 k
               httpd-tools                 x86_64          2.4.43-1.fc32               fedora            83 k
               libsodium                   x86_64          1.0.18-3.fc32               fedora           169 k
               libxslt                     x86_64          1.1.34-1.fc32               fedora           246 k
               mod_http2                   x86_64          1.15.5-1.fc32               fedora           159 k
               nginx-filesystem            noarch          1:1.18.0-1.fc32             updates           10 k
               oniguruma                   x86_64          6.9.5-1.rev1.fc32           updates          220 k
               php-common                  x86_64          7.4.6-1.fc32                updates          792 k
              Installing weak dependencies:
               apr-util-bdb                x86_64          1.6.1-12.fc32               fedora            12 k
               apr-util-openssl            x86_64          1.6.1-12.fc32               fedora            15 k
               php-cli                     x86_64          7.4.6-1.fc32                updates          4.6 M
               php-fpm                     x86_64          7.4.6-1.fc32                updates          1.6 M
               php-json                    x86_64          7.4.6-1.fc32                updates           40 k
               php-mbstring                x86_64          7.4.6-1.fc32                updates          548 k
               php-opcache                 x86_64          7.4.6-1.fc32                updates          308 k
               php-pdo                     x86_64          7.4.6-1.fc32                updates          108 k
               php-sodium                  x86_64          7.4.6-1.fc32                updates           51 k
               php-xml                     x86_64          7.4.6-1.fc32                updates          179 k
              
              Transaction Summary
              ================================================================================================
              Install  23 Packages
              
              Total download size: 13 M
              Installed size: 67 M
              Downloading Packages:
              (1/23): nginx-filesystem-1.18.0-1.fc32.noarch.rpm               1.9 MB/s |  10 kB     00:00    
              (2/23): oniguruma-6.9.5-1.rev1.fc32.x86_64.rpm                   15 MB/s | 220 kB     00:00    
              (3/23): php-common-7.4.6-1.fc32.x86_64.rpm                       25 MB/s | 792 kB     00:00    
              (4/23): php-7.4.6-1.fc32.x86_64.rpm                              24 MB/s | 2.3 MB     00:00    
              (5/23): php-json-7.4.6-1.fc32.x86_64.rpm                         16 MB/s |  40 kB     00:00    
              (6/23): php-fpm-7.4.6-1.fc32.x86_64.rpm                          22 MB/s | 1.6 MB     00:00    
              (7/23): php-mbstring-7.4.6-1.fc32.x86_64.rpm                     21 MB/s | 548 kB     00:00    
              (8/23): php-pdo-7.4.6-1.fc32.x86_64.rpm                          27 MB/s | 108 kB     00:00    
              (9/23): php-sodium-7.4.6-1.fc32.x86_64.rpm                       21 MB/s |  51 kB     00:00    
              (10/23): php-opcache-7.4.6-1.fc32.x86_64.rpm                     19 MB/s | 308 kB     00:00    
              (11/23): php-xml-7.4.6-1.fc32.x86_64.rpm                         19 MB/s | 179 kB     00:00    
              (12/23): apr-1.7.0-3.fc32.x86_64.rpm                             17 MB/s | 122 kB     00:00    
              (13/23): apr-util-bdb-1.6.1-12.fc32.x86_64.rpm                   11 MB/s |  12 kB     00:00    
              (14/23): apr-util-1.6.1-12.fc32.x86_64.rpm                       15 MB/s |  97 kB     00:00    
              (15/23): apr-util-openssl-1.6.1-12.fc32.x86_64.rpm              5.3 MB/s |  15 kB     00:00    
              (16/23): fedora-logos-httpd-30.0.2-4.fc32.noarch.rpm            6.7 MB/s |  16 kB     00:00    
              (17/23): httpd-filesystem-2.4.43-1.fc32.noarch.rpm              6.7 MB/s |  14 kB     00:00    
              (18/23): httpd-tools-2.4.43-1.fc32.x86_64.rpm                    13 MB/s |  83 kB     00:00    
              (19/23): php-cli-7.4.6-1.fc32.x86_64.rpm                         23 MB/s | 4.6 MB     00:00    
              (20/23): libsodium-1.0.18-3.fc32.x86_64.rpm                     3.4 MB/s | 169 kB     00:00    
              (21/23): libxslt-1.1.34-1.fc32.x86_64.rpm                        24 MB/s | 246 kB     00:00    
              (22/23): httpd-2.4.43-1.fc32.x86_64.rpm                          18 MB/s | 1.4 MB     00:00    
              (23/23): mod_http2-1.15.5-1.fc32.x86_64.rpm                      10 MB/s | 159 kB     00:00    
              ------------------------------------------------------------------------------------------------
              Total                                                            18 MB/s |  13 MB     00:00     
              Running transaction check
              Transaction check succeeded.
              Running transaction test
              Transaction test succeeded.
              Running transaction
                Preparing        :                                                                        1/1 
                Installing       : php-common-7.4.6-1.fc32.x86_64                                        1/23 
                Running scriptlet: httpd-filesystem-2.4.43-1.fc32.noarch                                 2/23 
                Installing       : httpd-filesystem-2.4.43-1.fc32.noarch                                 2/23 
                Installing       : apr-1.7.0-3.fc32.x86_64                                               3/23 
                Installing       : apr-util-bdb-1.6.1-12.fc32.x86_64                                     4/23 
                Installing       : apr-util-openssl-1.6.1-12.fc32.x86_64                                 5/23 
                Installing       : apr-util-1.6.1-12.fc32.x86_64                                         6/23 
                Installing       : httpd-tools-2.4.43-1.fc32.x86_64                                      7/23 
                Installing       : php-cli-7.4.6-1.fc32.x86_64                                           8/23 
                Installing       : php-json-7.4.6-1.fc32.x86_64                                          9/23 
                Installing       : php-opcache-7.4.6-1.fc32.x86_64                                      10/23 
                Installing       : php-pdo-7.4.6-1.fc32.x86_64                                          11/23 
                Installing       : libxslt-1.1.34-1.fc32.x86_64                                         12/23 
                Installing       : php-xml-7.4.6-1.fc32.x86_64                                          13/23 
                Installing       : libsodium-1.0.18-3.fc32.x86_64                                       14/23 
                Installing       : php-sodium-7.4.6-1.fc32.x86_64                                       15/23 
                Installing       : fedora-logos-httpd-30.0.2-4.fc32.noarch                              16/23 
                Installing       : mod_http2-1.15.5-1.fc32.x86_64                                       17/23 
                Installing       : httpd-2.4.43-1.fc32.x86_64                                           18/23 
                Running scriptlet: httpd-2.4.43-1.fc32.x86_64                                           18/23 
                Installing       : oniguruma-6.9.5-1.rev1.fc32.x86_64                                   19/23 
                Installing       : php-mbstring-7.4.6-1.fc32.x86_64                                     20/23 
                Running scriptlet: nginx-filesystem-1:1.18.0-1.fc32.noarch                              21/23 
                Installing       : nginx-filesystem-1:1.18.0-1.fc32.noarch                              21/23 
                Installing       : php-fpm-7.4.6-1.fc32.x86_64                                          22/23 
                Running scriptlet: php-fpm-7.4.6-1.fc32.x86_64                                          22/23 
                Installing       : php-7.4.6-1.fc32.x86_64                                              23/23 
                Running scriptlet: httpd-2.4.43-1.fc32.x86_64                                           23/23 
                Running scriptlet: php-7.4.6-1.fc32.x86_64                                              23/23 
                Verifying        : nginx-filesystem-1:1.18.0-1.fc32.noarch                               1/23 
                Verifying        : oniguruma-6.9.5-1.rev1.fc32.x86_64                                    2/23 
                Verifying        : php-7.4.6-1.fc32.x86_64                                               3/23 
                Verifying        : php-cli-7.4.6-1.fc32.x86_64                                           4/23 
                Verifying        : php-common-7.4.6-1.fc32.x86_64                                        5/23 
                Verifying        : php-fpm-7.4.6-1.fc32.x86_64                                           6/23 
                Verifying        : php-json-7.4.6-1.fc32.x86_64                                          7/23 
                Verifying        : php-mbstring-7.4.6-1.fc32.x86_64                                      8/23 
                Verifying        : php-opcache-7.4.6-1.fc32.x86_64                                       9/23 
                Verifying        : php-pdo-7.4.6-1.fc32.x86_64                                          10/23 
                Verifying        : php-sodium-7.4.6-1.fc32.x86_64                                       11/23 
                Verifying        : php-xml-7.4.6-1.fc32.x86_64                                          12/23 
                Verifying        : apr-1.7.0-3.fc32.x86_64                                              13/23 
                Verifying        : apr-util-1.6.1-12.fc32.x86_64                                        14/23 
                Verifying        : apr-util-bdb-1.6.1-12.fc32.x86_64                                    15/23 
                Verifying        : apr-util-openssl-1.6.1-12.fc32.x86_64                                16/23 
                Verifying        : fedora-logos-httpd-30.0.2-4.fc32.noarch                              17/23 
                Verifying        : httpd-2.4.43-1.fc32.x86_64                                           18/23 
                Verifying        : httpd-filesystem-2.4.43-1.fc32.noarch                                19/23 
                Verifying        : httpd-tools-2.4.43-1.fc32.x86_64                                     20/23 
                Verifying        : libsodium-1.0.18-3.fc32.x86_64                                       21/23 
                Verifying        : libxslt-1.1.34-1.fc32.x86_64                                         22/23 
                Verifying        : mod_http2-1.15.5-1.fc32.x86_64                                       23/23 
              
              Installed:
                apr-1.7.0-3.fc32.x86_64                        apr-util-1.6.1-12.fc32.x86_64                 
                apr-util-bdb-1.6.1-12.fc32.x86_64              apr-util-openssl-1.6.1-12.fc32.x86_64         
                fedora-logos-httpd-30.0.2-4.fc32.noarch        httpd-2.4.43-1.fc32.x86_64                    
                httpd-filesystem-2.4.43-1.fc32.noarch          httpd-tools-2.4.43-1.fc32.x86_64              
                libsodium-1.0.18-3.fc32.x86_64                 libxslt-1.1.34-1.fc32.x86_64                  
                mod_http2-1.15.5-1.fc32.x86_64                 nginx-filesystem-1:1.18.0-1.fc32.noarch       
                oniguruma-6.9.5-1.rev1.fc32.x86_64             php-7.4.6-1.fc32.x86_64                       
                php-cli-7.4.6-1.fc32.x86_64                    php-common-7.4.6-1.fc32.x86_64                
                php-fpm-7.4.6-1.fc32.x86_64                    php-json-7.4.6-1.fc32.x86_64                  
                php-mbstring-7.4.6-1.fc32.x86_64               php-opcache-7.4.6-1.fc32.x86_64               
                php-pdo-7.4.6-1.fc32.x86_64                    php-sodium-7.4.6-1.fc32.x86_64                
                php-xml-7.4.6-1.fc32.x86_64                   
              
              Complete!
              
              
              1 Reply Last reply Reply Quote 1
              • JaredBuschJ
                JaredBusch
                last edited by

                What do you do for a swap file? I almost never use the prebuilt images. This was my first test of this.

                scottalanmillerS 1 Reply Last reply Reply Quote 0
                • scottalanmillerS
                  scottalanmiller @JaredBusch
                  last edited by

                  @JaredBusch said in Unable to run dnf upgrade on Vultr:

                  What do you do for a swap file? I almost never use the prebuilt images. This was my first test of this.

                  I use the command from here. 1GB in this particular case, 2GB normally.

                  https://mangolassi.it/topic/16961/simple-linux-swap-file-creation/

                  black3dynamiteB 1 Reply Last reply Reply Quote 1
                  • black3dynamiteB
                    black3dynamite @scottalanmiller
                    last edited by

                    @scottalanmiller said in Unable to run dnf upgrade on Vultr:

                    @JaredBusch said in Unable to run dnf upgrade on Vultr:

                    What do you do for a swap file? I almost never use the prebuilt images. This was my first test of this.

                    I use the command from here. 1GB in this particular case, 2GB normally.

                    https://mangolassi.it/topic/16961/simple-linux-swap-file-creation/

                    Although it might not be as simple as using fallocate but I preferred doing it this way every time I need a swap file.

                    sudo dd if=/dev/zero of=/swapfile count=4096 bs=1MiB
                    sudo chmod 600 /swapfile
                    sudo mkswap /swapfile
                    sudo swapon /swapfile
                    echo '/swapfile swap swap defaults 0 0' | sudo tee --append /etc/fstab > /dev/null
                    sudo systemctl daemon-reload
                    
                    jmooreJ 1 Reply Last reply Reply Quote 0
                    • ObsolesceO
                      Obsolesce @JaredBusch
                      last edited by Obsolesce

                      This post is deleted!
                      1 Reply Last reply Reply Quote 0
                      • jmooreJ
                        jmoore @black3dynamite
                        last edited by

                        @black3dynamite the "dd" command is so great and flexible. It can do so much.

                        1 Reply Last reply Reply Quote 1
                        • 1 / 1
                        • First post
                          Last post