How to "put some 'source' URIs in your sources.list"?

13,379

Uncomment the deb-src lines in /etc/apt/sources.list:

sudo sed -i 's/# deb-src/deb-src/' /etc/apt/sources.list
sudo apt update
Share:
13,379

Related videos on Youtube

DaDi
Author by

DaDi

lder="BY DAY: Alt-Rock Ninja Cowgirl at Veridian Dynamics.BY NIGHT: I write code and code rights for dadi.ml, an awesome non-profit that will totally take your money at that link. My kids are cuter than yours.FOR FUN: C+ Jokes, Segway Roller Derby, NYT Sat. Crosswords (in Sharpie!), Ostrich Grooming."If you see scary things, look for the helpers-you'll always see people helping."-Fred Rogers

Updated on September 18, 2022

Comments

  • DaDi
    DaDi over 1 year

    machine: Toshiba MK1646GSX, intel atom [email protected], 2048Mb. 32bit.

    OS: LINUX LITE 3.8

    i was trying to install the PIDGIN dependencies:

     ~> sudo apt-get build-dep pidgin
    

    and then i got this instead of installing the build-dep:

    Reading package lists... Done
    E: You must put some 'source' URIs in your     sources.list
    

    so i searched and i found sources say that i should rm -rf the sources.list, and then apt-get update and the list will create itself. the results were not good and like what i expected, the list didn't create itself. after that i made a new list with the same content, i tried to make sure about every line and does it own deb-src. all lines are correct. but the Error still exits when i try to install the build-dep. what to do?


    sources.list copied from the justpaste link:

    ###### Ubuntu Main Repos
    deb http://archive.ubuntu.com/ubuntu xenial main restricted universe multiverse
    # deb-src http://archive.ubuntu.com/ubuntu xenial main restricted universe multiverse
    
    
    ###### Ubuntu Update Repos
    deb http://archive.ubuntu.com/ubuntu xenial-security main restricted universe multiverse
    # deb-src http://archive.ubuntu.com/ubuntu xenial-security main restricted universe multiverse
    deb http://archive.ubuntu.com/ubuntu xenial-updates main restricted universe multiverse
    # deb-src http://archive.ubuntu.com/ubuntu xenial-updates main restricted universe multiverse
    deb http://archive.ubuntu.com/ubuntu xenial-proposed main restricted universe multiverse
    # deb-src http://archive.ubuntu.com/ubuntu xenial-proposed main restricted universe multiverse
    deb http://archive.ubuntu.com/ubuntu xenial-backports main restricted universe multiverse
    # deb-src http://archive.ubuntu.com/ubuntu xenial-backports main restricted universe multiverse
    
    
    ###### Ubuntu Partner Repos
    deb http://archive.canonical.com/ xenial partner
    # deb-src http://archive.canonical.com/ xenial partner
    
    • Freddy
      Freddy over 4 years
      Have you tried running sudo apt-get update before sudo apt-get build-dep pidgin?
    • schrodingerscatcuriosity
      schrodingerscatcuriosity over 4 years
      How does your sources.list look like?
    • DaDi
      DaDi over 4 years
      @Freddy yes i did, i said that already in the text.
    • DaDi
      DaDi over 4 years
      @guillermochamorro justpaste.it/33tq1
    • schrodingerscatcuriosity
      schrodingerscatcuriosity over 4 years
      Uncomment # deb-src...
    • Alessio
      Alessio over 4 years
      please don't link to external sites for short text fragments. paste them into your question (and format as code). i've fixed that for you this time.
  • Martian2020
    Martian2020 over 2 years
    IMO apt update requirement should be included in the error message, not everybody knows internals that well to see it is necessary after sources file editing.