Category Archives: Error

Git Push Error: error: failed to push some refs… hint: Updates were rejected because the remote…

1. The questions are as follows:

[email protected]:/mnt/e/work/workspace/withdraw_validdata_from_file/withdraw$ git push -u origin main
Username for '': echigh
Password for 'https://[email protected]':
 ! [rejected]        main -> main (fetch first)
error: failed to push some refs to ''
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

2. The reason is that the remote warehouse has been changed and does not match any local commit version

Reference: [status question] why can’t you push it up sometimes… – learn git for yourself

3. Solution:

1) Merge remote changes with git pull before git push

2) Directly use git push – F to forcibly overwrite the remote warehouse. Anyway, I dare not

4. So I did this:

[email protected]:/mnt/e/work/workspace/withdraw_validdata_from_file/withdraw$ git pull
remote: Enumerating objects: 22, done.
remote: Counting objects: 100% (22/22), done.
remote: Compressing objects: 100% (21/21), done.
remote: Total 21 (delta 13), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (21/21), 5.03 KiB | 66.00 KiB/s, done.
   c6d3d5e..e50b1bc  main       -> origin/main
Merge made by the 'recursive' strategy. | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644

Then push:

[email protected]:/mnt/e/work/workspace/withdraw_validdata_from_file/withdraw$ git push
Username for '': echigh
Password for 'https://[email protected]':
Enumerating objects: 44, done.
Counting objects: 100% (42/42), done.
Delta compression using up to 8 threads
Compressing objects: 100% (38/38), done.
Writing objects: 100% (38/38), 3.16 MiB | 994.00 KiB/s, done.
Total 38 (delta 19), reused 0 (delta 0)
remote: Resolving deltas: 100% (19/19), completed with 2 local objects.
   e50b1bc..b7684a5  main -> main

[Solved] Win10: Failed to connect to port 443 Timed out

First, Ping to test whether it can connect. Then modify the host.

Step 1: open, query the following two domain names and record their corresponding IP addresses:

Step 2: update the host file

Step 3: clean up DNS and try again.

ipconfig /flushdns

[Solved] Git Common Error: error: src refspec xxx does not match any/error: failed to push some refs to


[email protected] MINGW64 /g/browser/blog/myblog (main)
$ git push origin master
error: src refspec master does not match any
error: failed to push some refs to ''

[email protected] MINGW64 /g/browser/blog/myblog (main)
$ git config --global --unset http.proxy

[email protected] MINGW64 /g/browser/blog/myblog (main)
$ git config --global --unset https.proxy 

[email protected] MINGW64 /g/browser/blog/myblog (main)
$ git push origin main
Enumerating objects: 4, done.
Counting objects: 100% (4/4), done.
Delta compression using up to 4 threads
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 35.82 MiB | 1.62 MiB/s, done.
Total 3 (delta 1), reused 0 (delta 0), pack-reused 0


The default main branch name of GitHub is main

Therefore, the push command should be git push origin main

Mac IDEA Connect SVN Error: E230001: Server SSL certificate verification failed: certificate issued

CMD opens the run window and executes the following command:
1.svn ls https://xxx

  • XXX is the specific SVN project address (you can try your project address several times)
  • Finally it will display ®eject, accept (t)emporarily or accept §ermanently?
    2.Enter P
    3.and then enter the SVN account name username and password according to the prompt.

How to Solve Error: Failure [INSTALL_FAILED_TEST_ONLY: installPackageLI]

When installing a debug package, the prompt is as follows

C:\Users\test>adb install "C:\Users\test\Downloads\test.apk"
Performing Streamed Install
adb: failed to install C:\Users\test\Downloads\test.apk: Failure [INSTALL_FAILED_TEST_ONLY: installPackageLI]


adb install -t "C:\Users\test\Downloads\test.apk"

ADB install has lrtsdg six options

-L lock the application
– R replace the existing application, that is, force installation
– t allow the test package
– s to install the application on the SD card
– D allow it to be installed, that is, the installed version is lower than that on the mobile phone
– G grant all runtime permissions to the application

Failed to find Build Tools revision 30.0.3 [How to Solve]

After we solved the problem of could not resolve gradle: 7.0.2, we reported this error in build output

The most direct solution is to download the version of Android SDK build tools in SDK tools. The path is file >settings> Appearance& Behavior> System Settings> Android SDK> SDK Tools. Unfortunately, I couldn’t download it, so I changed the buildtoolsversion in APP/build.gradle to “31.0.2” of all my current 31.0.2 versions

In the project structure, we have also changed everything, but after running, we still report such an error

After I changed the version to 30.0.2, I still have this problem. Obviously, I have this version, but why not? When I checked my SDK tools, I found that 31.0.0 and 30.0.2/28.0.3/27.0.0 are under Android SDK build tools 31

So I guessed whether it could not be found under the file, so I deleted all except the 30.0.2 version I currently use

Close Android studio and open it again. Success

[Solved] Tensorflow Win10: ImportError: DLL load failed

Vs 2019 is installed, Microsoft Visual C + + 2015 is available, and GPU is not supported, so CUDA installation is skipped, and pip install tensorflow = = 2.1.0 is directly used. The result shows importerror: DLL load failed.

Solution: PIP uninstall tensorflow uninstall tensorflow

pip install tensorflow = = 2.0.0

[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed [Solved]

1. Problem phenomenon

Error reported by Ubuntu machine or docker container

Traceback (most recent call last):
  File "", line 200, in <module>
  File "attribute_extract/", line 37, in __init__
  File "attribute_extract/", line 25, in __init__
  File "torchvision/models/", line 199, in resnet50
  File "torch/", line 433, in load_state_dict_from_url
  File "torch/", line 349, in _download_url_to_file
  File "urllib/", line 162, in urlopen
  File "urllib/", line 465, in open
  File "urllib/", line 483, in _open
  File "urllib/", line 443, in _call_chain
  File "urllib/", line 1286, in https_open
  File "urllib/", line 1245, in do_open
urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:645)>

2. Solutions

sudo apt-get update 
sudo apt-get install ca-certificates
sudo update-ca-certificates --fresh
export SSL_CERT_DIR=/etc/ssl/certs

How to Solve Docker failed to initialize Error

In this case, there is no need to reinstall the docker
rename the docker directory under C:\users\administrator\appdata\roaming (this directory depends on where docker is installed on everyone’s computer. My directory is: C:\users\ZK\appdata\roaming) to docker_Backup (actually delete and backup)
reason: start docker for windows.exe , which prompts that docker is not started. Click to start docker, and everything is restored as before. The original container reason is that my previous docker image installation directory is on disk e, and the application is automatically installed on the default Disk C after upgrading

Solution: docker generates a file dockerdesktop.vhdx , move this file to the newly installed directory or set {setting ---- > resources ---- > advanced ---- > disk image location} in the dockerdesktop.vhdx application (Note: a new directory will be generated. I change the permission, delete and replace it) remember to back up

Result: both the original vhdx file and the image are.

How to Solve NPM update check failed Error

npm update check failed

When using NPM, the following suddenly appears: although it doesn’t seem to affect the use, it’s annoying to come out every time

first, enter the corresponding folder. According to the above figure, my folder is C:\users\38646.config

you can find another folder. After entering a JSON

use the editing tool to open the JSON file and change the value of optoute to true

How to Solve Error: Failed to load ApplicationContext

Solution: failed to load ApplicationContext

Generally, it can be solved according to the following steps
Step 1: check the annotation
check whether there are the following annotations


If not, add dependencies and add comments


Step 2: check the package name
check whether the package name or package path in the XML file is correct, because beans are configured through XML. If they cannot be loaded, they are usually injected into the XML file in the container.


Step 3: check the encoding format