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.