Unable to upload to nano esp32

When I attempt to upload to the nano esp32 it gives me this error

Sketch uses 285981 bytes (9%) of program storage space. Maximum is 3145728 bytes.
Global variables use 30552 bytes (9%) of dynamic memory, leaving 297128 bytes for local variables. Maximum is 327680 bytes.
dfu-util 0.11-arduino4

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2021 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/

Opening DFU capable USB device...
Device ID 2341:0070
Device DFU version 0101
Claiming USB DFU Interface...
Setting Alternate Interface #0 ...
dfu-util: error get_status: LIBUSB_ERROR_PIPE
Determining device status...
Failed uploading: uploading error: exit status 74

This is the original post I had about this error https://forum.arduino.cc/t/nano-esp32-getting-stuck-in-boot-loop-with-the-tft-espi-library/1462641/13

The problem in this post is very similar to mine because my nano esp32 was working just last night Nano ESP DFU issue . Arduino Nano ESP32: Upload sketch failed

Try to close and reopen ide. What OS are you using?

Usually, a double click of the RST button fixes a LIBUSB_ERROR_PIPE error

I am using linux mint cinnamon. a double click did not fix the problem an neither did restarting the computer unfortunatley.

Had the same myself on mint.

First make sure your user has the proper permissions for DFU util - unless you've already fixed that mint doesn't grant it to you by default

For the LIBUSB_ERROR_PIPE issue
Keep the Nano ESP32 connected by USB.
Connect the board's B1 pin to GND with a jumper wire.
While they are connected, press and release RST.
Remove the jumper wire.
Open Tools → Board → Arduino ESP32 Boards → Arduino Nano ESP32.
Open Tools → Port and select the newly detected ESP32 device.
Open Tools → Programmer → Esptool.
Ensure Esptool has a checkmark next to it.
Select Sketch → Upload Using Programmer
Press RST once to leave ROM mode and run the sketch

thank you for the suggestion, it fixed my problem! :)