Ubuntu is not updating

Discussion in 'Installation/Configuration' started by Frans Luteijn, Sep 5, 2023.

  1. Frans Luteijn

    Frans Luteijn New Member

    From time to time I see that the "apt-get update" is hanging, which prevents the system from updating his package list. It also prevents an upgrade-script from running properly. in the process-list I see the following:
    Code:
    root      899208    1204  0 Sep04 ?        00:00:00 /usr/sbin/CRON -f -P
    root      899212  899208  0 Sep04 ?        00:00:00 /bin/sh -c /usr/local/ispconfig/server/cron.sh 2>&1 | while read line; do echo `/bin/date` "$line" >> /var/log/ispconfig/cron.log; done
    root      899217  899212  0 Sep04 ?        00:00:00 /bin/bash /usr/local/ispconfig/server/cron.sh
    root      899218  899212  0 Sep04 ?        00:00:00 /bin/sh -c /usr/local/ispconfig/server/cron.sh 2>&1 | while read line; do echo `/bin/date` "$line" >> /var/log/ispconfig/cron.log; done
    root      899232  899217  0 Sep04 ?        00:00:00 /bin/php -q -d disable_classes= -d disable_functions= -d open_basedir= /usr/local/ispconfig/server/cron.php
    root      899370  899232  0 Sep04 ?        00:00:00 sh -c while fuser /var/lib/apt/lists/lock >/dev/null 2>&1 ; do sleep 2; done; apt-get update
    root      899372  899370  0 Sep04 ?        00:00:14 apt-get update
    _apt      899385  899372  0 Sep04 ?        00:00:00 /usr/lib/apt/methods/https
    _apt      899386  899372  0 Sep04 ?        00:00:00 /usr/lib/apt/methods/http
    _apt      899527  899372  0 Sep04 ?        00:00:00 /usr/lib/apt/methods/gpgv
    
    This has happened a few times before and it can be solved by killing one of the processes owned by UID "_apt". It has happened on several of our systems and I can't find a cause for it.

    After the process has been killed, the job continues running, like making back-ups of the websites or running AWStats.

    I've got the latest version of ISPConfig installed and the OS is Ubuntu 22.04 LTS with unattended updates disabled.

    Is there a way to prevent this job/process from hanging? If you need any additional information, please let me know.
     
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

  3. Frans Luteijn

    Frans Luteijn New Member

    Thank you for you reply. I'll add my findings at that thread.
     

Share This Page