Run Mi Unlock (Linux) on Trisquel, facing python issues
- Inicie sesión ou rexístrese para enviar comentarios
Hello there,
I’ve recently been in the process of installing my Mi/Xiaomi phone with LineageOS. Everything I did on the device is up and ready for hacking but of course Xiaomi decided that their phones can only be unlocked via an app they have made which only runs on Micro$oft Windows.
Thankfully someone or a team has made a version of the ‘Mi Unlock’ app that runs on Linux.
I have been following this guide here (https://github.com/offici5l/MiUnlockTool/blob/main/INSTALL.md) to install the MiUnlockTool via ‘sudo pip install miunlock’, but of course needed to make sure I have the right builds. I
I already have the latest version of ‘python3,’ which is no issue have when I try to install ‘python3-venv’ I get the following:
“User@Computer:~$ sudo apt install python3-venv….
The following information may help to resolve the situation:
The following packages have unmet dependencies:
python3.10-venv : Depends: python3-pip-whl but it is not installable
E: Unable to correct problems, you have held broken packages.”
Without this package, I won’t be able to unlock my Mi Phone, install it with LineageOS and actually own it without lock-in venders getting in the way (or at least before Google makes their “changes”).
The question is: is there an alternative to ‘python3-pip-whl’ or is it referred to as something else and what packages do I have that is currently interfering with this install.
There are other Linux builds of the MiUnlock app, but I wanted to stick with the github link above as it appears to be the latest version available.
I appreciate your time, questions and advice given to me in the posts.
Thank you
Trisquel 11 or Trisquel 12?
It's on Trisquel 11 atm. Reminds me that I need to update it to the latest version soon, unless that's the first thing that I ought to be doing.
python-pip and core dependencies are not found on Trisquel.
Yeah, that's what I find worrisome.
Unless there's an alternative package I can use (I'm starting to doubt), I may have to really on Windows via VM or actual desktop, or use Ubuntu live on USB.
The issue is that pip can install nonfree software; hence why it is not included in Trisquel. If you really wish to use pip, as there may be no other 'Mi Unlock' installation methods, you can use the standalone zip application for pip, however you will have to run it with --break-system-packages.
Yeah that could help... idk
Usually you have the dependencies you need in newer versions tho
Hi hi-from-mike,
Xiaomi phones are the worst when it comes to unlocking the bootloader!
I understand what you want to do, but the first rule if we want to start reducing Google’s presence on our phone is to choose a phone where it’s easy to unlock the bootloader.
Xiaomi asks for your phone number and makes you wait a month – it’s absolute rubbish))
Think about selling it and buying, for example, a OnePlus, Nothing or Shift; if you want more freedom, a PinePhone (with an ARM Cortex A53 chip) or a Librem5; or there are modular smartphones, such as the Fairphone. Ignore the Google Pixel – it has a Titan chip installed.
When it comes to the phone’s hardware, you can look at the example of the ‘Thinkpenguin’ shop, where they use routers with a Rockchip chip.
You won’t need to wait a month, report your phone to China or use Python-pip; you’ll just need three commands to unlock the bootloader)
https://github.com/zenfyrdev/bootloader-unlock-wall-of-shame
https://pine64.org/devices/pinephone/

