Giter Site home page Giter Site logo

Comments (1)

nAnderYang avatar nAnderYang commented on July 19, 2024

i have try more linux release

C:\WSL-Distribution-Switcher>switch.py
usage: ./switch.py image[:tag]

The following distributions are currently installed:

  - centos:7*
  - centos:6.9
  - fedora:25
  - ubuntu:17.04
  - ubuntu:trusty

To switch back to the default distribution, specify ubuntu:trusty as the argument.

i found only centos6.x rootfs switch after bash.exe cant function properly.

i think this problem may be on the default version of the kernel. The default is 3.4.0+, but centos6.x kernel is 2.6.x so bash.exe cant work.

-----command log-----

C:\WSL-Distribution-Switcher>switch.py ubuntu:trusty
[*] Probing the Linux subsystem...
[*] Moving current rootfs to rootfs_centos_7...
[*] Moving desired rootfs_ubuntu_trusty to rootfs...

C:\WSL-Distribution-Switcher>bash -c 'cat /etc/issue'
Ubuntu 14.04.5 LTS \n \l
C:\WSL-Distribution-Switcher>switch.py ubuntu:17.04
[*] Probing the Linux subsystem...
[*] Moving current rootfs to rootfs_ubuntu_trusty...
[*] Moving desired rootfs_ubuntu_17.04 to rootfs...

C:\WSL-Distribution-Switcher>bash -c 'cat /etc/issue'
Ubuntu 17.04 \n \l
C:\WSL-Distribution-Switcher>switch.py fedora:25
[*] Probing the Linux subsystem...
[*] Moving current rootfs to rootfs_ubuntu_17.04...
[*] Moving desired rootfs_fedora_25 to rootfs...

C:\WSL-Distribution-Switcher>bash -c 'cat /etc/fedora-release'
Fedora release 25 (Twenty Five)
C:\WSL-Distribution-Switcher>switch.py centos:7
[*] Probing the Linux subsystem...
[*] Moving current rootfs to rootfs_fedora_25...
[*] Moving desired rootfs_centos_7 to rootfs...

C:\WSL-Distribution-Switcher>bash -c 'cat /etc/centos-release'
CentOS Linux release 7.3.1611 (Core)
C:\WSL-Distribution-Switcher>switch.py centos:6.9
[*] Probing the Linux subsystem...
[*] Moving current rootfs to rootfs_centos_7...
[*] Moving desired rootfs_centos_6.9 to rootfs...

C:\WSL-Distribution-Switcher>bash -c 'cat /etc/centos-release'

C:\WSL-Distribution-Switcher>echo %ERRORLEVEL%
139

from wsl-distribution-switcher.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.