Symptoms
In case any error occurs during opening Ubuntu.exe from C:\Program Files (x86)\Ubuntu
Or Any error related to Ubuntu, WLS, or Redis
Example:
The following errors might occur:
WslRegistredDistribution failed with error: 0x80070057
Error: 0x80070057 The parrameter is incorrect
The specified network name is no longer available
Press any key to continue...
Or
The specified network name is no longer available.
etc.
Cause
In most cases, they are related to incorrectly installed Ubuntu, Redis, or WSL or corruption of the files
Resolution
- Stop TimelinePI service
- Open PowerShell as Administrator
- Run
In order to unregister the Ubuntuwslconfig /u Ubuntu
- After Ubuntu successfully unregistered navigate (In PowerShell with the help of the "cd" command ) to the Ubuntu folder (By default it is: C:\Program Files (x86)\Ubuntu)
- Run the following command
In order to install Ubuntu correctly.\ubuntu.exe install --root 2>&1
- Once it is installed download Redis_wsl.zip from this article and extract files to the Ubuntu folder. Also, copy (from the Source folder) and paste the following files to the Ubuntu folder as well
- gcc-10-base_10.3.0-1ubuntu1_20.04_amd64
- libatomic1_10.3.0-1ubuntu1_20.04_amd64.deb
Note: You can download them from this article (Attached at the bottom) - Execute the below commands one by one in Powershell.
- ubuntu.exe run "sudo dpkg -i libatomic1_10.3.0-1ubuntu1_20.04_amd64.deb; exit"
- ubuntu.exe run "sudo dpkg -i libhiredis0.14_0.14.0-6_amd64.deb ; exit"
- ubuntu.exe run "sudo dpkg -i libjemalloc2_5.2.1-1ubuntu1_amd64.deb; exit"
- ubuntu.exe run "sudo dpkg -i liblua5.1-0_5.1.5-8.1build4_amd64.deb; exit"
- ubuntu.exe run "sudo dpkg -i lua-bitop_1.0.2-5_amd64.deb; exit"
- ubuntu.exe run "sudo dpkg -i lua-cjson_2.1.0+dfsg-2.1_amd64.deb; exit"
- ubuntu.exe run "sudo dpkg -i redis-tools_6.2.4-1rl1~focal1_amd64.deb; exit"
- ubuntu.exe run "sudo dpkg -i redis-server_6.2.4-1rl1~focal1_amd64.deb; exit"
- ubuntu.exe run "sudo dpkg -i redis_6.2.4-1rl1~focal1_all.deb; exit"
- After you execute them all, navigate to the Ubuntu folder (via File Explorer) and open Ubuntu (The default folder is: C:\Program Files (x86)\Ubuntu)
- Enter the following command in the Ubuntu
Note: If you see the following message "redis server is not running"proceed with the instructions. If the status is Running proceed from step 12service redis-server status
- Run
command (If you see the following error"Starting redis-server: start-stop-daemon: matching on world-writable pid file /var/run/redis/redis-server.pid is insecure failed"proceed with the instructions) If there is no error, proceed from step 12service redis-server start
- Navigate to the following directory
and runcd /var/run/redis
chmod 644 redis-server.pid
- Try to start the Redis again
service redis-server start
- Check the status of Redis
also, you can runservice redis-server status
and then runredis-cli
(you should get PONG in response)ping
- Start TimelinePI service
Additionally, there might be cases when some of the files initially are missing such as libatomic1_10.3.0-1ubuntu1_20.04_amd64.deb or gcc-10-base_10.3.0-1ubuntu1_20.04_amd64.deb
Please manually copy them to the Ubuntu folder. A zip archive with all possibly missing files is attached
Comments
0 comments
Please sign in to leave a comment.