# FAQ - [What should I do if garbled characters and segmentation faults occur during hb installation?](#section411894616119) - [What should I do if the message "cannot import 'sysconfig' from 'distutils'" is displayed during hb installation?](#section629417571626) - [What should I do if the message "module 'platform' has no attribute 'linux\_distribution'" is displayed during hb Installation?](#section10871523332) - [What should I do if the message "ImportError: No module named apt\_pkg" is displayed during the execution of an unidentifiable command?](#section159891252236) ## What should I do if garbled characters and segmentation faults occur during hb installation? - **Symptom** Garbled characters and segmentation faults occur during the execution of the **python3 -m pip install --user ohos-build** command. - **Possible Causes** pip is of an early version. - **Solutions** Upgrade pip. ``` python3 -m pip install -U pip ``` ## What should I do if the message "cannot import 'sysconfig' from 'distutils'" is displayed during hb installation? - **Symptom** The message "cannot import 'sysconfig' from 'distutils'" is displayed during the execution of the **python3 -m pip install --user ohos-build** command. - **Possible Causes** The **distutils** module is unavailable. - **Solutions** Install **distutils**. ``` sudo apt-get install python3.8-distutils ``` ## What should I do if the message "module 'platform' has no attribute 'linux\_distribution'" is displayed during hb Installation? - **Symptom** The message "module 'platform' has no attribute 'linux\_distribution'" is displayed during the execution of the **python3 -m pip install --user ohos-build** command. - **Possible Causes** There is a compatibility issue of python3-pip. - **Solutions** Reinstall pip. ``` sudo apt remove python3-pip curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py python get-pip.py ``` ## What should I do if the message "ImportError: No module named apt\_pkg" is displayed during the execution of an unidentifiable command? - **Symptom** The message "ImportError: No module named apt\_pkg" is displayed when an unidentifiable command is executed on the Linux server. - **Possible Causes** There is a compatibility issue of python3-apt. - **Solutions** Reinstall python3-apt. ``` sudo apt-get remove python3-apt sudo apt-get install python3-apt ```