When you run adb , for example, from the command line

 adb start-server 

writes that the daemon is successfully launched, after which the system hangs tight, the screen image does not change, hot keys, such as CTRL + ALT + F1 , do not work, etc. How can I fix it?

UPD: strace adb start-server output:

enter image description here

    1 answer 1

    You can try to reconfigure nanosleep

     dpkg-reconfigure nanosleep 

    Or clear the data nanosleep

     apt-get purge nanosleep 

    nanosleep () is a C language function, it pauses the calling thread for at least the time specified by the * req parameter, or until a signal is received that the handler in the calling thread calls or terminates the process. If you connect android, then in its settings, uncheck the checkbox "measure adb running time". Try reconfiguring adb

     dpkg-reconfigure adb 

    If it does not help, reinstall adb

     apt-get purege adb apt-get remove adb apt-get install adb 

    Or do the same but only with the gcc package.

    • In both cases, E: Не удалось найти пакет nanosleep - Evgeniy
    • Reinstalled adb , all the same. Added strace output to the question. - Evgeniy
    • Did you reinstall gcc? - Daniel
    • Try apt-get update and apt-get upgrade. Run apt-get install gcc and apt-get install g ++. If you don’t receive, then look for the gcc and g ++ repositories and add them via the command line, then apt-get update and apt-get upgrade. - Daniel