Menu

#5629 webmin cache problem

2.101
open
nobody
None
5
2023-08-11
2023-08-07
M.T.R
No

hi,
we always verify webmin version with:
'apt-cache policy webmin' command.
we compare then 'installed:' and 'candidate:' in the answer.
so we find out if webmin is uptodate.

but now we get info on webmin interface, that a new version is available: '2.100-2'.
but when we verify with our procedure above we get as answer:
'Installed: 2.100'
'Candidate: 2.100'
this means, webmin should be uptodate.

what has changed, what are we doing wrong?

thanks for advice
cheers mike

Discussion

  • Jamie Cameron

    Jamie Cameron - 2023-08-08

    Can you attach a screenshot of the new version message you're seeing in Webmin?

     
  • M.T.R

    M.T.R - 2023-08-08

    Hi Jamie,
    here it is.
    Cheers mike

     
    • Ilia

      Ilia - 2023-08-08

      Do you think that version 2.100-2 is higher that 2.101?

      Webmin 2.101 is the latest version and the one that should be installed on top of 2.100-2.

       
  • M.T.R

    M.T.R - 2023-08-08

    i don't know.

    atleast i'm prompted to upgrade to 2.100-2 in webmin.

    'apt-cache policy webmin' tells me:
    'Installed: 2.100'
    'Candidate: 2.100'
    this means, webmin should be uptodate.

    this is in fact my question.

    cheers mike

     
    • Ilia

      Ilia - 2023-08-08

      atleast i'm prompted to upgrade to 2.100-2 in webmin.

      Based on your screenshot you are prompted to upgrade to Webmin 2.101 - what are you talking about?

      'pt-cache policy webmin' tells me:

      You can run apt-get update to update the package lists with the new cache policy.

       
  • M.T.R

    M.T.R - 2023-08-08

    Sorry it was a mistake.
    I am prompted to upgrade to Webmin 2.101.

    'apt-cache policy webmin'.
    tells me:
    'Installed: 2.100'
    'Candidate: 2.100'

    So the information I get from this is WRONG !
    Is it too complicate to understand this?

    Cheers mike

     
    • M.T.R

      M.T.R - 2023-08-09

      illia,
      'apt-get update' tells me that I already have installed newest available version.

      This is normal cause 'apt-cache policy webmin'' aleady told me this (see above)

      Hope you understand now.
      Cheers mike

       
    • Ilia

      Ilia - 2023-08-09

      So the information I get from this is WRONG !
      Is it too complicate to understand this?

      Yes, it is hard to understand, without knowing what is going on.

      What Webmin repos you have enabled? E.g.:

      grep -Rsi webmin.com /etc/apt
      
       
      • M.T.R

        M.T.R - 2023-08-09

        illia,
        i try always the best to make you understand.
        The result you want is:
        /etc/apt/sources.list.d/webmin.list:deb https://download.webmin.com/download/newkey/repository stable contrib

        As far as I see the problem comes from
        APT is not updated to the same information as on webmin interface.

        Hope this helps.

        cheers mike

         
        • Ilia

          Ilia - 2023-08-09

          First of all make sure that the file /etc/apt/sources.list.d/webmin.list actually contains:

          deb [signed-by=/usr/share/keyrings/debian-webmin-developers.gpg] https://download.webmin.com/download/newkey/repository stable contrib
          

          Then run apt-get clean && apt-get update, and then show the full output of apt-cache policy webmin command.

          FYI, I get the following:

          root@debian12-pro:/usr/share/webmin# apt-cache policy webmin
          webmin:
            Installed: 2.101
            Candidate: 2.101
            Version table:
           *** 2.101 500
                  500 https://download.webmin.com/download/newkey/repository stable/contrib amd64 Packages
                  100 /var/lib/dpkg/status
               2.021 500
                  500 https://software.virtualmin.com/vm/7/pro/apt virtualmin/main amd64 Packages
                  500 https://software.virtualmin.com/vm/7/pro/apt virtualmin/main all Packages
               2.013 500
                  500 https://software.virtualmin.com/vm/7/pro/apt virtualmin/main amd64 Packages
                  500 https://software.virtualmin.com/vm/7/pro/apt virtualmin/main all Packages
               2.011 500
                  500 https://software.virtualmin.com/vm/7/pro/apt virtualmin/main amd64 Packages
                  500 https://software.virtualmin.com/vm/7/pro/apt virtualmin/main all Packages
               2.001 500
                  500 https://software.virtualmin.com/vm/7/pro/apt virtualmin/main amd64 Packages
                  500 https://software.virtualmin.com/vm/7/pro/apt virtualmin/main all Packages
               1.999-2 500
                  500 https://software.virtualmin.com/vm/7/pro/apt virtualmin/main amd64 Packages
                  500 https://software.virtualmin.com/vm/7/pro/apt virtualmin/main all Packages
               1.994 500
                  500 https://software.virtualmin.com/vm/7/pro/apt virtualmin/main amd64 Packages
                  500 https://software.virtualmin.com/vm/7/pro/apt virtualmin/main all Packages
          
           
          • M.T.R

            M.T.R - 2023-08-09

            illia,
            i get error messages using apt-get clean && apt-get update

            Ign:4 https://download.webmin.com/download/newkey/repository stable InRelease
            Get:5 https://download.webmin.com/download/newkey/repository stable Release [16.0 kB]
            Get:6 https://download.webmin.com/download/newkey/repository stable Release.gpg [819 B]
            Ign:6 https://download.webmin.com/download/newkey/repository stable Release.gpg
            Reading package lists... Done
            W: GPG error: https://download.webmin.com/download/newkey/repository stable Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 2D223B918916F2A2
            E: The repository 'https://download.webmin.com/download/newkey/repository stable Release' is not signed.
            N: Updating from such a repository can't be done securely, and is therefore disabled by default.
            N: See apt-secure(8) manpage for repository creation and user configuration details.

             
            • Ilia

              Ilia - 2023-08-09

              i get error messages using apt-get clean && apt-get update

              Try running the following command to setup Webmin repos correctly:

              wget https://raw.githubusercontent.com/webmin/webmin/master/setup-repos.sh
              sh setup-repos.sh
              
               
              • M.T.R

                M.T.R - 2023-08-09

                OK, done,
                now it works:

                apt-cache policy webmin
                webmin:
                Installed: 2.100
                Candidate: 2.101
                Version table:
                2.101 500
                500 https://download.webmin.com/download/newkey/repository stable/contrib amd64 Packages
                *** 2.100 100

                So it was just the wrong configured repository.

                BTW
                This was not configured by me,
                after the last update before, i was prompted by webmin to update the repository.
                I did this just by clicking on OK.

                Anyway, thanks lot illia.
                cheers mike

                 
                • Ilia

                  Ilia - 2023-08-09

                  This was not configured by me,
                  after the last update before, i was prompted by webmin to update the repository.
                  I did this just by clicking on OK.

                  Could you check backups and share how you webmin.list repo file looked like before upgrading to Webmin 2.100?

                   
                  • M.T.R

                    M.T.R - 2023-08-09

                    i think it was this one:
                    deb http://download.webmin.com/download/repository sarge contrib

                    Cheers mike

                     
                    • Ilia

                      Ilia - 2023-08-11

                      i think it was this one:
                      deb http://download.webmin.com/download/repository sarge contrib

                      Alright, we will always setup the new Debian format repo, i.e. containing the signing key.

                       
  • M.T.R

    M.T.R - 2023-08-09

    OK Illia,
    so this can be called resolved.
    Cheers mike

     
    👍
    1

    Last edit: M.T.R 2023-08-11

Log in to post a comment.

MongoDB Logo MongoDB