Help Center> CodeArts Repo> FAQs> Troubleshooting> Message "The requested URL returned error: 401" Is Displayed
Updated on 2023-12-04 GMT+08:00

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.

  1. Uninstall the in-built Git 1.7.1.
    # yum remove git
  2. 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

Troubleshooting FAQs

more