Message "The requested URL returned error: 401" Is Displayed
Symptom
When a user attempts to clone code using HTTPS in CentOS, the message The requested URL returned error: 401 is displayed.
Analysis
An old Git version is installed in CentOS.
Solution
Run git --version to check the Git version. CentOS 6.5 usually has the Git 1.7.1 in-built.
- Uninstall the in-built Git 1.7.1.
# yum remove git
- Download the latest version from the Git website and add Git to the environment variables.
# wget https://github.com/git/git/archive/version.tar.gz # tar zxvf version.tar.gz # cd git-version # make configure # ./configure --prefix=/usr/local/git --with-iconv=/usr/local/libiconv # make all doc # make install install-doc install-html # echo "export PATH=$PATH:/usr/local/git/bin" >> /etc/bashrc # source /etc/bashrc
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot