Question: Running `pacmd list-sinks | grep -e "index" -e "device.description"` outputs:

```
  index: 0
    device.description = "GP106 High Definition Audio Controller Digital Stereo (HDMI)"
  index: 1
    device.description = "Built-in Audio Analog Stereo"
* index: 2
    device.description = "HD 4.40BT"

```

The default sink starts with `* index:`. In the above example I want to output `HD 4.40BT`.

So the problem-statement is: match `* index` and then output the next `device.description` that is matched. How can I do that using `grep` or `sed` or `awk`?

**EDIT:** May be starting with `pacmd list-sinks` is the wrong place to start. Is there a better command?

Answer: 
As Nomi Shaw suggested, your problem seems to be a weak internet connection.

Also, please do not install third party packages into the global python interpreter by directly using pip or pip3.

Please, create and activate a virtual environment first.

RealPython.com has an excellent article about the why and the how:

<https://realpython.com/python-virtual-environments-a-primer/>
Further to what Nomi Shaw and jugmac00 said, I had the same problem a couple of months back and it drove me crazy. I don't know how likely it is that you're experiencing the same problem but just in case:

My errors were caused by an internet filter I installed ([Pluckeye](https://www.pluckeye.net/)) that it turns out was blocking not only my browser connections but all my other connections too (pip, calibre, r...). Once I set it to a lower level of restriction everything worked fine!