Basically, I bricked my phone and had to send it to France for repair. Now the phone works again with stock ROM (which I don’t want, I want LineageOS or Ubuntu Touch), BUT, I can’t unlock the bootloader anymore. The process goes through with the unlock code, everything seems to be fine, but it will write Locked, when starting the bootloader.
I don’t know why is this, my guess is that it was re-installed with some strange version of the stock ROM, that will not allow the bootloader to e unlocked. How to fix this? Do I need to send my phone to France for repair again?
And after entering the unlock code how do you proceed to unlock the bootloader? Please remind the code just allows to enable OEM unlocking which just allows to unlock the bootloader and does not unlock the bootloader itself.
Sorry for the late reply. That it worked with Linux proves my experience.
I also had this problem using Windows 10.
I then updated the USB drivers of Windows 10 as described on
→ Part 2: On your computer (Windows and macOS)
→ Prerequisite for Windows - Update USB drivers
After this, the command fastboot devices worked.