0

I am new to the linux environment, I faced an issue while performing git clone, So I tried the solution mentioned in this link https://answers.launchpad.net/ubuntu/+source/pycurl/+question/221185

But I am getting the following error while trying the 4th step mentioned in the link,

~/git-openssl$ apt-get source git    
Reading package lists... Done  
E: Unable to find a source package for git

How to resolve this issue and continue with my steps, Could somebody help me?

  • You miss the sudo in the command you use: sudo apt-get source git I am not sure if this is the cause of the problem, though. – Marc Vanhoomissen Jan 8 '18 at 12:13
  • 1
    No that is not the issue, sudo apt-get source git [sudo] password for test: Reading package lists... Done E: Unable to find a source package for git – Harry Jan 8 '18 at 12:15
  • 2
    Check your apt sources in /etc/apt/sources.list. Do you have a line that looks like deb-src http://archive.ubuntu.com/ubuntu/ trusty main? – user535733 Jan 8 '18 at 12:29
  • 2
    @MarcVanhoomissen: apt-get source doesn't require super-user privileges and if it did the error message would be different. – David Foerster Jan 9 '18 at 9:46
  • 2
    Could you please edit your question to include the output of apt-cache policy git as well as the content of /etc/apt/sources.list? Thanks. – David Foerster Jan 9 '18 at 9:46

Your Answer

By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.