Unable to run fastboot commands: I want to unlock my Nexus 5. I cannot run any fastboot command however: the device is not detected. What I did:


Press VolumeDown+rightButton until arriving to this screen





Plug the phone
Run the following commands


though I appear to be in fastboot mode

# apt-get install fastboot
# fastboot oem unlock
&lt; waiting for device &gt;


Nothing is disaplaye after the last line.

PS: I am using Ubuntu 16.04
You probably don't have USB drivers installed. Download them and install, everything should work now.


Download them from here
Download Galaxy Nexus drivers here


Power on the device
Go to Settings > Developers Options > USB Debugging then enable it.
Connect the device to the computer, drivers should be installed 
Open a terminal and check if the phone is detected: adb devices (Windows)
You should get some hex numbers as output
Then reboot to the bootloader: adb reboot-bootloader
Then check if the device is detected in Fastboot: fastboot devices
Finally proceed with the Unlocking process: fastboot oem unlock or fastboot flash unlock if the previous doesn't work.



PS: Seems like you use a Linux system, I'm not familiar with Linux. You should use Linux commands.