wsl --install -d Ubuntu-18.04
wsl --export Ubuntu UNbuntu.tar
wsl --import UbuntuN E:/wslu22/ E:\wslu22\UNbuntu.tar
mkdir rocklinux将所需文件放到 rocklinux 下
root@Shaox ~/rocklinux# ls
buildroot_dl_4c7c9df616fb.tar.gz tspi_linux_sdk_repo_20240131.tar.gzsudo apt-get install git repo python2.7 python3
sudo apt-get install git ssh make gcc libssl-dev liblz4-tool expect g++ patchelf chrpath gawk texinfo chrpath diffstat binfmt-support qemu-user-static live-build bison flex fakeroot cmake gcc-multilib g++-multilib unzip device-tree-compiler ncurses-devtar -xvzf tspi_linux_sdk_repo_20240131.tar.gz
root@Shaox ~/rocklinux# sudo update-alternatives --install /usr/bin/python python /usr/bin/python2.7 1
update-alternatives: using /usr/bin/python2.7 to provide /usr/bin/python (python) in auto mode
root@Shaox ~/rocklinux# sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.6 2
update-alternatives: using /usr/bin/python3.6 to provide /usr/bin/python (python) in auto mode
root@Shaox ~/rocklinux# sudo update-alternatives --config python
There are 2 choices for the alternative python (providing /usr/bin/python).Selection Path Priority Status
> 0 /usr/bin/python3.6 2 auto mode
1 /usr/bin/python2.7 1 manual mode
2 /usr/bin/python3.6 2 manual mode
Press <enter> to keep the current choice[*], or type selection number: 1
update-alternatives: using /usr/bin/python2.7 to provide /usr/bin/python (python) in manual mode.repo/repo/repo sync -l -j88
tar -xzf buildroot_dl_4c7c9df616fb.tar.gz