[SOLVED] apt-check hangs, preventing login via SSH

Discussion in 'Linux Ubuntu' started by SO_yeah, Oct 28, 2015.

  1. SO_yeah

    SO_yeah New Member

    Joined:
    Jan 18, 2015
    Messages:
    16
    Likes Received:
    2
    Since a few days ago everything was fine today I'm experiencing serious delays while connecting via SSH, either from network or USB-serial monitor.

    ssh verbose in the client hangs at "Entering interactive session" while at the same time in udoobuntu pops up "apt-check" using a lot of CPU.
    When "apt-check" dies ssh login is accomplished.

    this seems to be a famous ubuntu issue discussed from 2010 till these days so I suspect it's due to a broken update from trusty repo.
    Is anybody experiencing this?
     
  2. SO_yeah

    SO_yeah New Member

    Joined:
    Jan 18, 2015
    Messages:
    16
    Likes Received:
    2
    found a solution!
    comment all lines with "session optional pam_motd.so" in these files:
    Code:
    /etc/pam.d/login
    Code:
    /etc/pam.d/sshd
    to have even faster logins i've commented all of the "session optional".
     
  3. Francesco

    Francesco Active Member

    Joined:
    Jun 23, 2015
    Messages:
    220
    Likes Received:
    110
    Are you talking about udoobuntu 1 or udoobuntu 2 ?
     
  4. SO_yeah

    SO_yeah New Member

    Joined:
    Jan 18, 2015
    Messages:
    16
    Likes Received:
    2
    Here we go again!
    after one year of happiness delays are back which render apt-get impossible and ssh connections extremely painful!

    this time I solved adding
    Code:
    UseDNS no
    to
    Code:
    /etc/ssh/sshd_config
    as suggested here

    to answer Francesco I was, and still, using udoobuntu2 beta1 (no RC edition)
     
  5. Andrea Rovai

    Andrea Rovai Well-Known Member

    Joined:
    Oct 27, 2014
    Messages:
    1,703
    Likes Received:
    240
    Why you're still using UDOObuntu 2 Beta 1? Do you still have this problem?
     
  6. SO_yeah

    SO_yeah New Member

    Joined:
    Jan 18, 2015
    Messages:
    16
    Likes Received:
    2
    I never had time to try the candidates. Everything is working fine I marked as solved.
     

Share This Page