Tag Archives: WIN10

How to Solve Docker Desktop Start Error in Win10

Error message

Docker.ApiServices.WSL2.WslKernelUpdateNotInstalledException: Throws an exception of type 'Docker.ApiServices.WSL2.WslKernelUpdateNotInstalledException'.
    At Docker.ApiServices.WSL2.WslShortLivedCommandResult.LogAndThrowIfUnexpectedExitCode(String prefix, ILogger log, Int32 expectedExitCode) location C:\workspaces\PR-16070\src\github.com\docker\pinata\win\src\Docker.ApiServices\WSL2\ WslCommand.cs: line number 140
    At Docker.Engines.WSL2.WSL2Provisioning.<DeployDistroAsync>d__17.MoveNext() location C:\workspaces\PR-16070\src\github.com\docker\pinata\win\src\Docker.Desktop\Engines\WSL2\ WSL2Provisioning.cs: line number 169
--- End of stack trace in previous position where exception was thrown ---

Solution:

Method 1

Execute CMD command in administrator mode Netsh Winsock reset

Restart docker desktop to solve the problem!

Method 2

Open website https://czf-net.xyz/res/

Download WSL msi

install

Restart docker desktop to solve the problem!

The win10 update shared printer connection 0x0000011b reports an error. There is no need to uninstall the update

After Microsoft security updates kb50005565 and kb50006670 from October to November, 0x0000011b error code appears in the shared printer connection.

There is no need to uninstall the update solution: press and hold the keyboard + r on the shared host to open the operation window and enter regedit.

Find HKEY_ LOCAL_ Machine \ system \ currentcontrolset \ control \ print right click to create a new 32-bit key value name rpchahnlevelprivacyenabled.

Finally, restart the computer.

Thanks for sharing those things.

[Solved] The printer cannot be connected after Microsoft Win10 patch kb5005565 is updated (0x0000011b)

Win10 latest kb5005565 patch. The patch update brings a bug, mainly the problem of LAN sharing. This bug will affect the access of LAN printers and cause the error code 0x0000011b

 Solution: Open Settings, Applications and Features, Programs and Features, View Installed Updates, find the update corresponding to KB50055xx, right-click to uninstall, and restart your computer after the uninstallation is complete.

  1. Press WIN+R on your keyboard to open the Run window.

  2, type appwiz.cpl and press enter to open.

  3、Click "View Installed Updates" on the left side of the window.

  4. Under the list, find the update you need to uninstall, right click the patch name and select "Uninstall".

  5、A pop-up prompt will appear to determine the uninstallation, click "Yes". Start the uninstallation process, and restart your computer after it is finished.

Win10 installs the Ubuntu system and reports an error wslregisterdistribution failed with error: 0x8007019e

Reference link: when installing Ubuntu system, the error wslregisterdistribution failed with error: 0x8007019e

When installing the Ubuntu system in the windows app store, the error wslregisterdistribution failed with error: 0x8007019e is reported

1. Error reporting:

Installing, this may take a few minutes...
Installation Failed!
Error: 0x8007019e
Press any key to continue...

2. Cause: Windows subsystem support is not installed.

3. Solution:

1. Win + X, select windows PowerShell (administrator)

2. Input: enable windowsoptionalfeature – Online – featurename Microsoft Windows subsystem Linux

3. Press enter, enter y and restart!

4. Reopen the installed subsystem, wait a few minutes, and enter the account and password.

 

After deploying Django Apache in win10, an error is reported: authentication credentials were not provided

How did “people you might know” find you on social software>>>

I deployed Django Apache service in the lower part of win10, but after deployment, the access interface reported an error

Authentication credentials were not provided.

I didn’t provide the identity certificate. I used Django rest_ Framework framework

But I’ve written headers

{“Authorization”:“token 38fff87b5c09ad574d29449009a409dfb9d3df5e”,

“Content-Type”:“application/json”}

And it’s no problem for me to start access directly with Python

Then I go to Baidu to search,. It was found that it was a problem with Apache

You need to add a sentence to the configuration file:

SetEnvIf Authorization “(.*)” HTTP_ AUTHORIZATION=$1

After saving and exiting, restart Apache to access it

Multiple JDK switch and solution of could not find java.dll exception in win10 environment

What are the eight life cycle hook functions of Vue>>>

Note: mainly switch between jdk1.7 and JDK1.8

1. Java needs to be modified every time JDK is switched_ HOME

2. Edit the path environment variable, as shown in the figure, and set% Java_ Home% bin and% Java_ Move home% \ bin to the top two columns

3. Add the Java application to the start toolbar java file and select the enabled JDK version

4. Modify the registry information of Java in the computer

Win + R pop up the running window, enter regedit, enter the interface “Registry Editor”, and then find

HKEY_ LOCAL_ Machine/software/javasoft/Java development kit/CurrentVersion

HKEY_ LOCAL_ Machine, software, javasoft, Java runtime environment, current version

5. Open the CMD window and input Java – version to detect

It’s not right to report an error

Error: Registry key ‘Software\JavaSoft\Java Runtime Environment’\CurrentVersion’
has value ‘1.7’, but ‘1.8’ is required.
Error: could not find java.dll
Error: Could not find Java SE Runtime Environment.

6. There are mainly the following situations when the error message appears

6.1 because a key in the registry has been localized to a Chinese name.
[HKEY]_ LOCAL_ Machine/software/javasoft/Java runtime environment]
changed to:
[HKEY_ LOCAL_ Then press F3 to change all the found “Java runtime environment” and “Java runtime environment”.  

6.2 delete the java.exe, javaw.exe and javaws.exe in the C: Windows/system32 file

7. Check again, OK

Solution of 80 port occupied by system (PID = 4) in win10

1. Find out who is using port 80

Enter the command prompt line (start running, input CMD), enter the command netstat – ano, you can see the usage of all ports of the machine. Generally, port 80 is in the first line. The screenshot shows that the port has been occupied, and Listing 4 is written in the PID

Which program is PID = 4?Then, at the command prompt and enter the command tasklist to list all the currently running processes

It is found that the process with PID = 4 is actually system

2. Cancel the occupation of port 80 by system process

After query, it is found that port 80 is indeed a component of SQL Server 2012 – SQL Server Reporting Services (SQL Server 2012). It’s the log system of SQL server. It’s the good end that suddenly occupies port 80. Moreover, for ordinary people, the function of this component is useless. Turning it off is also a way to save resources

The closing method is very simple. Enter services. MSc in the run box to enter the service window. Or directly enter “service” in the search box in the start menu to open it. Then find SQL Server Reporting Services (SQL Server 2012) and stop it. The occupied port 80 is released. You can also set its startup mode to “disable”

python3 are installed through pip on Win 10, Unicode decodeerror: ‘UTF-8’ codec can’t decode byte

UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xd5 in position 2: invalid continuation byte

when installing Python3 via pip on Win10
I encountered UnicodeDecodeError when installing via pip.

The system is windows 10 and the python version is 3.6.0.

The complete message is as follows.

C:\Windows\system32>pip install SQLAlchemy
Collecting SQLAlchemy
  Using cached SQLAlchemy-1.1.4.tar.gz
Installing collected packages: SQLAlchemy
  Running setup.py install for SQLAlchemy ... error
Exception:
Traceback (most recent call last):
  File "c:\program files\python36\lib\site-packages\pip\compat\__init__.py", line 73, in console_to_str
    return s.decode(sys.__stdout__.encoding)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 34: invalid start byte

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "c:\program files\python36\lib\site-packages\pip\basecommand.py", line 215, in main
    status = self.run(options, args)
  File "c:\program files\python36\lib\site-packages\pip\commands\install.py", line 342, in run
    prefix=options.prefix_path,
  File "c:\program files\python36\lib\site-packages\pip\req\req_set.py", line 784, in install
    **kwargs
  File "c:\program files\python36\lib\site-packages\pip\req\req_install.py", line 878, in install
    spinner=spinner,
  File "c:\program files\python36\lib\site-packages\pip\utils\__init__.py", line 676, in call_subprocess
    line = console_to_str(proc.stdout.readline())
  File "c:\program files\python36\lib\site-packages\pip\compat\__init__.py", line 75, in console_to_str
    return s.decode('utf_8')
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 34: invalid start byte

I’ve tried to modify the code page with “CHCP 65001”, but it didn’t work. I have tried the method of “CHCP 866”, but it has no effect

I also found many ways to use sys. Set default encoding in various places, but I used Python 3

Update:

I saw on stackoverflow that it is suggested to modify the code page to 437. It is not only the above problem… But also the permissionerror: [winerror 32] another program is using this file and the process cannot access it

The error information is as follows:

C:\Users\59740>pip install SQLAlchemy
Collecting SQLAlchemy
  Using cached SQLAlchemy-1.1.4.tar.gz
Installing collected packages: SQLAlchemy
  Running setup.py install for SQLAlchemy ... error
Exception:
Traceback (most recent call last):
  File "c:\users\59740\appdata\local\programs\python\python36\lib\site-packages\pip\compat\__init__.py", line 73, in console_to_str
    return s.decode(sys.__stdout__.encoding)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 34: invalid start byte

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "c:\users\59740\appdata\local\programs\python\python36\lib\site-packages\pip\commands\install.py", line 342, in run
    prefix=options.prefix_path,
  File "c:\users\59740\appdata\local\programs\python\python36\lib\site-packages\pip\req\req_set.py", line 784, in install
    **kwargs
  File "c:\users\59740\appdata\local\programs\python\python36\lib\site-packages\pip\req\req_install.py", line 878, in install
    spinner=spinner,
  File "c:\users\59740\appdata\local\programs\python\python36\lib\site-packages\pip\utils\__init__.py", line 676, in call_subprocess
    line = console_to_str(proc.stdout.readline())
  File "c:\users\59740\appdata\local\programs\python\python36\lib\site-packages\pip\compat\__init__.py", line 75, in console_to_str
    return s.decode('utf_8')
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 34: invalid start byte

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "c:\users\59740\appdata\local\programs\python\python36\lib\site-packages\pip\commands\install.py", line 385, in run
    requirement_set.cleanup_files()
  File "c:\users\59740\appdata\local\programs\python\python36\lib\site-packages\pip\req\req_set.py", line 729, in cleanup_files
    req.remove_temporary_source()
  File "c:\users\59740\appdata\local\programs\python\python36\lib\site-packages\pip\req\req_install.py", line 977, in remove_temporary_sou
    rmtree(self.source_dir)
  File "c:\users\59740\appdata\local\programs\python\python36\lib\site-packages\pip\_vendor\retrying.py", line 49, in wrapped_f
    return Retrying(*dargs, **dkw).call(f, *args, **kw)
  File "c:\users\59740\appdata\local\programs\python\python36\lib\site-packages\pip\_vendor\retrying.py", line 212, in call
    raise attempt.get()
  File "c:\users\59740\appdata\local\programs\python\python36\lib\site-packages\pip\_vendor\retrying.py", line 247, in get
    six.reraise(self.value[0], self.value[1], self.value[2])
  File "c:\users\59740\appdata\local\programs\python\python36\lib\site-packages\pip\_vendor\six.py", line 686, in reraise
    raise value
  File "c:\users\59740\appdata\local\programs\python\python36\lib\site-packages\pip\_vendor\retrying.py", line 200, in call
    attempt = Attempt(fn(*args, **kwargs), attempt_number, False)
  File "c:\users\59740\appdata\local\programs\python\python36\lib\site-packages\pip\utils\__init__.py", line 102, in rmtree
    onerror=rmtree_errorhandler)
  File "c:\users\59740\appdata\local\programs\python\python36\lib\shutil.py", line 488, in rmtree
    return _rmtree_unsafe(path, onerror)
  File "c:\users\59740\appdata\local\programs\python\python36\lib\shutil.py", line 387, in _rmtree_unsafe
    onerror(os.rmdir, path, sys.exc_info())
  File "c:\users\59740\appdata\local\programs\python\python36\lib\site-packages\pip\utils\__init__.py", line 114, in rmtree_errorhandler
    func(path)
PermissionError: [WinError 32] Another program is using this file and the process cannot access it. : 'C:\\Users\\59740\\AppData\\Local\\Temp\\pip-build-1djzmudb\\SQLAlchemy'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "c:\users\59740\appdata\local\programs\python\python36\lib\site-packages\pip\basecommand.py", line 215, in main
    status = self.run(options, args)
  File "c:\users\59740\appdata\local\programs\python\python36\lib\site-packages\pip\commands\install.py", line 385, in run
    requirement_set.cleanup_files()
  File "c:\users\59740\appdata\local\programs\python\python36\lib\site-packages\pip\utils\build.py", line 38, in __exit__
    self.cleanup()
  File "c:\users\59740\appdata\local\programs\python\python36\lib\site-packages\pip\utils\build.py", line 42, in cleanup
    rmtree(self.name)
  File "c:\users\59740\appdata\local\programs\python\python36\lib\site-packages\pip\_vendor\retrying.py", line 49, in wrapped_f
    return Retrying(*dargs, **dkw).call(f, *args, **kw)
  File "c:\users\59740\appdata\local\programs\python\python36\lib\site-packages\pip\_vendor\retrying.py", line 212, in call
    raise attempt.get()
  File "c:\users\59740\appdata\local\programs\python\python36\lib\site-packages\pip\_vendor\retrying.py", line 247, in get
    six.reraise(self.value[0], self.value[1], self.value[2])
  File "c:\users\59740\appdata\local\programs\python\python36\lib\site-packages\pip\_vendor\six.py", line 686, in reraise
    raise value
  File "c:\users\59740\appdata\local\programs\python\python36\lib\site-packages\pip\_vendor\retrying.py", line 200, in call
    attempt = Attempt(fn(*args, **kwargs), attempt_number, False)
  File "c:\users\59740\appdata\local\programs\python\python36\lib\site-packages\pip\utils\__init__.py", line 102, in rmtree
    onerror=rmtree_errorhandler)
  File "c:\users\59740\appdata\local\programs\python\python36\lib\shutil.py", line 488, in rmtree
    return _rmtree_unsafe(path, onerror)
  File "c:\users\59740\appdata\local\programs\python\python36\lib\shutil.py", line 378, in _rmtree_unsafe
    _rmtree_unsafe(fullname, onerror)
  File "c:\users\59740\appdata\local\programs\python\python36\lib\shutil.py", line 387, in _rmtree_unsafe
    onerror(os.rmdir, path, sys.exc_info())
  File "c:\users\59740\appdata\local\programs\python\python36\lib\site-packages\pip\utils\__init__.py", line 114, in rmtree_errorhandler
    func(path)
PermissionError: [WinError 32] Another program is using this file and the process cannot access it. : 'C:\\Users\\59740\\AppData\\Local\\Temp\\pip-build-1djzmudb\\SQLAlchemy'

Solution:

Open
C: (program files \ \ python36 \ \ lib \ \ site packages \ \ PIP \ \ compat\__ init__. Py about 75 lines
return s.decode ('utf_ 8 ') to return s.decode ('cp936')

Reason:
coding problem, although PY3 uses UTF-8. But the terminal display under win still uses GBK code

Installing mingw64 and msys2 in win10

>

. 1, next address

https://sourceforge.net/projects/mingw-w64/files/
https://sourceforge.net/projects/mingw-w64/files/mingw-w64/mingw-w64-release/

2

http://www.mirrorservice.org/sites/

http://sourceforge.mirrorservice.org/m/mi/mingw-w64/

http://sourceforge.mirrorservice.org/m/ms/msys2/Base/x86_64/

References

https://www.jianshu.com/p/d66c2f2e3537
https://blog.csdn.net/ZHAOJUNWEI08/article/details/86602120
https://blog.csdn.net/swartz_lubel/article/details/56336077

2. Msys2

. 1, next address

https://www.msys2.org/

https://mirrors.tuna.tsinghua.edu.cn/msys2/distrib/x86_64/

References

https://www.cnblogs.com/iwetuan/p/10036098.html

https://www.cnblogs.com/CodeWorkerLiMing/p/12274583.html

https://mirror.tuna.tsinghua.edu.cn/help/msys2/

https://hustlei.github.io/2018/11/msys2-for-win.html#msys2 AE 89%A3 85

. reference mingw64

>1. Use

https://blog.csdn.net/tianxifeng/article/details/103160925

>2. Go

ValueError:Unknown MS Compiler version 1916

>

“Your – Python path lib/distutils/cygwincompiler. Py”> “

        elif msc_ver >= '1900':
            # Visual Studio 2015/Visual C++ 14.0
            # "msvcr140.dll no longer exists"
            # return ['vcruntime140']
            return []
        else:
            raise ValueError("Unknown MS Compiler version %s " % msc_ver)