Menu

Webmin problem with dpkg and update packages

Webmin
Varden
2023-01-11
2023-01-12
  • Varden

    Varden - 2023-01-11

    Hello everyone,

    My problem is that I cant update the packages in my VPS.

    When I try to update any of the packages, it appears (example):

    Now updating git ..
    Installing package(s) with command apt-get -y install git ..
    Setting up webmin (1.995) ...
    .. install failed!
    
    No packages were installed. Check the messages above for the cause of the error.
    

    And also, I need to restart the server.

    System information of my VPS:
    Webmin version: 1.995
    Virtualmin version: 7.1-1
    Operating system: Ubuntu Linux 20.04.4
    Kernel and CPU: Linux 3.10.0-1160.53.1.vz7.185.3 on x86_64

    When I try in the command shell to install or upgrade a package ( example: apt-get install git), appears:

    E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
    

    And finally, when I write 'dpkg --configure -a', the server needs to be restarted.

    I'm getting out of ideas about how to solve it. Thank you in advance for your help!!

     

    Last edit: Varden 2023-01-11
    • Ilia

      Ilia - 2023-01-11

      Hello,

      As you're running Virtualmin you should SSH to your server, download latest virtualmin-install.sh (www.virtualmin.com) script from our official website and run it with --setup param to fix repositories, i.e.:

      sh virtualmin-install.sh --setup
      

      Then run:

      dpkg --configure -a
      

      and then run:

      apt-get upgrade -y
      
       
      • Varden

        Varden - 2023-01-12

        Hello Ilia,

        Solved! Thank you very much!

         

Log in to post a comment.

MongoDB Logo MongoDB